Error while submit App to Apple Store "The following URL schemes found in your app are not in the correct format ..."

Hello,

Last week i was stuck with Compilation Error.

The cause of this error was the bundleIdentifier too weird to pass the expo build.
Something like that : -42SUM87BU.com.appname.ios

I am taking the maintenance of an old application. So don’t ask WHY this bundle ID… :thinking:

EAS Solve compilation problem.

But now i’m still stuck while uploading app with Transporter.

It would appear that expo add bundleIdentifier in URL Schemes.

With good bundleIdentifier like com.organisation.app => com.organisation.app:// :+1:
But in my case
-42SUM87BU.com.appname.ios:// :-1:

Upload App with Transporter =>

ERROR ITMS-90158: “The following URL schemes found in your app are not in the correct format: [-42SUM87BU.com.appname.ios]. URL schemes need to begin with an alphabetic character, and be comprised of alphanumeric characters, the period, the hyphen or the plus sign only. Please see RFC1738 for more detail.”

I found nothing in EXPO doc about this.
Only found one stackoverflow post :

You don’t need to set a custom URL Schema because expo by default sets it to your bundleIdentifier

So i’m trying to use infoPlist to override this default behavior
app.json

{
  "expo": {
    "name": "Appname",
    "slug": "appname",
    "scheme": "validscheme",
    ...
    "ios": {
      ...
      "bundleIdentifier": "-42SUM87BU.com.appname.ios",
      "infoPlist": {
        "CFBundleURLTypes": [
          {
            "CFBundleTypeRole":"Viewer",
            "CFBundleURLName": "org.appname.ios",
            "CFBundleURLSchemes": ["validscheme"]
          }
        ]
      },
    },
  }
}

But nothing change during transporter upload. Same error.

Stuck with this :crazy_face: bundleIdentifier of doom.

I need help to config Expo put only URL SCHEME i defined.

Thanks

hi there!

the easiest workaround for now is to run expo prebuild -p ios and then modify your Info.plist to remove the -42SUM87BU.com.appname.ios scheme, then run eas build and submit your app. if you don’t have a mac, then do expo prebuild -p ios --no-install to skip the cocoapods step.

we’re looking into a better solution for this case – a complicating factor here is that there are other libraries that depend on the bundle id being the scheme.

1 Like

Ok thanks, i will try with expo preduild.

Last day i found bad solution for appstore upload after :

  • expo eject -p ios ,
  • delete -42BADBUNDLEID from the Info.pList
  • eas build.

Work but big mess in the git afterwards, because of the eject.

Thank you anyway. I will try your expo prebuild -p solution.

1 Like

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