You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
[iOS] Crash immediately on launch on simulators #6842
Thanks for the report @LeeroyDing. I'm able to repro (just embedding the binary causes the crash actually). We've made several changes and fixes for other bugs to the build system in this release so I will need to investigate this more.
@LeeroyDing just to confirm something it'd be very helpful if you can provide the stack trace of the crash you are seeing. It seems like the issue may have something to do with the the beta on GH being built with Xcode 8 -- when I build with Xcode 7.3.1 I don't see the issue. I would like to confirm we are seeing the exact same issue with the beta binary though. Thanks!
Actually, I can't reproduce the issue when I build locally with Xcode 8 or Xcode 7 so it seems like there may be something wrong with the binary on GH either because of the environment it was built on or because of something that changed in our build scripts recently. In any case, a stack trace would still be helpful @LeeroyDing. Thanks again.
Thanks again @LeeroyDing for the report and for sending the trace.
I investigated this and our alpha.5 and beta.1 releases were built with Xcode 8.0 (8A218a). The stripped, dynamic framework output created with this toolchain is not compatible in Swift applications created with prior versions of Xcode (i.e. 7.3.1).
For now, we will need to create the Mapbox iOS SDK releases with Xcode 7.3.1.
If you want to test the current beta in a Swift app using Xcode 7.3.1, you can use the unstripped mapbox-ios-sdk-3.4.0-beta.1-symbols-dynamic.zip available on the GH release page.
Activity
boundsj commentedon Oct 31, 2016
Thanks for the report @LeeroyDing. I'm able to repro (just embedding the binary causes the crash actually). We've made several changes and fixes for other bugs to the build system in this release so I will need to investigate this more.
boundsj commentedon Nov 1, 2016
@LeeroyDing just to confirm something it'd be very helpful if you can provide the stack trace of the crash you are seeing. It seems like the issue may have something to do with the the beta on GH being built with Xcode 8 -- when I build with Xcode 7.3.1 I don't see the issue. I would like to confirm we are seeing the exact same issue with the beta binary though. Thanks!
boundsj commentedon Nov 1, 2016
Actually, I can't reproduce the issue when I build locally with Xcode 8 or Xcode 7 so it seems like there may be something wrong with the binary on GH either because of the environment it was built on or because of something that changed in our build scripts recently. In any case, a stack trace would still be helpful @LeeroyDing. Thanks again.
LeeroyDing commentedon Nov 1, 2016
I should've mentioned that the stacktrace goes into assembly.
Here's the
EXC_BAD_ACCESSpoint:Here's the stacktrace:
boundsj commentedon Nov 1, 2016
Thanks again @LeeroyDing for the report and for sending the trace.
I investigated this and our alpha.5 and beta.1 releases were built with Xcode 8.0 (8A218a). The stripped, dynamic framework output created with this toolchain is not compatible in Swift applications created with prior versions of Xcode (i.e. 7.3.1).
For now, we will need to create the Mapbox iOS SDK releases with Xcode 7.3.1.
If you want to test the current beta in a Swift app using Xcode 7.3.1, you can use the unstripped
mapbox-ios-sdk-3.4.0-beta.1-symbols-dynamic.zipavailable on the GH release page.boundsj commentedon Nov 2, 2016
@LeeroyDing you should be able to use the stripped dynamic framework in beta 2 release. If you do try it please reopen this if you hit the same issue.
LeeroyDing commentedon Nov 3, 2016
Fix confirmed in beta 2. Thanks @boundsj