- 关联域名,有讲究
- 需在该域名的根目录下,添加配置文件
文件名 apple-app-site-association
文件内容
{
"applinks": {
"details": [
{
"appID": "团队名" + "." + "bundle id",
"paths": ["/","/*"]
}
]
}
}
- 生效
另外一个工程开启,该工程
func jumpW(){
if let appSettings = URL(string: "https://www.xxx.cn"), UIApplication.shared.canOpenURL(appSettings) {
UIApplication.shared.open(appSettings)
}
}
需要把该工程删除,再重新安装该工程
另外一个工程,才可以开启该工程