B4i Library iDatePersian - The easy way to convert Date Gregorian to Persian

Discussion in 'iOS Libraries' started by Alberto Iglesias, Feb 7, 2015.

  1. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    [​IMG]

    This library was made based on Gregorian and Persian dates styles

    Installation instructions:

    - Copy the *.a and *.h files into the folder "Libs" in your MAC or in your MAC HOSTED by AnywhereSoftware, normally in "B4i-MacServer\Libs" folder
    -Copy the DatePersian.xml to your custom libraries folder in B4i
    - Select in your REFERENCED LIBRARIES

    [​IMG]

    Version history:
    V1.0.0 (First public release - Freeware):
    - Initial version

    DatePersian
    Author:
    Alberto Iglesias (alberto@visualnet.inf.br)
    Version: 1.0.0
    • DatePersian
      Events:
      • onInitialized (EventName As String)
      Methods:
      • Initialize (EventName As String)
        Initializes the object.
      • ToPersian(Year As Int, Month As Int, Day As Int, Separator As String) As String
        Convert to date Persian
      • ToPersianToday (Separator As String) As String
        Convert to date Persian from today
      Properties:
      • Author As String [read only]
        Author of this Library
      • DebugMode As BOOL
        Enable/Disable Debug mode from Library
      • Version As String [read only]
        Library Version

    * The version 1.0.0 is fully functional
    Please consider a simple €10 donation.

    Your contribution ensures that our work will thrive and so we will to innovate more and more.
    Thanks in advance for your support!



    [​IMG]
     

    Attached Files:

    Last edited: Feb 7, 2015
    mehdimf20, khosrwb and Ohanian like this.
  2. omidaghakhani1368

    omidaghakhani1368 Well-Known Member Licensed User

    Thank you very very thank you
    It's the best
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    V1.0.0 was uploaded to the hosted mac builder.
     
  4. BerlinCoder

    BerlinCoder Member Licensed User

    Hi,
    I try to use this library for a project. But, during compiling I face with following error:
    Code:
    B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/Persian_dependency_info.dat -o /Users/.../Desktop/B4iBuildServer/UploadedProjects/<user id>/Payload/Persian.app/Persian
    ld: warning: ignoring 
    file ../../Libs/libDatePersian.a, missing required architecture i386 in file ../../Libs/libDatePersian.a (2 slices)
    Undefined symbols 
    for architecture i386:
      
    "_OBJC_CLASS_$_B4IDatePersian", referenced from:
          objc-class-ref 
    in b4i_main.o
    ld: symbol(s) 
    not found for architecture i386
    clang: error: linker command failed with 
    exit code 1 (use -v to see invocation)


    Error: ** BUILD FAILED **


    The following build commands failed:
        Ld Payload/Persian.app/Persian normal i386
    (
    1 failure)
     
  5. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    Hello Berlin,

    This library was compiled only for use in a REAL device, not simulator.


    Thanks

    Alberto Iglesias
     
  6. BerlinCoder

    BerlinCoder Member Licensed User

    Ok, ,,Do you have any suggestion what should I do during developing on simulator?
     
  7. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    With this library its impossible, was compiled WITHOUT i386.

    Do you have a Mac Builder or use the B4i Host Builder?

    If you a local Mac, I can compile again for you with i386 to use with simulator
     
  8. BerlinCoder

    BerlinCoder Member Licensed User

    I have a local Mac, I will be appreciated if you do this Mr. Iglesias :)
     
  9. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    try this one
     

    Attached Files:

  10. BerlinCoder

    BerlinCoder Member Licensed User

    Thank you for the file. But, after replacing the library and refreshing the updated one, I see the error again!
    Code:
    ld: warning: ignoring file ../../Libs/libDatePersian.a, missing required architecture i386 in file ../../Libs/libDatePersian.a (2 slices)
    Undefined symbols 
    for architecture i386:
      
    "_OBJC_CLASS_$_B4IDatePersian", referenced from:
          objc-class-ref 
    in b4i_main.o
    ld: symbol(s) 
    not found for architecture i386
    clang: error: linker command failed with 
    exit code 1 (use -v to see invocation)


    Error: ** BUILD FAILED **


    The following build commands failed:
        Ld Payload/Persian.app/Persian normal i386
    (
    1 failure)
    I use b4i 3.5 and b4ibuildserver 3.5, Build server version: 3.5 and Mac OS Sierra 10.12.2
     
  11. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    strange...

    I will convert for you from library to native code to use without library, dont worry
     
  12. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    Now you don´t need anymore the library.

    I create with inline code.

    Try and tell me please!

    Best regards,

    Alberto Iglesias
     

    Attached Files:

    Ohanian and BerlinCoder like this.
  13. BerlinCoder

    BerlinCoder Member Licensed User

    Sehr gut vielen dank Mr. Iglesias. It works!
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice