21
2017
iOS App crashes only if downloaded from Appstore or TestFlight
Had annoying issue with one ios app, it worked perfectly when build locally from xcode to device,
but after uploading to AppStore, that version crashes in all devices. Solution was rather simple:
Solution
- Disable [ ] Include bitcode option when uploading your app archive to itunes connect (because apparently they do some compiling in app store, which can break your project, in my case it seems like they stripped out some required classes from MoonSharp..?)
Resources / Tips for debugging TestFlight & AppStore apps (since you cannot connect xcode debugger)
- Use runtime debug loggers like SRDebugger (paid plugin), or UberLogger (free), can see the actual error message here!
- From Player Settings enable: “Script Call Optimizations: Slow & Safe” (because Fast & No Exceptions crashes, slow and safe at least wont crash in most cases it seems)
- View device logs by connecting your iphone/ipad to Mac, then in Xcode select Window / Devices / yourdevice, … view logs (but il2cpp makes it bit useless, ‘crashed at 89829034 + 127837’ ?)
- Use TestFlight with iTunesconnect users, this means the build is available for testing quite fast after uploading (no need to wait for beta build review for external testers)
Related Posts
1 Comment + Add Comment
Recent posts
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
- Check if point is inside polygon 2D (using line intersection)
- UnityHub: Enable Create Project Button (without having to select Cloud Organization)
- UI: Make Tooltip background fit Text content length
- Pong-Wars in Unity
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub)
- UnityHub: Add support for custom project title (instead of folder name) or use ProductName
[…] Source: https://unitycoder.com/blog/2017/05/21/ios-app-crashes-only-if-downloaded-from-appstore-or-testfligh… […]