Hi,
I’ve been building out an application for several months now and everything’s been going fine in the simulators, but I’m just now getting the app up on TestFlight and I’m getting this error on my iPhone:
Unhandled JS Exception: Module AppRegistry is not a registered callable module (calling runApplication)
I’ve tried running expo start --no-dev --minify, but everything still seemed to run perfectly.
I took a look at the build logs for my .ipa file and found a few errors:
...
[stderr] warning: /private/tmp/turtle/6b67a9ea-bbfc-4851-af84-c599abd51cfc/archive.xcarchive/BCSymbolMaps/ExpoKitApp-armv7.bcsymbolmap:
[stderr] No such file or directory. Not unobfuscating.
[stderr] warning: /private/tmp/turtle/6b67a9ea-bbfc-4851-af84-c599abd51cfc/archive.xcarchive/BCSymbolMaps/ExpoKitApp-arm64.bcsymbolmap: No such file or directory. Not unobfuscating.
...
[stderr] _floatsignTemp/Payload/ExpoKitApp.app: replacing existing signature
[stderr] _floatsignTemp/Payload/ExpoKitApp.app: signed app bundle with Mach-O universal (armv7 arm64) [com.friendsindeed.app]
...
I have no idea what those errors mean, so I was hoping someone could shed some light on them. Is this enough information to go off of? Let me know if I should provide anything else. Any insight I could glean from this would be very helpful. Thanks!
@adamjnav Just a quick update:
Googling the “deep linking” errors brought me to this issue/response: https://github.com/expo/expo/issues/996#issuecomment-386459831
I tried the solution Ben laid out (adding a scheme to my app.json) but the build still failed in the same way.
Also, as far as deep linking goes, I searched my code base, and it looks like apart from normal web URLs, we’re only linking to fb-messenger:// & app-settings://. Not sure wether that’s relevant or not.
I finally got this working. The problem was actually related to deep linking (specifically Linking.makeUrl()). I added a scheme to my app.json and everything started working correctly in TestFlight after I ran expo build:ios. The reason I didn’t think it was working before was that I still saw the same errors in my Expo build logs that I pasted into my original post. Apparently, those were totally unrelated to the issue and I could have just ignored them. Because I was seeing those errors, I didn’t even bother testing the build in TestFlight, but apparently it would have worked fine if I did.
Glad you got to the bottom of it! Thanks for sharing the solution so that others may see it as well. Sorry I couldn’t be of more assistance though. Cheers!