1、 ld: entry point (_main) undefined. for architecture arm64,一般不會(huì)遇到,今天遇到是因?yàn)槲野袯uild Phases 里的Compile Sources刪了,報(bào)錯(cuò)原因:Compile Sources里面沒有導(dǎo)入main.m文件
解決辦法:
首先進(jìn)入targets-->Build Phases-->Compile Sources看看有沒有導(dǎo)入main.m文件
2、xxx has conflicting provisioning settings.xxx is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified. Set the code signing identity value to "iPhone Developer" in the build settings editor, or switch to manual signing in the project editor.
打正式包的時(shí)候,報(bào)以上錯(cuò)誤
解決辦法:
3、經(jīng)常遇到Xcode升級(jí)之后,代碼補(bǔ)全功能就失效。
解決辦法:command+shift+k,然后command+B編譯一下就ok了
4、手動(dòng)導(dǎo)入libjingle_peerconnection庫(kù),報(bào)112個(gè)錯(cuò)
解決辦法:targets-->Build Phases-->Link Binary Libraries
加入libc++.tbd,VideoToolbox.framework
5、cocoapods找不到工程
解決辦法:在podfile文件里加xcodeproj 'xxx/xxx.xcodeproj'
6、pod引入的第三方庫(kù),工程里引入不到
解決辦法:user Header Search Paths ->${SRCROOT} recursive
7、導(dǎo)入微信64位SDK報(bào)錯(cuò)
解決辦法:在Link Binary With Libraries 中依次加入 libsqlite3.dylib ,libz.dylib, libc++.dylib,CoreTelephony.framework添加后就可以編譯通過。
8、視頻聊天demo,導(dǎo)入SocketRocket包報(bào)錯(cuò)
解決辦法:targets-->Build Phases-->Link Binary Libraries
加入libicucore.tbd
9、appcan做插件時(shí),插件與插件沖突
build settings-->No common Blocks->No
build settings-->enable testability->No
10、webRTC引用RTCEAGLVideoView類報(bào)錯(cuò)
解決辦法:因?yàn)槿鄙倭薌LKit.framework系統(tǒng)庫(kù),所以要在targets-->Build Phases-->Link Binary Libraries加入該庫(kù)
11、報(bào)錯(cuò):This application's application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed
解決方法:
1、Xcode-Window->Devices
2、選中你的設(shè)備,在右邊的installed Apps中刪除這個(gè)App
3、重新編繹即可
12、storyboard里報(bào)錯(cuò):Push segues can only be used when the source controller is managed by an instance of UINavigationCotroller
這個(gè)問題是對(duì)于沒有navigationController的VC使用了push操作
13、clang: error: no input files這個(gè)問題一般是因?yàn)槟銊h除或者移動(dòng)了某一個(gè)文件,但是在你的編譯資源里面( project > target > Build Phases > Compile Sources)還存在它,只要在(project > target > Build Phases > Compile Sources)里面把那些紅色的文件刪除掉,就可以編譯過了。
14、原因是要添加的類庫(kù)已經(jīng)有最新版本推出,而Podfile文件并沒有更改其下載版本(Podfile文件過期),于是獲取安裝數(shù)據(jù)失敗。
首先:pod update --verbose
不行的話:
刪除本地緩存,重新setup
$rm -fr ~/.cocoapods/repos/master
$pod setup