-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[iOS] Crash immediately on launch on simulators #6842
Comments
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. |
I should've mentioned that the stacktrace goes into assembly. Here's the
Here's the stacktrace:
|
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 |
@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. |
Fix confirmed in beta 2. Thanks @boundsj |
Platform: Xcode 7.3 w/ iOS simulator 9.3
Mapbox SDK version: v3.4.0-beta1
Steps to trigger behavior
MGLMapView
Expected behavior
The app launches and shows the map.
Actual behavior
The app crashes.
The text was updated successfully, but these errors were encountered: