1、 ld: entry point (_main) undefined. for architecture arm64,一般不会遇到,今天遇到是因为我把Build Phases 里的Compile Sources删了,报错原因:Compile Sources里面没有导入main.m文件
解决办法:
首先进入targets-->Build Phases-->Compile Sources看看有没有导入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.
打正式包的时候,报以上错误
解决办法:
3、经常遇到Xcode升级之后,代码补全功能就失效。
解决办法:command+shift+k,然后command+B编译一下就ok了
4、手动导入libjingle_peerconnection库,报112个错
解决办法:targets-->Build Phases-->Link Binary Libraries
加入libc++.tbd,VideoToolbox.framework
5、cocoapods找不到工程
解决办法:在podfile文件里加xcodeproj 'xxx/xxx.xcodeproj'
6、pod引入的第三方库,工程里引入不到
解决办法:user Header Search Paths ->${SRCROOT} recursive
7、导入微信64位SDK报错
解决办法:在Link Binary With Libraries 中依次加入 libsqlite3.dylib ,libz.dylib, libc++.dylib,CoreTelephony.framework添加后就可以编译通过。
8、视频聊天demo,导入SocketRocket包报错
解决办法:targets-->Build Phases-->Link Binary Libraries
加入libicucore.tbd
9、appcan做插件时,插件与插件冲突
build settings-->No common Blocks->No
build settings-->enable testability->No
10、webRTC引用RTCEAGLVideoView类报错
解决办法:因为缺少了GLKit.framework系统库,所以要在targets-->Build Phases-->Link Binary Libraries加入该库
11、报错: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、选中你的设备,在右边的installed Apps中删除这个App
3、重新编绎即可
12、storyboard里报错:Push segues can only be used when the source controller is managed by an instance of UINavigationCotroller
这个问题是对于没有navigationController的VC使用了push操作
13、clang: error: no input files这个问题一般是因为你删除或者移动了某一个文件,但是在你的编译资源里面( project > target > Build Phases > Compile Sources)还存在它,只要在(project > target > Build Phases > Compile Sources)里面把那些红色的文件删除掉,就可以编译过了。
14、原因是要添加的类库已经有最新版本推出,而Podfile文件并没有更改其下载版本(Podfile文件过期),于是获取安装数据失败。
首先:pod update --verbose
不行的话:
删除本地缓存,重新setup
$rm -fr ~/.cocoapods/repos/master
$pod setup