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
Bitcode not embedded in iOS framework binaries #2585
Comments
Thanks for reporting this. You're right that not all platforms that we say have bitcode embedded currently do, despite our recent efforts to do so (see #2567 and #2575 among several others). Running |
Are there any news regarding this issue? Could I provide you with more information? Currently we're unable to build / run Realm on our project and device. |
This should have no impact on your ability to run your project locally. Bitcode is only relevant for submitting to the app store. |
Okay, that´s true - but in our project with using 4 other frameworks, all of them with bitcode support. Correct if I'm wrong: But you either activate bitcode for all frameworks in your project or not at all. So to be able to build our project we have to change the settings for the remaining 4 frameworks. I would do this gladly, but since we're using some prebuilt frameworks that´s not an option. |
That shouldn't be necessary for building & running, only when archiving. |
I thought that myself, but apparently not (see error above). I can build and run our project without any problems in the simulator, but running one a real device fails. I'll keep looking, maybe there´s something wrong with my project settings. |
It appears that we need to be building the simulator version with -fembed-bitcode-marker, as otool only lists bitcode sections if all slices at least have the marker. |
It looks like Xcode 6.4 can't properly parse static libraries with bitcode, instead detecting duplicate symbols contained within the bitcode segment. This means that we'll need to update our core, objc and swift releases to contain copies of the iOS libraries both with and without bitcode. Thanks Apple! |
After updating to Realm version 0.92.3 carthage throws an error:
With version 0.92.2 everything works fine. I deleted the carthage Checkout folder and Cache - still the same error. Is there a problem with the shared building scheme? |
Are you using Carthage 0.9.2? Homebrew only has 0.8.0, which has some bugs related to installation that effect us. |
That's right - with the current Carthage version it´s building and the new release solves the bitcode problem, thanks a lot! |
This is fixed as of yesterday's 0.95.3 release: https://github.com/realm/realm-cocoa/releases/tag/v0.95.3 |
Hi, I'm having sense it did not improve yet...
|
@tomekc: I would recommend cleaning your project + deleting the derived data. If you're still having problems, remove the |
In order for us to continue supporting Xcode 6 alongside Xcode 7, it is necessary to provide both bitcode and non-bitcode versions of our core libraries. With CocoaPods, a symlink is created when downloading the core binaries linking If you remove the |
Worth noting that CocoaPods must be at least v0.96. |
Thanks for great tip - I almost forgot about xcode-select, indeed still pointing to Xcode 6 installation. |
We actually require CocoaPods 0.39.0. |
@jpsim thanks for the tip. There's something wrong here though. Check this out:
Then, 1) open project in Xcode7, 2) Cmd+shift+K, 3) Build for my mobile device (not simulator), results in:
Works fine on the simulator, though. Any ideas? p.s. unless I'm making something very wrong here, shouldn't we reopen this? |
For the record, it's fixed in |
Doesn't work yet. Waiting for fixes. |
I can confirm that this is still an issue with the prebuilt binaries, thanks for reporting @rsavutiu.
Note that Realm Objective-C & Realm Swift generate bitcode binaries correctly, however, so CocoaPods users aren't affected. |
@jpsim: I've the exact same error as @kurko even as I'm using CocoaPods:
We just switched to
And I checked just to be sure, Of course setting |
@AliSoftware when you ran |
Thx for the follow-up. That was on my Mac at work, and I'm quite sure Will try to (remember to) check tomorrow morning (or try to nuke Pods and redo it), will keep you posted. |
@jpsim I can confirm this was the issue (which is logical now that I saw you use a Note that I think it's better to suggest users having the same problem to simply comment Nuking the |
Thanks for the tip @AliSoftware! |
Turns out that our iOS, watchOS & tvOS binaries have all had bitcode since 0.96.2, but that rdar://21826157 confused us into thinking that they didn't. #3084 will make sure we validate that our binaries continue to have bitcode in the future. |
👍 |
Hello,
I'm using the latest release v0.95.2. The release notes states that bitcode is enabled, but in the corresponding sources bitcode isn't enabled for all targets / schemes. Could this be a problem?
In my Xcode Project (bitcode is enabled) I get this error:
The text was updated successfully, but these errors were encountered: