HomeiOS Developmentazure - Android scheme not accepted by IOS when submitting react-native app...

azure – Android scheme not accepted by IOS when submitting react-native app by Expo EAS


The issue

I am attempting to implement Microsoft login into my app. I am utilizing the expo oAuth plugin as described within the documentation (https://docs.expo.dev/guides/authentication/#azure).

I can construct and run high quality on android and ios BUT as quickly as I attempt to submit the construct for ios, I am receiving an error

Ready for submission to finish. You may press Ctrl+C to exit.
✖ One thing went improper when submitting your app to Apple App Retailer Join.

We could not determine what went improper. See logs to be taught extra.

[logs] Beginning the submit course of
[logs] Downloading archive        
[logs] Getting ready artifact
[logs] Verifying archive
[logs] Creating ascApiJsonKey.json file with ASC credentials
[logs] Submitting iOS app to TestFlight...
[logs] Submitting the app with fastlane pilot
[logs] -------------------
[logs] --- Step: pilot ---
[logs] -------------------
[logs] Creating authorization token for App Retailer Join API
[logs] Able to add new construct to TestFlight (App: 911779924)...
[logs] Going to add up to date app to App Retailer Join
[logs] This would possibly take a couple of minutes. Please do not interrupt the script.
[logs] [altool] 2023-11-03 02:55:19.639 *** Error: Asset validation failed The next URL schemes present in your app are disallowed: [msauth] (ID: c3d7df49-5de2-4684-a732-f23c1b7638a6) (90155)
[logs] [altool]  {
[logs] 
[logs] [altool]     NSLocalizedDescription = "Asset validation failed";
[logs] 
[logs] [altool]     NSLocalizedFailureReason = "The next URL schemes present in your app are disallowed: [msauth] (ID: c3d7df49-5de2-4684-a732-f23c1b7638a6)";
[logs] 
[logs] [altool]     "original_server_error" =     {
[logs] 
[logs] [altool]         code = "STATE_ERROR.VALIDATION_ERROR.90155";
[logs] 
[logs] [altool]         element = "The next URL schemes present in your app are disallowed: [msauth]";
[logs] 
[logs] [altool]         id = "c3d7df49-5de2-4684-a732-f23c1b7638a6";
[logs] 
[logs] [altool]         standing = 409;
[logs] 
[logs] [altool]         title = "Asset validation failed";
[logs]
[logs] [altool]     };
[logs]
[logs] [altool] }
[logs]
[logs] Utility Loader output above ^
[logs] ERROR: Asset validation failed (90155) The next URL schemes present in your app are disallowed: [msauth] (ID: c3d7df49-5de2-4684-a732-f23c1b7638a6)
[logs] Error importing '/var/folders/8m/cfpqfjyx37xd0tlkyxt9flph0000gn/T/e60cec55-13b3-4757-8501-eee3697d70e7.ipa'.
[logs] Asset validation failed The next URL schemes present in your app are disallowed: [msauth] (ID: c3d7df49-5de2-4684-a732-f23c1b7638a6) (90155)
[logs] The decision to the altool accomplished with a non-zero exit standing: 1. This means a failure.
[logs] Couldn't obtain/add from App Retailer Join!
[logs] [!] Error importing ipa file:
[logs]  [Application Loader Error Output]: ERROR: Asset validation failed (90155) The next URL schemes present in your app are disallowed: [msauth] (ID: c3d7df49-5de2-4684-a732-f23c1b7638a6)
[logs] [Application Loader Error Output]: Error importing '/var/folders/8m/cfpqfjyx37xd0tlkyxt9flph0000gn/T/e60cec55-13b3-4757-8501-eee3697d70e7.ipa'.
[logs] [Application Loader Error Output]: Asset validation failed The next URL schemes present in your app are disallowed: [msauth] (ID: c3d7df49-5de2-4684-a732-f23c1b7638a6) (90155)
[logs] [Application Loader Error Output]: The decision to the altool accomplished with a non-zero exit standing: 1. This means a failure.
[logs] Fastlane pilot failed
[logs] Didn't submit the app

I notice that msauth is the android scheme however I would like it for the azure login to work on android. With out that scheme, the login doesn’t redirect again to my app.

My configuration

in app.json I’ve the schemes outlined as follows. I’ve redacted my fb ID.

"scheme" : ["carpool", "fb[SECRET_ID]", "msauth"],

My redirect url object is constructed like this :

const redirectObject = {
        scheme : Platform.OS === 'ios' ? "msauth.be.cpa.taxistop.Carpool" : "msauth",
        path : Platform.OS === 'ios' ? "auth" : "be.taxistop.carpool/[HASH]",
        useProxy: USE_PROXY,
    };

I am establishing the article above like that based mostly on the data I’ve within the azure portal :

enter image description here

Issues I’ve tried

I’ve tried eradicating the ‘msauth’ scheme after which I can efficiently undergo testflight however then I’ve no redirect within the android app.

Subsequent, I attempted including the scheme to the plist by app.json as prompt right here : https://boards.expo.dev/t/url-scheme-not-recognized-ios/69701

 "infoPlist": {
        "CFBundleURLTypes": [
          {
            "CFBundleTypeRole": "Editor",
            "CFBundleURLSchemes": ["msauth"]
          }
        ],
        "LSApplicationQueriesSchemes": ["msauth"]
      }

That did sadly not work both.

Subsequent, I ‘ejected’ my app (prebuild), added the scheme to the plist instantly in xcode (on a mac), I used to be capable of succesfully construct the app and make an archive however when submitting the app to testflight I used to be greeted by the very same error message once more.

I am utterly caught and out of concepts at this level so I hope somebody right here might help me in the precise course…

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments