ios开发笔记iOS bug修复iOS日常知识储备

Xcode 报错

2016-04-26  本文已影响856人  Tuberose

一般在程序中先打一个全局断点,崩溃的时候,一般就能通过断点定位到在哪里

1:
The application could not be verified.
2
[dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib]
3
[Fatal error: unexpectedly found nil while unwrapping an Optional values]
/**
开始冲击线动画
*/
private func startAnimation()
{
// 1.初始化冲击波位置
ScanLineTopCons.constant = -ContainerHeightCons.constant
view.layoutIfNeeded()
// 2.执行动画
UIView.animateWithDuration(2.5, animations: { () -> Void in
// 告诉系统该动画需要重复
UIView.setAnimationRepeatCount(MAXFLOAT)
self.ScanLineTopCons.constant = self.ContainerHeightCons.constant
self.view.layoutIfNeeded()
})
}
ScanLineTopCons.constant = -ContainerHeightCons.constant
func signButtonClickAction(){
let detectViewController = FaceDetectViewController(nibName: "FaceDetectViewController", bundle: nil)
detectViewController.delegate = self
presentViewController(detectViewController, animated: true, completion: nil)
}
4
This application's application-identifier entitlement does not match that of the installed application. 
These values must match for an upgrade to be allowed.
5
Could not find Developer Disk Image
6
[Xcode 7.2 no matching provisioning profiles found]
I also had some problems after updating Xcode.
I fixed it by opening Xcode Preferences (⌘+,), going to *Accounts* → *View Details*. Then select all provisioning profiles and delete them with backspace. Restart Xcode, else the list doesn't seem to update properly.
Now click the *Download all* button, and you should have all provisioning profiles that you defined in the Member center back in Xcode. Don't worry about the Xcode-generated ones (Prefixed with XC:
), Xcode will regenerate them if necessary.
Now go to the *Code Signing* section in your Build Settings and select the correct profile and cert. If necessary, restart Xcode again.
Why this happens at all? No idea... I gave up on understanding Apple's policies regarding app signing.
7
The model used to open the store is incompatible with the one used to create the store
遇到Xcode报错的问题,或者说在开发中遇到的任何难题,基本都可以Google出来,一些问题我们应该自己去动手解决,自己找寻到的知识,才是属于我们自己的。而且StackOverFlow基本无所不知。
Google小技巧就是:关键字 ➕ 空格 ➕ 关键字,最好不要按自己想的话语一长串的去搜索
碉堡了
上一篇下一篇

猜你喜欢

热点阅读