iOS Stand alone production build shows JS Exception in some cases.

Please provide the following:

  1. SDK Version:34
  2. Platforms(Android/iOS/web/all): iOS

Hi, We have our Production build on app store. In most cases it is running fine.

But some of our customers are reporting issues:
Unhandled JS Exception. Application Main has not been registered.

This seems specific to iOS and only for certain users.
We have suggested that they uninstall, reinstall, restart the phone etc. Nothing has worked.

Since we are not able to reproduce this issue, we are not sure what is going on.

Could you please advise.

@adamjnav @jess @wodin

Hi

No need to cross-post this to other Expo forums :slight_smile:

This is a strange one. You might try setting up something like Sentry to catch these errors and hopefully give you more info about what’s going wrong.

One issue you might face is that Apple might reject your app if it is based on SDK 34 because it contains code that references UIWebView which Apple has deprecated. This was fixed in SDK 36 (if an app is built with SDK 36 I believe it would just have to be rebuilt to take advantage of the fix.

1 Like

@wodin This app is currently in app store and was accepted by Apple. More over we see this with only a few iOS users. Most users are able to seamlessly download the app and work with it.

this type of error happens when your js code throws an error before being able to render the app root component, so there are basically an infinite number of reasons why you may be seeing it! it’s really impossible to guess :open_mouth:

as @wodin suggested, if you use an error reporting service like sentry you can see the exact error that is leading to this.