iOS 13 和 swift 分享出现universalLink不生效、跳转微信失败问题

删除
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) {
        // 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不生效、跳转微信失败问题)