iOS Question Create Swift based Library

JanPRO

Well-Known Member
Licensed User
Longtime User

JanPRO

Well-Known Member
Licensed User
Longtime User
Hi,

I can compile it as framework, but when I want to use the b4i library, the app crashes with the following error:
dyld: Library not loaded: @rpath/Charts.framework/Charts
Referenced from: /Users/............/B4iProject.app/B4iProject
Reason: image not found

The header file contains this attribute: //~DependsOn:Charts.framework.3

Any idea?

Jan
 
Upvote 0

JanPRO

Well-Known Member
Licensed User
Longtime User
Yes. The compilation process works fine, the error is thrown when I start the App.
By the way: On the project page it is said, that the framework should be used as an embedded framework.

Jan
 
Upvote 0

JanPRO

Well-Known Member
Licensed User
Longtime User
Ok, i think I know whats' the problem: The library must be added to the "Embedded Binaries".
The steps I have made, to get the B4i project working:

1. Set "Always Embed Swift Standard Libraries" to YES
2. Remove Charts.framework from the Linked Frameworks section
3. Add Charts.framework to the Embedded Binaries

Would be greate if you can tell me if this is possible with the
- current B4iBuilder
- or you have to update the builder
- or if it's impossible

Jan
 
Upvote 0
Top