通用 link 适用于 xcode8 模拟器,但不适用于 ios 10 设备

Universal link works in xcode8 simulator but not on ios 10 device

最近我升级到 xcode 8。我配置了通用的 links,在我发布基于 xcode 8.[=18= 的更新版本之前一直工作正常]

令人惊讶的是,当我在模拟器中测试时,通用 link 工作 - 我可以按右上角,然后它在 Safari 中打开 - 我再次按右上角,它显示 OPEN 横幅打开应用程序。还可以点击电子邮件中嵌入的 URL。

但是我无法在设备上的应用程序中打开任何 link。我的应用程序名称是 kabuter,apple-app-site-association 文件位于 https://www.kabuter.com/.well-known

我检查并确认我的应用构建包含授权文件(其中包含应用links 条目)。

在 apple appsearch-validation-tool 中,我得到:

Link to Application

ACTION REQUIRED

Could not extract required information for Universal Links. Learn how to implement the recommendedUniversal Links.

Extracted Data

Error no apps with domain entitlements The entitlement data used to verify deep link dual authentication is from the current released version of your app. This data may take 48 hours to update.

branch.io 验证者 https://branch.io/resources/universal-links/ 通过所有测试。

当我将我的设备连接到 xcode:

时,我也在我的日志中看到了这个
logging for process kabuter

2016-10-12 19:48:27.247786 kabuter[619:90471] WF: _userSettingsForUser mobile: {

    filterBlacklist =     (
    );

    filterWhitelist =     (
    );

    restrictWeb = 1;

    useContentFilter = 0;

    useContentFilterOverrides = 0;

    whitelistEnabled = 0;

}

2016-10-12 19:48:27.248052 kabuter[619:90471] WF: _WebFilterIsActive returning: NO

有没有人遇到过这个问题并找到了解决方案?有什么指点吗?

听起来您可能无意中禁用了该设备上的通用链接。幸运的是,重新启用它们相当简单:

  1. 获取通用链接URL
  2. 将 URL 粘贴到备注中
  3. 长按 URL 和 select 'Open in [app name]'