美文网首页
iOS 错误集锦

iOS 错误集锦

作者: Amy莫莫 | 来源:发表于2017-02-15 16:49 被阅读402次

1、 ld: entry point (_main) undefined. for architecture arm64,一般不会遇到,今天遇到是因为我把Build Phases 里的Compile Sources删了,报错原因:Compile Sources里面没有导入main.m文件
解决办法:

首先进入targets-->Build Phases-->Compile Sources看看有没有导入main.m文件

4272BED5-AD9D-4EFD-9257-C88A260E8330.png

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.
打正式包的时候,报以上错误
解决办法:

C148B625-211D-4350-90D7-6C2D2AC8F87A.png

3、经常遇到Xcode升级之后,代码补全功能就失效。
解决办法:command+shift+k,然后command+B编译一下就ok了

4、手动导入libjingle_peerconnection库,报112个错

62601BDE-1912-4B0D-A84D-AD8168991430.png

解决办法:targets-->Build Phases-->Link Binary Libraries
加入libc++.tbd,VideoToolbox.framework
5、cocoapods找不到工程


43912471-4E28-4318-BFE3-BEBDA2EBF3DC.png

解决办法:在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包报错

82811F74-BBD2-4C99-9155-1063807CBEFF.png

解决办法:targets-->Build Phases-->Link Binary Libraries
加入libicucore.tbd

9、appcan做插件时,插件与插件冲突
build settings-->No common Blocks->No
build settings-->enable testability->No
10、webRTC引用RTCEAGLVideoView类报错

551103C1-0563-4C32-AEE2-5DECA1D9ACDE.png

解决办法:因为缺少了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、 2C683478CEDC16A4B1E824E820F95636.png

原因是要添加的类库已经有最新版本推出,而Podfile文件并没有更改其下载版本(Podfile文件过期),于是获取安装数据失败。
首先:pod update --verbose

不行的话:

删除本地缓存,重新setup

$rm -fr ~/.cocoapods/repos/master

$pod setup

相关文章

  • iOS 错误集锦

    1、 ld: entry point (_main) undefined. for architecture ar...

  • iOS错误集锦

    iOS 8.0才添加containsString方法,iOS 7.x系统会崩溃 当钥匙串中调试证书的签发者无效时,...

  • ios 错误集锦

    ANF报错:Remote object proxy returned error: Error Domain=NS...

  • iOS打包错误集锦

    ERROR ITMS-90034 fix for xcode ERROR ITMS-90034 – Missing...

  • iOS常见错误集锦

    1、“.app: resource fork, Finder information, or similar de...

  • ios 开发错误集锦

  • iOS编程错误集锦(一)

    工作过程中遇到一些Bug, 解决方案往往是在网上找的, 或者自己的一些灵感迸发, 常常会在下次再遇到这类问题的时候...

  • iOS 开发错误集锦

    1.tableView中 重用xib创建的cell时报错(17-11-18) 错误 terminating wit...

  • iOS开发中错误集锦

    1、iOS真机调试时出现“failed to get the task for process xxx” 现象:运...

  • iOS-开发错误集锦

    在开发中.我们可能会遇到各种各样的问题.下面的问题是我近期遇到的 1.Xcode创建项目时点选Git后创建的项目一...

网友评论

      本文标题:iOS 错误集锦

      本文链接:https://www.haomeiwen.com/subject/fjvqwttx.html