1:Xcode報(bào)錯(cuò)You don’t have permission.
原因1:
將"Default compiler (Apple LLVM 9.0)"改成“Default compiler (Apple LLVM 9.0)”
** 注:這個(gè)方法好像不行*
原因2:
添加了兩個(gè)plist文件辛润,把新的刪了
2:OBJC_CLASS$_某文件名", referenced from:
原因1. .m文件沒(méi)有導(dǎo)入
在Build Phases里的Compile Sources 中添加報(bào)錯(cuò)的文件
原因2. .framework文件沒(méi)有導(dǎo)入
**
(在xcode9.0中挠铲,手動(dòng)拖的SDK需要直接導(dǎo)入到“Link Binary With ...”)
靜態(tài)庫(kù)編譯時(shí)往往需要一些庫(kù)的支持,查看你是否有沒(méi)有導(dǎo)入的庫(kù)文件
同樣是在Build Phases里的Link Binary With Libraries中添加
3:'sharedApplication' is unavailable: not available on iOS (App Extension) - Use view controller based
/Users/lirong/Documents/git/ios/Pods/MBProgressHUD/MBProgressHUD.m:760:54: 'sharedApplication' is unavailable: not available on iOS (App Extension) - Use view controller based solutions where appropriate instead.
今天運(yùn)行Xcode一直報(bào)這個(gè)錯(cuò)誤代虾,然后去搜索解決答案歉摧,各種都是讓把cocoapods卸載了重裝的蒋搜,試了都不成功篡撵。最后終于找到解決答案。
To remove sharedApplication issue from CocoaPods Libraries you just need to change Build Options within Build Settings for your pod.
Just type to search Require Only App-Extension-Safe API and then change the value to NO as it is on the image below:
在pods Target里面豆挽,點(diǎn)擊buildSettings 然后把Require Only App-Extension-Safe API 然后把YES改為NO即可育谬。工程同理