-
Notifications
You must be signed in to change notification settings - Fork 281
Enable Bitcode #553
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
Enable Bitcode #553
Conversation
Somehow |
You can validate whether the output binaries contain bitcode with 'otool -l file | grep bitcode' |
Did that, they all do 😊 |
Sweet! Either lipo changed or I was doing something wrong. Most likely the latter. |
Most likely I miss something important 😀 Have to check again an integrate it into an actual app. When I did with tvOS I got the stupid umbrella header errors again. |
I will wait for #555 and #554 to be merged before tackling it again, the tests are really unreliable at the moment. See the current master build, which was green in the PullRequest https://travis-ci.org/libgit2/objective-git/builds/111554295 |
@phatblat green 👍 |
You did it! I'll look this over. |
Just a note - due to the nature of the build scripts not rebuilding things, static libraries built from a commit before this change will cause one or more of the following linker errors due to not being built with bitcode.
No surprise, but in case anyone runs across this in the future, just remove these files and rebuild. rm External/ios-openssl/lib/libssl.a
rm External/libssh2-ios/lib/libssh2-ios.a
rm External/libgit2-ios/libgit2-ios.a |
Apparently, __LLVM is a better string to search for |
It may eventually, under certain circumstance work on my machine. It may also be a pretty naive attempt on solving this issue.
I tried to solve this while adding a tvOS target and at least the compiler did not complain anymore that bit code must be enabled (which it did before). It does not seem that
lipo
is stripping any symbols and OpenSSL can just be compiled using bitcode as describes by these fine gentleman here: https://gist.github.com/felix-schwarz/c61c0f7d9ab60f53ebb0