-
Notifications
You must be signed in to change notification settings - Fork 431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails with SIMULATOR and default parameters #2
Comments
Hmm.. I'll have to verify this at work tomorrow. But it seems some of the flags are being overridden somehow by the CMakeLists.txt in the protobuf project. Is it the standard google protobuf repo you are trying to build with the toolchain? |
Yes, standard repo (not the latest master though), but the build process is somewhat not trivial, because build requires some binaries on host system:
|
So, i have now checked the situation, and it all seems very reasonable for Apple not to include bitcode in ARClite for simulator builds. Bitcode is only used by Apple for recompiling the binary blobs for newer SDKs and such. And since simulator slices are removed (more like prohibited by Apple) in AppStore-builds, there is little to no reason for them to supply bitcode in ARClite for simulator builds. After digging through the protobuf code, my recommendation to you is to simply build libprotobuf without ARC, by supplying So, the correct commands would look like:
The resulting files under This way, you would be able to build with bitcode (but with ARC disabled for libprotobuf, since it seems that there is no need for it), even for the simulator (to ease one´s life a little). :) |
I will close this issue, since it is more a problem with documentation of the protobuf library, than an error with this toolchain. |
Building google protocol buffers with the following command fails:
The following error occurs:
It seems that ARC and bitcode are incompatible with SIMULATOR build:
The text was updated successfully, but these errors were encountered: