Trying to Deliver App to iOS Application Loader fails


#1

When I try to upload my app to the iOS Application Loader I get this error

ERROR ITMS-90158: “The following URL schemes found in your app are not in the correct format: . 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’ve tried changing app.json to it’s bare minimum but this has not worked.

This is it as it works on the simulator

{
  "expo": {
    "name": "myappname",
    "description": "description",
    "slug": "myapp",
    "privacy": "unlisted",
    "sdkVersion": "32.0.0",
    "platforms": [
      "ios",
      "android"
    ],
    "version": "1.1.0",
    "orientation": "portrait",
    "splash": {
      "image": "./assets/images/splashScreen.png",
      "backgroundColor": "#be6600",
      "resizeMode": "cover"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "android": {
        "package": "com.myappname.myappname",
        "config": {
          "googleMaps": {
            "apiKey": "keygoeshere",
          },
        },
        "versionCode": 100,
        "permissions": 
            [
                "ACCESS_COARSE_LOCATION",
                "ACCESS_FINE_LOCATION",
            ],
        "icon": "./assets/icon_launcher/res/mipmap-xxhdpi/icon_launcher.png",
        "adaptiveIcon": {
            "backgroundColor": "#be6600",
            "foregroundImage": "./assets/icon_launcher/res/mipmap-xxhdpi/icon_launcher.png"
          }
    },
    "ios": {
      "icon": "./assets/iconincolor.png", 
      "bundleIdentifier": "com.myappname.myappname",
      "supportsTablet": true
    }
  }
}


I have no idea what needs to be changed to fix this issue. Any help will be greatly appreciated.

Thanks!


#2

Hi @dela1000 ,
I think the problem is with your bundle identifier (it’s probably in a wrong format). I assume you’ve redacted your app.json and com.myappname.myappname is not the real bundle identifier you’re using. If you don’t tell us what it is we cannot help you :slight_smile:


#3

Figured out the issue.

On the ios section I originally had:

"ios": {
      "icon": "./assets/iconincolor.png", 
      "bundleIdentifier": "com.myappname.myappname",
      "buildNumber": "1.2.0",
      "config": {
        "googleSignIn": {
          "reservedClientId": [-]
        },
        "googleMapsApiKey": "GOOGLE_MAPS_API_KEY_GOES_HERE",
      },
      "infoPlist": {
        "NSLocationWhenInUseUsageDescription": "MyAppName needs this permission. Please grant it to the app",
      },
      "supportsTablet": true
    }

The error was being caused by not having the reservedClientId value correctly added.

Thanks for the message anyway.