1.Xcode 8 provisioning profile 無法下載
此時(shí)云石,我們需要清除Mac中的provisioning profile蒿赢,方法是前往到目錄 ~/資源庫/MobileDevice/Provisioning Profiles
然后刪除里面的所有profile杠茬,然后再到xcode-preferences-account-detail里下載相關(guān)provisioning file
2.Xcode 8 shows error that provisioning profile doesn't include signing certificate
這個(gè)bug贵扰,我找了非常的久菊霜,刪除自己的證書再添加也沒用氓侧,刪除provision也沒用脊另,就差重新create
證書了,但那樣的話约巷,代價(jià)太大了偎痛。糾結(jié)很久后,在stackoverflow中找到了答案独郎,解決的方法也很簡(jiǎn)單踩麦,如下圖
只需要給automatically signing 打上勾,就ok了氓癌,一鍵解決谓谦。Xcode 8中,Apple對(duì)整個(gè)證書簽名管理進(jìn)行了重構(gòu)贪婉,現(xiàn)在不需要到build
setting里選擇反粥,在general里就能直接選擇漓藕,很棒澡腾,疑難雜癥就用automatically signing禾怠,更棒溉知!之前證書老是出這個(gè)那個(gè)問題,開發(fā)者煩不甚煩娜膘,看來Apple終于開始重視我們的聲音了逊脯。
-----20161012更新
好吧,xcode又發(fā)瘋了竣贪,證書正確军洼,provision正確但就是編譯不過,提示如下
CodeSign
/Users/floydresler/Library/Developer/Xcode/DerivedData/App_for_Dark_Tower-egxiflrzexibnghkjwvtznkhigek/Build/Products/Debug-iphoneos/App
for\ Dark\ Tower.app
cd "/Users/floydresler/Source Code/App for Dark Tower"
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
export
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
Signing Identity:
"iPhone Developer: Floyd Resler
(6UFPUB2SE5)"
Provisioning Profile: "Dark Tower Dev"
(31912d69-5ec4-4740-a696-81ea06d3f3fb)
/usr/bin/codesign --force --sign
4EA262133AD193D1EB339D5E39FC055053663735 --entitlements
/Users/floydresler/Library/Developer/Xcode/DerivedData/App_for_Dark_Tower-egxiflrzexibnghkjwvtznkhigek/Build/Intermediates/App
for\ Dark\ Tower.build/Debug-iphoneos/App\ for\ Dark\ Tower.build/App\ for
Dark\ Tower.app.xcent
--timestamp=none
/Users/floydresler/Library/Developer/Xcode/DerivedData/App_for_Dark_Tower-egxiflrzexibnghkjwvtznkhigek/Build/Products/Debug-iphoneos/App
for\ Dark\ Tower.app
/Users/floydresler/Library/Developer/Xcode/DerivedData/App_for_Dark_Tower-egxiflrzexibnghkjwvtznkhigek/Build/Products/Debug-iphoneos/App
for Dark Tower.app: resource fork, Finder information, or similar detritus not
allowed
Command /usr/bin/codesign failed with exit code 1
之前刪除資源庫里developer-xcode-derivedData 中的文件可以解決演怎,但現(xiàn)在不行了匕争!OMG,最后爷耀,我找到了解決辦法甘桑,如下
解決方法:終端CD到工程的根目錄下,就是如下圖歹叮,xcodeproj文件所在的PT36C文件夾
再然后依次執(zhí)行如下三行命令
find . -type f -name '.jpeg' -execxattr -c {} ;
find . -type f -name '.png' -execxattr -c {} ;
find . -type f -name '*.tif' -execxattr -c {} ;
perfect跑杭,打完收工!
看來往后和xcode的斗爭(zhēng)還會(huì)繼續(xù)很長(zhǎng)時(shí)間咆耿,我的一生是抗?fàn)幍囊簧?/p>
尾聲:
關(guān)于xcode 8里code signing的變化德谅,我推薦一篇文章:
http://www.oschina.net/translate/code-signing-xcode-8?cmp
寫的很好,很詳細(xì)萨螺,希望對(duì)各位被xcode 8簽名證書折磨的小伙伴們有幫助窄做。