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

Lots of linker warnings in Xcode 7 / iOS 9 SDK — built for newer iOS version (9.0) than being linked (8.2) #1707

Closed
1ec5 opened this issue Jun 10, 2015 · 9 comments · Fixed by #1962
Labels
build iOS Mapbox Maps SDK for iOS

Comments

@1ec5
Copy link
Contributor

1ec5 commented Jun 10, 2015

I get 28 of these warnings when building the iosapp scheme in Xcode 7 for the iPhone 6 (9.0) simulator:

ld: warning: object file (/path/to/mapbox-gl-native/mason_packages/ios-8.3/libuv/0.10.28/lib/libuv.a(async.o)) was built for newer iOS version (8.3) than being linked (7.0)
@1ec5 1ec5 added iOS Mapbox Maps SDK for iOS build labels Jun 10, 2015
@1ec5
Copy link
Contributor Author

1ec5 commented Jun 13, 2015

Also reproduces in any project that incorporates Mapbox GL via CocoaPods:

ld: warning: object file (/path/to/ExampleProject/Pods/MapboxGL/libMapboxGL.a(async.o)) was built for newer iOS version (9.0) than being linked (8.2)

@1ec5 1ec5 changed the title Lots of linker warnings in Xcode 7 / iOS 9 SDK — built for newer iOS version (8.3) than being linked (7.0) Lots of linker warnings in Xcode 7 / iOS 9 SDK — built for newer iOS version (9.0) than being linked (8.2) Jun 13, 2015
@AdrianaPineda
Copy link

Hi!. Any updates on this?

@1ec5
Copy link
Contributor Author

1ec5 commented Aug 4, 2015

Looks like Mason assumes you always want the latest SDK supported by your current Xcode toolchain (which is 9.0 for Xcode 7.0), rather than the SDK of the minimum deployment target (7.0). To be clear, these are only warnings, and they appear to be harmless.

/cc @kkaefer @incanus

1ec5 added a commit to mapbox/mason that referenced this issue Aug 4, 2015
Just like we hard-code the minimum OS X SDK version.

ref mapbox/mapbox-gl-native#1707
@1ec5
Copy link
Contributor Author

1ec5 commented Aug 4, 2015

@AdrianaPineda, the fix is in mapbox/mason#110. Once that’s merged and the submodule in this repo incorporates that fix (likely via #1962), the warnings will go away. Alternatively, if you’re building your own copy of Mapbox GL, you can edit .mason/mason.sh according to mapbox/mason@f403285, then make clean && make distclean && make ipackage.

@AdrianaPineda
Copy link

@1ec5 thanks! :)

1ec5 added a commit that referenced this issue Aug 5, 2015
Pulled in mason/mason@41d8b2eb28b3cd942d9f15583467b27c549675ea for mapbox/mason#106 and mason/mason@d8597d944533dbb5e28d08dfdba22a82c93171b7 for mapbox/mason#110.

Fixes #1957 and fixes #1707.
@1ec5 1ec5 closed this as completed in #1962 Aug 5, 2015
@jhoughjr
Copy link

Any news on this? I'm using Mapbox-ios-sdk 2.1.2 as a cocoa pod and still get these tons of warnings for all the object files.

I'd also add that warnings are not harmless and ignoring them has many disadvantages.

@1ec5
Copy link
Contributor Author

1ec5 commented Oct 15, 2015

@jhoughjr, I’m not seeing the warnings anymore with 2.1.2 when building in Xcode 7 with the iOS 9 SDK. In the warnings you’re seeing, is the iOS version 9.0 and the linked version 8.2, or something else?

@friedbunny
Copy link
Contributor

Indeed, I cannot reproduce these warnings with the recommended podfile.

@1ec5
Copy link
Contributor Author

1ec5 commented Oct 16, 2015

I'd also add that warnings are not harmless and ignoring them has many disadvantages.

Agreed. In this case, I was only recommending to be patient for mapbox/mason#110 to make it into a build, not to ignore the warnings indefinitely.

@jhoughjr, did you upgrade the Mapbox iOS SDK pod or install it into a fresh project? If you upgraded it, be sure to fully clean your project before rebuilding: hold down ⌥, then go to Product ‣ Clean Build Folder.

AndwareSsj pushed a commit to AndwareSsj/mapbox-gl-native that referenced this issue Nov 6, 2015
Pulled in mason/mason@41d8b2eb28b3cd942d9f15583467b27c549675ea for mapbox/mason#106 and mason/mason@d8597d944533dbb5e28d08dfdba22a82c93171b7 for mapbox/mason#110.

Fixes mapbox#1957 and fixes mapbox#1707.
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

Successfully merging a pull request may close this issue.

5 participants