关于真机调试遇到的问题

1.  Phone may be running a version of iOS that is not supported by this version of Xcode.

   解决方案  :将xcode升级




2. This error happens when you have set Distribution Provisioning profile in code signing. Change it to Developer Provisioning Profile, then it will work. Worked for me for Xcode SDK 4.5.

解决方案:把你的code sign由Distribution改成Developer.就这么简单.

              补充:

iphone5s的时候会出现:process launch failed: security

这时候,应该app其实已经安装成功了,你只需要在iphone上启动app,然后点击信任就可以了。



3.The certificate used to sign "APP名" has either expired or has been revoked.

解决的方法:

打开“钥匙串访问”->我的证书:删除相关的证书

真机运行,fix出现的错误,又提示错误Thisapplication'sapplication-identifierentitlementdoesnotmatchthatofthe installedapplication

意思是iPhone上已经装了包标识符一样的 App,删掉再运行- -!!

安装成功!但是在手机上打开会提示:

不受信任的开发者您的设备管理设置不允许在此台iPhone上使用开发者"XXX"的应用您可以在"设置"中允许使用这些应用

打开手机设置-通用-拉到最下面的“描述文件”-信任应用


4.Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng emitted errors but did not return a nonzero exit code to indicate failure

解决方案:

原因1. 是提示的png并不是ps导出的png,而是手动修改jpeg后缀名为png,在模拟器上不会报错,但在真机,不  识别这种所谓  的“png”图片。(随便批下美工)

原因2:这是因为png图片的问题,png图片在存储的时候有一个NOT INTERLACED/INTERLACED(无交错/交错)的选项,因为设计师在切图的时候的存储错误,图片在XCode中就会报这个错误,但是还是会编译成功并运行,请设计师将图片重新按无交错存储就行了。


5.(null): Could not find file: /Users/zhaoyonghong/Library/Developer/Xcode/DerivedData/OurMarry-byrhodnsokwjlhgdaryxysvtverq/Build/Products/Debug-iphoneos/OurMarry.app/[email protected]

解决方案:

改Build Setting中改一下项目名字就好了

原因,项目名不同造成的

Build Setting----》Product Name---

你可能感兴趣的:(关于真机调试遇到的问题)