Apple-app-site-association 文件未链接到应用程序
Apple-app-site-association file not linking to application
即使在 48 小时后,如 apple 文档中所述,apple-app-site-association 在我的应用程序中也不起作用。我已经使用 [apple validation tools] (https://search.developer.apple.com/appsearch-validation-tool/) 检查过,但它在 Link 中显示错误 no apps associated with url to Application。这是我的 apple-app-site-association 文件的格式
{
"applinks": {
"apps": [],
"details": [{
"appID": "{team_id}.{bundle_id}",
"paths": ["*"]
}]
}
}
我还在 developer.apple.com 和 XCode 功能设置中为 appId 启用了关联域。
我已经试过了[这个](iOS Universal Links not working via TestFlight)
也检查 Apple Developer Forum 但也找不到解决方案。
确保您遵循这些步骤
- 在应用程序中启用关联域 来自 developer.apple.com
的应用程序服务
- 在 Xcode 功能的关联域中正确设置域名并启用此功能。
- 您已经正确生成了 apple-app-site-association 文件。该文件不能有任何扩展名。这是文件的格式:
{
"applinks": {
"apps": [],
"details": [{
"appID": “{app_prefix}.{your_app_bundle_identifier}”,
"paths": ["*"]
}]
}
}
确保文件中的应用标签为空,appID 由您的应用前缀和捆绑包标识符组成。
注意:我不知道为什么,但我使用的是 app 前缀而不是 teamID,正如大多数帖子甚至 apple 文档中提到的那样。但这对我不起作用。
您也可以尝试使用应用 ID 的应用前缀而不是 teamID
这个线程有点晚了,但是如果你想让 Apple 在每次安装应用程序时调用你的 app-site-association 文件,只需这样做:
applinks:[domain]?mode=developer
这样你就可以边开发边修改文件的设置了!
即使在 48 小时后,如 apple 文档中所述,apple-app-site-association 在我的应用程序中也不起作用。我已经使用 [apple validation tools] (https://search.developer.apple.com/appsearch-validation-tool/) 检查过,但它在 Link 中显示错误 no apps associated with url to Application。这是我的 apple-app-site-association 文件的格式
{
"applinks": {
"apps": [],
"details": [{
"appID": "{team_id}.{bundle_id}",
"paths": ["*"]
}]
}
}
我还在 developer.apple.com 和 XCode 功能设置中为 appId 启用了关联域。
我已经试过了[这个](iOS Universal Links not working via TestFlight)
也检查 Apple Developer Forum 但也找不到解决方案。
确保您遵循这些步骤
- 在应用程序中启用关联域 来自 developer.apple.com 的应用程序服务
- 在 Xcode 功能的关联域中正确设置域名并启用此功能。
- 您已经正确生成了 apple-app-site-association 文件。该文件不能有任何扩展名。这是文件的格式:
{
"applinks": {
"apps": [],
"details": [{
"appID": “{app_prefix}.{your_app_bundle_identifier}”,
"paths": ["*"]
}]
}
}
确保文件中的应用标签为空,appID 由您的应用前缀和捆绑包标识符组成。
注意:我不知道为什么,但我使用的是 app 前缀而不是 teamID,正如大多数帖子甚至 apple 文档中提到的那样。但这对我不起作用。
您也可以尝试使用应用 ID 的应用前缀而不是 teamID
这个线程有点晚了,但是如果你想让 Apple 在每次安装应用程序时调用你的 app-site-association 文件,只需这样做:
applinks:[domain]?mode=developer
这样你就可以边开发边修改文件的设置了!