Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Bitcode error on iOS 9.0 (Xcode 7 Beta 6) #2205

Closed
tomtaylor opened this issue Aug 30, 2015 · 10 comments
Closed

Bitcode error on iOS 9.0 (Xcode 7 Beta 6) #2205

tomtaylor opened this issue Aug 30, 2015 · 10 comments
Assignees
Labels
build iOS Mapbox Maps SDK for iOS
Milestone

Comments

@tomtaylor
Copy link

When compiling my application for iOS 9.0 (Xcode 7 Beta 6), I see the following build error:

 ld: '/Users/tom/projects/CityCyclist/app/Pods/Mapbox-iOS-SDK/libMapbox.a(SMCalloutView.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7

I'm using MapboxGL through Cocoapods, setting the podspec to https://raw.githubusercontent.com/mapbox/mapbox-gl-native/ios-v2.1.0-pre.2/ios/Mapbox-iOS-SDK.podspec.

Let me know if I can provide any more info.

@tomtaylor tomtaylor changed the title Bitcode error on iOS 9.0 due to SMCalloutView Bitcode error on iOS 9.0 (Xcode 7 Beta 6) Aug 30, 2015
@friedbunny
Copy link
Contributor

This bitcode issue will be because we're not building our static library with Xcode 7. Travis just announced beta support for Xcode 7 and iOS 9 should ship around the second week of September, so it would be nice to get this moving.

@tomtaylor In the meantime, set ENABLE_BITCODE to NO in your Xcode project settings.

@tomtaylor
Copy link
Author

Thanks @friedbunny - I had to add the following to my Podfile, otherwise Xcode still tried to use Bitcode for the dependencies:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['ENABLE_BITCODE'] = 'NO'
    end
  end
end

@1ec5 1ec5 self-assigned this Sep 2, 2015
@incanus incanus added iOS Mapbox Maps SDK for iOS build labels Sep 7, 2015
@friedbunny friedbunny added this to the ios-v2.1.0 milestone Sep 15, 2015
@incanus incanus modified the milestones: ios-v2.1.0, ios-v2.1.1 Sep 15, 2015
@incanus
Copy link
Contributor

incanus commented Sep 15, 2015

Keep your eyes peeled for 2.1.1 shortly @tomtaylor, which should fix this when we land #2238 and build the release with Xcode 7.

@friedbunny
Copy link
Contributor

We've had to remove bitcode support and release v2.1.2 because of Xcode 7 issues: #2332

@friedbunny friedbunny reopened this Sep 15, 2015
@friedbunny friedbunny modified the milestones: ios-v2.2.0, ios-v2.1.1 Sep 15, 2015
@EddyVerbruggen
Copy link

Thanks for the Podfile tip, @tomtaylor 👍

@thiagorossener
Copy link

The Podfile tip didn't work for me here using Xcode 7, I had problems with others libs. I'm still waiting the new Mapbox version to start to know this beauty

@friedbunny
Copy link
Contributor

@thiagoross You may need to wipe out your Pods/ directory and then do a fresh pod install, otherwise I'm not sure that CocoaPods will do the proper configuration.

@1ec5
Copy link
Contributor

1ec5 commented Nov 4, 2015

Any build after #2903 should come with proper support for Bitcode in Xcode 7. If you’re open to using a prerelease, that’d be v3.0.0-pre.4 or any more recent build.

@incanus
Copy link
Contributor

incanus commented Nov 4, 2015

Which, BTW, you could get via a Podfile line like so:

pod 'Mapbox-iOS-SDK', :podspec => 'https://raw.githubusercontent.com/mapbox/mapbox-gl-native/ios-v3.0.0-pre.4/ios/Mapbox-iOS-SDK.podspec'

@1ec5
Copy link
Contributor

1ec5 commented Nov 11, 2015

Closing per #2205 (comment). A Bitcode-less build will also be available via #3003.

@1ec5 1ec5 closed this as completed Nov 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
build iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

No branches or pull requests

6 participants