How to debug?? Fails in deploy. Works locally even with --no-dev --minify

Hi,

I love expo and took a bold decision to use it for a fairly big project. However, I never tested to deploy until now, when I have a fairly big and complex application, and I realize to my horror 1. It didn’t work. 2. I don’t know how to debug it. Please help! :slight_smile:

If I run my app as follows, it works fine, in iOS simulator and in the Expo app on iPhone:
expo start --no-dev --minify

If I build like this, grab the tarball, unpack and start it on the simulator, it fails at start:
expo build:ios -t simulator

The error message I understand is generic and doesn’t help much:

I get this in the system log when starting the app on the iOS simulator:

Oct 17 22:56:13 Anders-Mac-15 ExpoKitApp[99660]: assertion failed: 17G65 16A366: libxpc.dylib + 79599 [28B7F54A-6A8C-33A0-BA46-FFA5278B041E]: 0x7d
Oct 17 22:56:14 Anders-Mac-15 com.apple.CoreSimulator.SimDevice.22775010-767A-4C68-980F-A26443EB5752[98644] (com.apple.AnnotationKit.MigratorService): Unknown key for Boolean: EnableTransactions
Oct 17 22:56:14 Anders-Mac-15 com.apple.CoreSimulator.SimDevice.22775010-767A-4C68-980F-A26443EB5752[98644] (com.apple.AnnotationKit.MigratorService): Unknown key for Boolean: EnablePressuredExit
Oct 17 22:56:14 Anders-Mac-15 com.apple.CoreSimulator.SimDevice.22775010-767A-4C68-980F-A26443EB5752[98644] (com.apple.AssetCacheLocatorService): Unknown key for Boolean: EnableTransactions
Oct 17 22:56:14 Anders-Mac-15 com.apple.CoreSimulator.SimDevice.22775010-767A-4C68-980F-A26443EB5752[98644] (com.apple.AssetCacheLocatorService): Unknown key for Boolean: EnablePressuredExit
Oct 17 22:56:14 Anders-Mac-15 com.apple.CoreSimulator.SimDevice.22775010-767A-4C68-980F-A26443EB5752[98644] (com.apple.CallKit.CallDirectory): Unknown key for Boolean: EnableTransactions
Oct 17 22:56:14 Anders-Mac-15 com.apple.CoreSimulator.SimDevice.22775010-767A-4C68-980F-A26443EB5752[98644] (com.apple.CallKit.CallDirectory): Unknown key for Boolean: EnablePressuredExit
Oct 17 22:56:14 Anders-Mac-15 com.apple.CoreSimulator.SimDevice.22775010-767A-4C68-980F-A26443EB5752[98644] (com.apple.CallKit.CallDirectoryMaintenance): Unknown key for Boolean: EnableTransactions
Oct 17 22:56:14 Anders-Mac-15 com.apple.CoreSimulator.SimDevice.22775010-767A-4C68-980F-A26443EB5752[98644] (com.apple.CallKit.CallDirectoryMaintenance): Unknown key for Boolean: EnablePressuredExit
Oct 17 22:56:14 Anders-Mac-15 com.apple.CoreSimulator.SimDevice.22775010-767A-4C68-980F-A26443EB5752[98644] (com.apple.MediaPlayer.RemotePlayerService): Unknown key for Boolean: EnableTransactions
Oct 17 22:56:14 Anders-Mac-15 com.apple.CoreSimulator.SimDevice.22775010-767A-4C68-980F-A26443EB5752[98644] (com.apple.MediaPlayer.RemotePlayerService): Unknown key for Boolean: EnablePressuredExit
...
(that then continues for some 20 services)

That’s the only clue or error I’ve been able to find.

Any good ideas where to start?

How can I debug this or narrow down the issue?

Of course I could resort to start cutting down the application to nothing, and start adding things back in, but with half an hour cycle times to build, download, install, test, and a complex app, that could take a week or more, so hopefully there is a better debug process?

Cheers

// Anders

1 Like

I found the issue, but I’m still interested in learning better debug techniques (rather than cutting code base in halves).

The issue was that “scheme” was missing in the app.json, hence it worked in the expo app but caused an obscure error in the standalone app.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.