內(nèi)容有的是從網(wǎng)上查到的,有的是自己遇到的耸携,后期還會(huì)繼續(xù)補(bǔ)充纵诞。
1忙干、While reading /Users/zhangxue/Desktop/ios開發(fā)-svn/shineTour_V2.3.1/YFShineTour/YFShineTour/Resources/Images/PartTreeViewController/fristLevelBg_3.png pngcrush caught libpng error:
Read Error
Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng emitted errors but did not return a nonzero exit code to indicate failure
原因及相應(yīng)原因的解決方案:
原因1. 是提示的png并不是ps導(dǎo)出的png器予,而是手動(dòng)修改jpeg后綴名為png,在模擬器上不會(huì)報(bào)錯(cuò)捐迫,但在真機(jī)乾翔,不? 識(shí)別這種所謂? 的“png”圖片。(隨便批下美工)
原因2:這是因?yàn)閜ng圖片的問(wèn)題施戴,png圖片在存儲(chǔ)的時(shí)候有一個(gè)NOT INTERLACED/INTERLACED(無(wú)交錯(cuò)/交錯(cuò))的選項(xiàng)反浓,因?yàn)樵O(shè)計(jì)師在切圖的時(shí)候的存儲(chǔ)錯(cuò)誤,圖片在XCode中就會(huì)報(bào)這個(gè)錯(cuò)誤赞哗,但是還是會(huì)編譯成功并運(yùn)行雷则,請(qǐng)?jiān)O(shè)計(jì)師將圖片重新按無(wú)交錯(cuò)存儲(chǔ)就行了。
2肪笋、The certificate used to sign "APP名" has either expired or has been revoked.
解決方案:
打開“鑰匙串訪問(wèn)”->我的證書:刪除相關(guān)的證書
真機(jī)運(yùn)行月劈,fix出現(xiàn)的錯(cuò)誤,又提示錯(cuò)誤Thisapplication'sapplication-identifierentitlementdoesnotmatchthatofthe installedapplication
意思是iPhone上已經(jīng)裝了包標(biāo)識(shí)符一樣的 App藤乙,刪掉再運(yùn)行- -R照弧!
安裝成功湾盒!但是在手機(jī)上打開會(huì)提示:
不受信任的開發(fā)者您的設(shè)備管理設(shè)置不允許在此臺(tái)iPhone上使用開發(fā)者"XXX"的應(yīng)用您可以在"設(shè)置"中允許使用這些應(yīng)用
打開手機(jī)設(shè)置-通用-拉到最下面的“描述文件”-信任應(yīng)用
3、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.就這么簡(jiǎn)單诅妹。
補(bǔ)充:iphone5s的時(shí)候會(huì)出現(xiàn):process launch failed: security罚勾。
這時(shí)候,應(yīng)該app其實(shí)已經(jīng)安裝成功了吭狡,你只需要在iphone上啟動(dòng)app尖殃,然后點(diǎn)擊信任就可以了。
4划煮、(null): Could not find file: /Users/zhaoyonghong/Library/Developer/Xcode/DerivedData/OurMarry-byrhodnsokwjlhgdaryxysvtverq/Build/Products/Debug-iphoneos/OurMarry.app/icon@2x.png
解決方案:改Build Setting中改一下項(xiàng)目名字就好了. ? 原因:項(xiàng)目名不同造成的送丰。
5、Phone may be running a version of iOS that is not supported by this version of Xcode.?
解決方案:把Xcode升級(jí)就可以了弛秋。
6器躏、Code Signing Error(如下所示)
Code Signing Error: XXXX has conflicting provisioning settings. XXXX is automatically signed, but provisioning profile YYYY has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor, or switch to manual signing in the project editor.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 12.0'
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 12.0'
其中XXXX是項(xiàng)目名稱,YYYY是一串字符
這是Xcode10更新之后出的錯(cuò)
解決方案:
打開 項(xiàng)目名.xcodeproj文件(右鍵蟹略,顯示包內(nèi)容)登失,找到project.pbxproj文件,打開這個(gè)文件(右鍵-打開方式-文本編輯)挖炬,搜索(Command+f)YYYY(錯(cuò)誤原因里面顯示的一串字符)揽浙,刪掉YYYY(注意:這個(gè)數(shù)字在引號(hào)之間,只需要?jiǎng)h除YYYY就行了,不要?jiǎng)h除引號(hào))馅巷,然后重新選下證書就OK了膛虫。