简体   繁体   中英

iOS Universal links apple-app-site-association file issue

I'm trying to set up universal links for my app. I've placed apple-app-site-association file in.well-known directory of web server. Url to it allow me download this file. But I have error when use https://search.developer.apple.com/appsearch-validation-tool/ : " 'myurl.com'is returning 601. Please check your url and try again."

Here my file:

{
"applinks": {
    "apps": [],
    "details": [
        {
            "appIDs": [
                "App ID Prefix.Bundle ID",
                "App ID Prefix.Bundle ID",
                "App ID Prefix.Bundle ID",
                "App ID Prefix.Bundle ID",
                "App ID Prefix.Bundle ID",
                "App ID Prefix.Bundle ID"
            ],
            "components": [
                {
                    "/": "/myapp-app",
                    "comment": ""
                }
            ]
        },
        {
            "appID": "App ID Prefix.Bundle ID",
            "paths": [
                "/myapp-app"
            ]
        },
        {
            "appID": "App ID Prefix.Bundle ID",
            "paths": [
                "/myapp-app"
            ]
        },
        {
            "appID": "App ID Prefix.Bundle ID",
            "paths": [
                "/myapp-app"
            ]
        },
        {
            "appID": "App ID Prefix.Bundle ID",
            "paths": [
                "/myapp-app"
            ]
        },
        {
            "appID": "App ID Prefix.Bundle ID",
            "paths": [
                "/myapp-app"
            ]
        },
        {
            "appID": "App ID Prefix.Bundle ID",
            "paths": [
                "/myapp-app"
            ]
        }
    ]
}

}

I cannot find an issue in my file. There are 6 appIds because we had 6 environments for our app. What I do wrong?

May be it will help someone... I've added this part
{ "appIDs": [ "App ID Prefix.Bundle ID", "..." ], "components": [ { "/": "/myapp-app", "comment": "" } ] },
to support iOS 13. I've removed this part and universal links works for me know even on iOS 13.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM