Hi,
I made in Fire static IOS library which I added to XCode project.
Which static library should I add to XCode project (I added libToffee, libElements) and my static library.
In my static library I used
and here I have some strange behavior
Calling this line crashes my APP , when I changed it to native code NSData and NSString used to made BASE64 all works fine …
Important information is that when i use this library in Oxygene Fire project code is working fine with RTL.Convert.
make sure you have -ObjC set in the linker flags in Xcode. For some reason, that is not the default for Xcode (anymore?), and Objective-C categories/extension methods seem to break, when this is not set.
Elements passes this flag by default when linking your executable.
You need to import Elements.h. the problem is, right now Elements.h has some stuff that Xcode/Objective-C does not like and tyou might need to manually review/remove. We have an issue logged to resolve this.
Workarounds:
(a) manually clean Elements.h
or
(b) don’t expose any public APIs that use Elements RTL types to Xcode; only use Elements RTL internally. I realize that is easier said than done.
Hi,
Where is located elements.h ? I set option generate .h file but when I compile it I have only .fx and .a files as output results for Elements, for my static lib i have all files.
As for the other fixes needed, you’d have to go thru them one by one and maybe remove the lines you don’t need. The issue above is logged to fix these, but if I had a fixed version handy right now myself, we’d not be having this talk ;).