![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Xcode 错误分析
cafei111
这个作者很懒,什么都没留下…
展开
-
关于ios6中第三方类库不支持armv7s的解决方案
今天编译工程的时候遇到了下面的错误信息 ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/XXXX/libzbar.a for architecture armv7s clang: error: linker command failed with exit code 1 (u原创 2013-05-12 16:21:37 · 1018 阅读 · 0 评论 -
在使用storyboard的时候,适配6plus的时候,模拟器的两边会出现很细的白边
解决方案: 取消Constrain to margin,然后添加左右约束原创 2015-06-24 18:43:29 · 1039 阅读 · 0 评论 -
The target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Pods.xcconfig
[!] The `app [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation转载 2015-04-16 17:02:52 · 2444 阅读 · 0 评论 -
CocoaPods Errors on Project Build
le.lock: No such file or directory diff: Manifest.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.` $转载 2015-04-10 14:02:19 · 624 阅读 · 0 评论 -
Undefined symbols for architecture x86_64:
编译工程报错,错误信息:Undefined symbols for architecture x86_64: 可能有2种情况: 1.加入的SDK或者framework不支持64位 解决办法:Build Seetings-->Architectures改成"$(ARCHS_STANDARD_32_BIT)",Valid Architectures里面的值去掉“arm64” 2原创 2015-03-24 17:15:16 · 1271 阅读 · 0 评论 -
静态库使用类别报错unrecognized selector sent to instance
静态库使用类别的时候,报错unrecognized selector sent to instance,查了一下,解决方法如下: unrecognized selector sent to instance原创 2014-11-20 15:02:25 · 1516 阅读 · 0 评论 -
'libxml/HTMLparser.h' not found
编译工程的时候报错:'libxml/HTMLparser.h' not found 解决方案: target-->Link Binary With Libraries-->add libxml2.2.dylib target-->Build Settings-->Header Search Paths-->${SDK_DIR}/usr/include/libxml2原创 2014-04-21 11:02:49 · 825 阅读 · 0 评论 -
file is universal (3 slices) but does not contain a(n) armv7s
错误信息:file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/XXXX 解决方案: set Valid Architectures to "arm64 armv7" ,delete ""armv7s(on both "Project" and "Target")原创 2013-10-23 16:30:49 · 923 阅读 · 0 评论 -
linker command failed with exit code 1 (use -v to see invocation)
linker command failed with exit code 1 (use -v to see invocation) 解决方案: - Clean and rebuild - Set Build Active Architecture Only to Yes (on both "Project" and "Target")原创 2013-09-24 14:29:52 · 902 阅读 · 0 评论 -
Unsupported compiler 'com.apple.compilers.llvmgcc42' selected for architecture 'armv7' Xcode5
刚刚将Xcode更新到Xcode5,一运行报如下错误: Unsupported compiler 'com.apple.compilers.llvmgcc42' selected for architecture 'armv7' 解决方案: Change your compiler for C/C++/ObjectiveC Go to Build Settings->Build OP原创 2013-09-24 10:29:18 · 7031 阅读 · 0 评论 -
Code Sign error: Provisioning profile 'xxx' can't be found
Xcode更新了证书之后在编译项目出现了Code Sign error: Provisioning profile 'xxx' can't be found 解决方案: 1.关闭项目 2.找到XXX.xcodeproj,右键点击,显示包内容 3.找到project.pbxproj,打开,在此文件中找到你的编码信息 比如,我报的错误信息是Code Sign error: Provisio原创 2013-09-12 20:51:16 · 1018 阅读 · 0 评论 -
[UIPopoverController dealloc] reached while popover is still visible.'
UIImagePickerController *picker =[[UIImagePickerController alloc] init]; picker.delegate = self; picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;原创 2013-09-02 09:38:20 · 1799 阅读 · 0 评论 -
Could not change executable permissions on the application.
Xcode编译时报错:Could not change executable permissions on the application. 原因: 用同一个bundle identifier安装了两个应用程序 解决方案: 删除设备里面的应用,重新编译即可原创 2013-08-27 14:49:37 · 664 阅读 · 0 评论 -
xxx.octest could not be loaded because a link error occurred
今天在跑测试用例的时候报错: The test bundle at /Users/xxx/Library/Developer/Xcode/DerivedData/xxx-dwvsglwyzicegbbfgziaahispxgq/Build/Products/Debug-iphonesimulator/xxx.octest could not be loaded because a lin原创 2013-08-22 19:09:57 · 1289 阅读 · 0 评论 -
SenTestingKit/SenTestingKit.h: No such file or directory
出现问题的原因: 与单元测试有关的源文件添加到了不正确的Targets中,单元测试的Target与另外的主程序文件是属于不同的target的。 两种解决办法: 1:重新添加.h和.m文件,在弹出的对话框的底部有一个“Add to targets”选项,一定要选中那个与单元测试相对应的xxxTests项,重新编译。 2:找到Target的Build Phases设置,仔细检查原创 2013-08-19 14:54:34 · 875 阅读 · 0 评论 -
dyld: lazy symbol binding failed: Symbol not found: _objc_setProperty_nonatomic_copy
工程跑SDK6.1的时候很正常,但今天跑了一下SDK5.1就出现问题了: dyld: lazy symbol binding failed: Symbol not found: _objc_setProperty_nonatomic_copy Referenced from: /Users/xxx/Library/Application Support/iPhone Simulator原创 2013-07-09 09:54:32 · 4009 阅读 · 0 评论 -
[UIView recursiveEnumerateSubviewsUsingBlock:]: unrecognized selector sent to instance
今天在工程里面添加第三方库的时候,出现了[UIView recursiveEnumerateSubviewsUsingBlock:]: unrecognized selector sent to instance 错误 解决方案: targets-->Build Setting-->Other Linker Flags 添加-ObjC,如图:原创 2013-06-08 16:55:19 · 936 阅读 · 0 评论 -
gen_entitlements.py: No such file or directory
从网上下了一个应用,但是调式到真机上的时候,报错,很郁闷,错误如下: /Users/UserName/Library/Developer/Xcode/DerivedData/XXXX-gbptdycicygzdybegaywigkbbdqh/Build/Intermediates/XXXX.build/Debug-iphoneos/XXXX.build/Script-35DBA04015转载 2013-05-14 15:16:27 · 2434 阅读 · 0 评论 -
warning: Could not resolve external type c:objc(cs)NSString
在引入第三方库后,出现这个警告 while processing /Users/.../Pods/libWeChatSDK/libWeChatSDK.a(WeChatRegister.o): warning: /Users/yuetongmai/Library/Developer/Xcode/DerivedData/WeChatSDK-dxxshmzcbrssjsfhojftiec原创 2016-02-19 11:28:46 · 1046 阅读 · 0 评论