apple-app-site-association
。我创建了一个没有扩展名的.JSON文件,并将其放置在我的网站根目录中。
现在,在任何浏览器上,我都可以看到该文件的位置为https://example.com/apple-app-site-association。
以下是apple-app-site-association文件内部的json主体-
{
"applinks": {
"apps": [],
"details": [
{
"appID": "AppID.bundleIdentifier",
"paths": [ "*"]
}
]
}
}
我在我的网站(使用angular.js)的.htaccess中添加了以下内容 -
<FilesMatch "^apple-app-site-association$"> ForceType application/json </FilesMatch>
我已经在Xcode和developer.apple.com中启用了“关联域名”,但是当我尝试安装新的构建时,它无法工作。通过查看设备日志,我发现以下错误。
请帮忙看一下并告诉我哪里出了问题。
[SWC] ### Bad apple-app-site-association JSON: Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option to allow fragments not set." UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}
jsonlint.com
上检查了 JSON,它显示为有效的 JSON,但仍然遇到相同的问题。对于发生了什么事情感到非常困惑..!! - onCompletion