Search code examples
iosurl-scheme

iOS "URL schemes found in your app are not in the correct format" while uploading app


I am getting the error below while uploading an app to the App Store.

ERROR ITMS-90158: "The following URL schemes found in your app are not in the correct format: [5063495]. 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 am using Facebook, Google+, Instagram and LinkedIn Login in my app.

Info.plist file code

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>fb***************</string>
            <string>5063495</string>
        </array>
    </dict>
    <dict>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>com.googleusercontent.apps.************-juag6bl6uqrrd0ivf80anjics6j92ehp</string>
        </array>
    </dict>
</array>

Solution

  • According to the error message:

    • you must start URL schemes with a letter (so, in OP's example, the URL scheme 5063495 needs to be removed)
    • you can only use alphanumeric characters (a-z, 0-9), a period (.), a hyphen (-) or a plus sign (+), so if you have a character in your URL scheme that's none of the above, remove it

    The message also states that you can check out RFC1738 for more details, which is a document describing the syntax and semantics for URLs.