旧工程要适配iOS10,使用UserNotifications框架中的类时编译报错,但是新建工程时则
生活随笔
收集整理的這篇文章主要介紹了
旧工程要适配iOS10,使用UserNotifications框架中的类时编译报错,但是新建工程时则
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
已經解決問題,由于舊工程時使用xcode7創建的,所以默認是沒有UserNotifications.framework框架的,只要手動導入即可。
樓主 我手動導入之后 也改了optional 添加了 search head path之后 還是報錯ld: unexpected token: !tapi-tbd-v2 file /Users/zhou/Desktop/未命名文件夾/LankeProject/LankeProject/Lib/UserNotifications.framework/UserNotifications.tbd for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
樓主 我手動導入之后 也改了optional 添加了 search head path之后 還是報錯ld: unexpected token: !tapi-tbd-v2 file /Users/zhou/Desktop/未命名文件夾/LankeProject/LankeProject/Lib/UserNotifications.framework/UserNotifications.tbd for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
總結
以上是生活随笔為你收集整理的旧工程要适配iOS10,使用UserNotifications框架中的类时编译报错,但是新建工程时则的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 干将发硎的正确读音(干将发硎的读音)
- 下一篇: 新生儿科小金库整改