faithfracture / Apple-Boost-BuildScript

Script for building Boost for Apple platforms (iOS, iOS Simulator, tvOS, tvOS Simulator, OS X)
279 stars 111 forks source link

Using xcframework in Ccode #59

Closed Redeye92 closed 4 years ago

Redeye92 commented 4 years ago

I've compiled Boost 1_74_0 for macOS and iOS with no problems thanks to this script.

I've added the framework to my project with the "Do Not Embed" setting and I can run the app with no problems with the debugger attached in Xcode. However when I archive the project, the resulting app fails to launch and shows an error which suggests that something is going wrong in the creating one or more of the Boost objects, presumably because of a linking problem that I obviously don't understand.

If I change the framework to "Embed & Sign" then I get the error "code object is not signed at all" for libboost.a and I can't run the app.

Sorry if this is a bit of a basic question, but what's the best way to link/embed the xcframework?

Redeye92 commented 4 years ago

Apologies - my error. One of those fun "only happens in release, not in debug mode" bugs