一些平时遇到的bug总结

来源:互联网 发布:三了个七 淘宝买家秀 编辑:程序博客网 时间:2024/05/18 00:51

1./Users/UserName/Library/Developer/Xcode/DerivedData/xxx-beqfpakeslcfgjghvltweyjadfjk/Build/Intermediates/xxx.build/Debug-iphoneos/xxx.build/Script-B354780B144C8CA2002C6922.sh: line 4: /Developer/xcode-crack/gen_entitlements.py: No such file or directory

解决方法:Targets->Build Phases中删除Run Script
运行 问题解决


2. Could not change executable permissions on the application.

造成的原因是因为设备存在一个相同证书,这个时候只要删除设备上相同证书的应用,就可以了


3.linker command failed with exit code 1 (use -v to see invocation)

这个问题的解决方式是在Build Settings里面将 Build Active Architecture Only 设置为YES,这个参数设置代表是否根据代码自动设置SDK编译


4.libxml2.dylb  添加后  引用不了<libxml/tree.h>
XCODE ,  Project -> Edit Project Settings -> Build You need to add “/usr/include/libxml2″ to the “Header Search Paths” and you need to add “-lxml2″ to the “Other Linker Flags”.

5.如何解决“My mac 64-bit”问题

这种情况一般是从其他mac电脑copy过来项目造成的
解决方式:首先关闭xcode 然后在目录下会看到一个.xcodeproj后缀的文件,右键,显示包内容,然后删除里面xcuserdata的文件夹,重新启动xcode,就可以了

6.

“A valid provisioning profile for this executable was not found.”

在开发时真机测试遇到这个问题,原因是因为之前发布过应用,在target的code signing中的code signing identity已经置为iphone Distribution发布状态,改为iphone Developer就ok了。

7.

ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/tiantianyundong/Desktop/工程/traffic/traffic/classes/voice/VoiceConvert/lib/libopencore-amrnb.a for architecture armv7s

通过PROJECT-Build Setting,然后把Build Active Architecture Only的值设置为Yes。