这里整合下在开发过程中遇到过的一些报错问题和解决办法:
Xcode编译错误集锦:http://www.cnblogs.com/ios-wmm/p/3402261.html
1、问题名:...... has been modified since the precompiled header was built
相关连接地址:http://www.cnblogs.com/ios-wmm/p/3272070.html
2、问题名:Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint'
链接:http://www.cnblogs.com/ios-wmm/p/3307427.html
3、问题描述:
Code Sign error: No matching provisioning profile found: Your build settings specify a provisioning profile with the UUID “XXXX”, however, no such provisioning profile was found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.0'
链接:http://www.cnblogs.com/ios-wmm/p/3360750.html
4、Xcode工程使用CocoaPods管理第三方库新建工程时出现错误
问题描述:
(1)diff: /../Podfile.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.
(2)/Users/wmm-mac/Documents/Program-SVN/Versions/code/iPhone/GeneralProject/Pods/Pods-resources.sh: line 5: /Users/wmm-mac/Documents/Program-SVN/Versions/code/iPhone/GeneralProject/Pods/resources-to-copy-GeneralProject.txt: Permission denied
链接:http://www.cnblogs.com/ios-wmm/p/3360958.html
5、iOS工程集成支付宝错误Undefined symbols for architecture armv7
问题描述:
Undefined symbols for architecture armv7:
"CreateRSADataVerifier(NSString*)", referenced from:
-[AppDelegate parseURL:application:] in AppDelegate.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
链接:http://www.cnblogs.com/ios-wmm/p/3362961.html
6、使用Xcode6.1.1打包出现Your account already has a valid iOS Distribution certificate问题
链接:http://www.cnblogs.com/ios-wmm/p/4271904.html
7、
1)找到项目中的**.xcodeproj文件,点击右键,show package contents(打开包内容)。
2)打开后找到project.pbxproj文件,用文本编辑器打开。其实就是右键,点击open就好了。
3)打开这个文件后,按command+F,在这个文件中查找“PROVISIONING_PROFILE",找到和这个“
PROVISIONING_PROFILE = "0ebcfaeb-314d........................";类似的都删除。
4)点击完成,重新打开项目即可