iOS Question include xcframework Problem

gglaz

Member
Licensed User
Longtime User
I’m using <lib_name>.xcframework.3
In another thread I read that the internal framework has to be extracted. Therefore I only put the subfolder ios-arm64 in the libs folder.

When installing via the bridge, the app crashes immediately without an error message.
The app also crashes directly via Xcode. The following error log is output there:

dyld: Library not loaded: @rpath/AusweisApp2.framework/AusweisApp2
Referenced from: /private/var/containers/Bundle/Application/0C2029BD-A78D-4C68-AB06-08A123558CD0/B4iProject.app/B4iProject
Reason: image not found
dyld: launch, loading dependent libraries
DYLD_LIBRARY_PATH=/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib


Thanks in advice
Regards
 

gglaz

Member
Licensed User
Longtime User
Hi Erel,
i'm not sure what you mean. AusweisApp.framework is entered in Xcode.
When I manually change Embed "Do Not Embed" in Xcode to "Embeb & Sign" it works. How can I put that over B4i?
The framework can be downloaded from https://github.com/Governikus/AusweisApp2-SDK-iOS . Is too big as an attachment.
I just put the AusweisApp2.framework folder from the ios-arm64 subfolder in the libs order of the local mac builder.

Bildschirmfoto.png
 
Upvote 0

gglaz

Member
Licensed User
Longtime User
Hello Erel,
it is not due to other missing dependency.

Here's what works through Xcode:
Under Build Phases, click on + icon to add new phase, and select New Copy Files Phase.
Drag the newly created Copy Files phase above Compile Sources phase
In the new Copy Files phase, select Frameworks for Destination drop down.
Leave subpath blank. Let be default Copy only when installing.
Under the table, click '+' and then select Framework AusweisApp2.framework
Make sure Code Sign on Copy is checked

How can this be set via B4i?
 
Upvote 0
Top