iOS 开发中常见的BUG

来源:互联网 发布:nginx不同域名跳转 编辑:程序博客网 时间:2024/06/04 18:52

1.(null): URGENT: all bitcode will be dropped because ‘xxxx’ was built without bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. Note: This will be an error in the future.

 

从上述的错误中应该可以看出,这是因为一个第三方的库不兼容,我的工程中开启了ENABLE_BITCODE(应该是升级之后自动转换的),而这个第三方的库在编译的时候没有 enable bitcode,所以导致上诉问题。

 

enable bitcode设为NO.


2.This application's application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed.


包名重复,你卸掉原来安装的那个用appstore下载的,要么,把包名改成另一个名字。成功安装到手机后,直接出现登陆界面。


3 IOS开发证书显示此证书的签发者无效解决方法


删除原来的Apple Worldwide Developer Relations Certification Authority Intermediate Certificate证书。点击下载最新的:https://developer.apple.com/certificationauthority/AppleWWDRCA.cer下载后双击导入即可。

4.不支持armv64 编码

No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386).



Build Active Architecture Only设为YES 

5.Could not find Developer Disk Image

设备版本高于Xcode支持的最高版本。升级Xcode就可以。

6. 编译器提示类似file is universal but does not contain a(n) armv6 slice for architecture armv6的错误。可能是您的XCode版本过低,推荐使用4.2以上的版本,将XCodeBuild Settings中的Architectures设置成arm7

7. XCode提示有类似C++语法的错误。可能是您在调用接口时没有设置成OCC++混编模式(具体做法为将调用接口的实现文件改为.mm的后缀)。

8. 提示类似ld: 3 duplicate symbols for architecture i386arm7)的错误。可能是您用了与SDK相同的第三方库,解决方法是删除引起错误的第三方法库的实现文件(.m文件)。

9. 编译器提示类似file is universal (2 slices) but does not contain a(n) armv7s slice:…… for architecture armv7s的错误。是因为此版本的库还不支持arm7s的环境,将Build Settings项中的Valid ArchiteCtures中的arm7s删除即可解决。

10. 编译器提示类似Duplicate symbol _NN_Decode in /Users/…/libPPUserPayKit.a(UPPayRsa_nn.o)  for architecture armv7Command /Developer/…/bin/llvm-g++-4.2 failed with exit code 1的错误。则是因为C++混编模式引起的,您可以将Build Settings 设置项里面的Other Linker Flags设置成空即可。



0 0
原创粉丝点击