美文网首页
iOS 13 和 swift 分享出现universalLink

iOS 13 和 swift 分享出现universalLink

作者: 舟_e9ce | 来源:发表于2021-09-30 16:58 被阅读0次

删除
appdelegate 里面的

@available(iOS 13.0, *)
    func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
        // Called when a new scene session is being created.
        // Use this method to select a configuration to create the new scene with.
        return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
    }

    @available(iOS 13.0, *)
    func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
        // Called when the user discards a scene session.
        // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
        // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
    }

11111.png

删除图片上的info 里面的配置
删除SceneDelegate文件
这样苹果就不会去验证links是否是有效的了

相关文章

网友评论

      本文标题:iOS 13 和 swift 分享出现universalLink

      本文链接:https://www.haomeiwen.com/subject/ffbenltx.html