Information:
- Expo SDK Version: 3.0.10
- Platforms(ios/android/both): both
Hi! I created an app for iOS and Android. The Android version works great, the iOS not so much. The iOS keeps crashing right after launching it. Below is the crash log, and I have no idea how to interprete it or debug it .
I thought it was perhaps the Push Notification, because it doesn’t work on the simulator, I commented it out and still keeps crashing. What I guess it might be is access to device storage. The app, right after the splash screen, shows a ActivityIndicator while looking into the device storage for a saved user token, and a few seconds after the ActivityIndicator shows it crashes. I know it won’t find a user token, so then if should display the login screen, but the app crashes before this. I am using expo-secure-store
for local storage.
Any suggestion is very welcome, I don’t know where to go from here.
Thank you.
Sep 5 17:43:03 ColdTuna assertiond[1501]: Submitted job with label: UIKitApplication:com.myapp.app[0x5173][1501]
Sep 5 17:43:04 ColdTuna SpringBoard[1496]: [com.myapp.app] Bootstrap complete with label: UIKitApplication:com.myapp.app[0x5173][1501]
Sep 5 17:43:05 ColdTuna[1600]: objc[1600]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x1268efcc0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x1267066f0). One of the two will be used. Which one is undefined.
Sep 5 17:43:05 ColdTuna[1600]: assertion failed: 16A323 14E8301: libxpc.dylib + 64131 [624BAF4F-2E03-34F8-ACBA-970B04637786]: 0x7d
Sep 5 17:43:05 ColdTuna[1600]: You've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist.
Sep 5 17:43:05 ColdTuna[1600]: You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
Sep 5 17:43:05 ColdTuna[1600]: Expo iOS Runtime Version 33.0.0
Sep 5 17:43:05 ColdTuna[1600]: [LayoutConstraints] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x60000009c660 UIImageView:0x7fca0a50c870.height == 128 (active)>",
"<NSLayoutConstraint:0x60000009fbd0 V:|-(>=0)-[UIImageView:0x7fca0a50c870] (active, names: '|':UIView:0x7fca0a508f70 )>",
"<NSLayoutConstraint:0x60000009fc70 V:[UIImageView:0x7fca0a50c870]-(10)-[UIView:0x7fca0a508f70] (active)>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x60000009c660 UIImageView:0x7fca0a50c870.height == 128 (active)>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
Sep 5 17:43:05 ColdTuna[1600]: [LayoutConstraints] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x60000009fbd0 V:|-(>=0)-[UIImageView:0x7fca0a50c870] (active, names: '|':UIView:0x7fca0a508f70 )>",
"<NSLayoutConstraint:0x60000009fc70 V:[UIImageView:0x7fca0a50c870]-(10)-[UIView:0x7fca0a508f70] (active)>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x60000009fc70 V:[UIImageView:0x7fca0a50c870]-(10)-[UIView:0x7fca0a508f70] (active)>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
Sep 5 17:43:05 ColdTuna[1600]: Falling back to loading access token from NSUserDefaults because of simulator bug
Sep 5 17:43:05 ColdTuna[1600]: Falling back to storing access token in NSUserDefaults because of simulator bug
Sep 5 17:43:05 ColdTuna[1600]: Falling back to loading access token from NSUserDefaults because of simulator bug
Sep 5 17:43:05 ColdTuna[1600]: Falling back to storing access token in NSUserDefaults because of simulator bug
Sep 5 17:43:05 ColdTuna[1600]: Falling back to loading access token from NSUserDefaults because of simulator bug
Sep 5 17:43:05 ColdTuna[1600]: Falling back to storing access token in NSUserDefaults because of simulator bug
Sep 5 17:43:05 ColdTuna[1600]: Normal message received by listener connection. Ignoring.
Sep 5 17:43:05 ColdTuna[1600]: Could not successfully update network info during initialization.
Sep 5 17:43:05 ColdTuna[1600]: FBSDKLog: Missing [FBSDKAppEvents appID] for [FBSDKAppEvents publishInstall:]
Sep 5 17:43:05 ColdTuna[1600]: EXManifestResource: Standalone manifest remote url is https://expo.io:443/@coldtuna/MyApp (https://expo.io:443/@coldtuna/MyApp)
Sep 5 17:43:05 ColdTuna[1600]: EXCachedResource: Using cached resource at /Users/caio/Library/Developer/CoreSimulator/Devices/8EA201E5-CCA1-4D36-9CCD-86C55F6CD45B/data/Containers/Data/Application/183B75B6-AA47-45C1-9341-5AB31AD16D32/Library/Caches/Manifests/shell-app-manifest-3001121766557054392.json...
Sep 5 17:43:05 ColdTuna[1600]: EXCachedResource: Using cached resource at /Users/caio/Library/Developer/CoreSimulator/Devices/8EA201E5-CCA1-4D36-9CCD-86C55F6CD45B/data/Containers/Data/Application/183B75B6-AA47-45C1-9341-5AB31AD16D32/Library/Caches/EXCachedResource/33.0.0-manifestPublicKey-8296452746669970268.pem...
Sep 5 17:43:05 ColdTuna SpringBoard[1496]: Remote notifications are not supported in the simulator
Sep 5 17:43:05 ColdTuna[1600]: EXCachedResource: Caching resource to /Users/caio/Library/Developer/CoreSimulator/Devices/8EA201E5-CCA1-4D36-9CCD-86C55F6CD45B/data/Containers/Data/Application/183B75B6-AA47-45C1-9341-5AB31AD16D32/Library/Caches/EXCachedResource/33.0.0-manifestPublicKey-8296452746669970268.pem...
Sep 5 17:43:05 ColdTuna com.apple.CoreSimulator.SimDevice.8EA201E5-CCA1-4D36-9CCD-86C55F6CD45B.launchd_sim[1479] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit
Sep 5 17:43:05 ColdTuna[1600]: FBSDKLog: Missing [FBSDKAppEvents appEventsState.appID] for [FBSDKAppEvents flushOnMainQueue:]
Sep 5 17:43:05 --- last message repeated 1 time ---
Sep 5 17:43:05 ColdTuna[1600]: Standalone bundle remote url is https://expo.io:443/@coldtuna/MyApp
Sep 5 17:43:05 ColdTuna[1600]: EXCachedResource: Using cached resource at /Users/caio/Library/Developer/CoreSimulator/Devices/8EA201E5-CCA1-4D36-9CCD-86C55F6CD45B/data/Containers/Bundle/Application/D415D295-1289-4BF8-9363-E6DE21E6181E/MyApp.app/shell-app.bundle...
Sep 5 17:43:05 ColdTuna[1600]: EXManifestResource: Standalone manifest remote url is https://expo.io:443/@coldtuna/MyApp (https://expo.io:443/@coldtuna/MyApp)
Sep 5 17:43:05 ColdTuna[1600]: EXCachedResource: Not using cache for shell-app-manifest
Sep 5 17:43:06 ColdTuna[1600]: EXCachedResource: Using cached resource at /Users/caio/Library/Developer/CoreSimulator/Devices/8EA201E5-CCA1-4D36-9CCD-86C55F6CD45B/data/Containers/Data/Application/183B75B6-AA47-45C1-9341-5AB31AD16D32/Library/Caches/EXCachedResource/33.0.0-manifestPublicKey-8296452746669970268.pem...
Sep 5 17:43:06 ColdTuna[1600]: EXCachedResource: Caching resource to /Users/caio/Library/Developer/CoreSimulator/Devices/8EA201E5-CCA1-4D36-9CCD-86C55F6CD45B/data/Containers/Data/Application/183B75B6-AA47-45C1-9341-5AB31AD16D32/Library/Caches/EXCachedResource/33.0.0-manifestPublicKey-8296452746669970268.pem...
Sep 5 17:43:06 ColdTuna[1600]: Standalone bundle remote url is https://expo.io:443/@coldtuna/MyApp
Sep 5 17:43:06 ColdTuna[1600]: EXCachedResource: Using cached resource at /Users/caio/Library/Developer/CoreSimulator/Devices/8EA201E5-CCA1-4D36-9CCD-86C55F6CD45B/data/Containers/Bundle/Application/D415D295-1289-4BF8-9363-E6DE21E6181E/MyApp.app/shell-app.bundle...
Sep 5 17:43:06 ColdTuna[1600]: EXManifestResource: Caching manifest to /Users/caio/Library/Developer/CoreSimulator/Devices/8EA201E5-CCA1-4D36-9CCD-86C55F6CD45B/data/Containers/Data/Application/183B75B6-AA47-45C1-9341-5AB31AD16D32/Library/Caches/Manifests/shell-app-manifest-3001121766557054392.json...
Sep 5 17:43:08 ColdTuna SpringBoard[1496]: UNSUserNotificationServerConnectionListener connection invalidated
Sep 5 17:43:08 ColdTuna SpringBoard[1496]: [KeyboardArbiter] HW kbd: Failed to set (null) as keyboard focus
Sep 5 17:43:08 ColdTuna com.apple.CoreSimulator.SimDevice.8EA201E5-CCA1-4D36-9CCD-86C55F6CD45B.launchd_sim[1479] (UIKitApplication:com.myapp.app[0x5173][1501][1600]): Service exited due to Abort trap: 6
Sep 5 17:43:08 ColdTuna backboardd[1497]: [Common] Unable to get short BSD proc info for 1600: No such process
Sep 5 17:43:08 ColdTuna backboardd[1497]: [Common] Unable to get proc info for 1600: Undefined error: 0
Sep 5 17:43:13 ColdTuna assertiond[1501]: Deleted job with label: UIKitApplication:com.myapp.app[0x5173][1501]