iOS Question B4i new version

Star-Dust

Expert
Licensed User
Longtime User
with the new compiler based on xcframeworks is it necessary to recompile all the B4I libraries we created to make them work correctly?
If we recompile them will they work with those who have an older version of B4i?

Thank you
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
with the new compiler based on xcframeworks is it necessary to recompile all the B4I libraries we created to make them work correctly?
Recommended but not mandatory. To use an old library with B4i v10+ you need to update its header file and change the imports of frameworks. For example:
B4X:
#import <iCore/iCore.h>
#import "iSD_CreativeBackground.h" //not needed because it references a non-framework library
#import <iXUI/iXUI.h>
#import <iBitmapCreator/iBitmapCreator.h>

Note that old libraries will not work with ARM simulators.

If we recompile them will they work with those who have an older version of B4i?
Frameworks will not work with old versions of B4i, however old versions will be soon obsolete.
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
To use an old library with B4i v10+ you need to update its header file and change the imports of frameworks.
Sorry, one last ignorant question, header file do you mean the xml file?
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
No. The .h file that is copied to the Mac.

Two examples are attached. Note that I changed the imports at the top of the files and removed redundant imports.
Thank's
 
Upvote 0
Top