1.Xcode 8 provisioning profile 无法下载
此时,我们需要清除Mac中的provisioning profile,方法是前往到目录 ~/资源库/MobileDevice/Provisioning Profiles 然后删除里面的所有profile,然后再到xcode-preferences-account-detail里下载相关provisioning file
2.Xcode 8 shows error that provisioning profile doesn't include signing certificate
这个bug,我找了非常的久,删除自己的证书再添加也没用,删除provision也没用,就差重新create 证书了,但那样的话,代价太大了。纠结很久后,在stackoverflow中找到了答案,解决的方法也很简单,如下图
只需要给automatically signing 打上勾,就ok了,一键解决。Xcode 8中,Apple对整个证书签名管理进行了重构,现在不需要到build setting里选择,在general里就能直接选择,很棒,疑难杂症就用automatically signing,更棒!之前证书老是出这个那个问题,开发者烦不甚烦,看来Apple终于开始重视我们的声音了。
方法来源:http://stackoverflow.com/questions/39568005/xcode-8-shows-error-that-provisioning-profile-doesnt-include-signing-certificat
-----20161012更新
好吧,xcode又发疯了,证书正确,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 中的文件可以解决,但现在不行了!OMG,最后,我找到了解决办法,如下
解决方法:终端CD到工程的根目录下,就是如下图,xcodeproj文件所在的PT36C文件夹
再然后依次执行如下三行命令
find . -type f -name '.jpeg' -execxattr -c {} ; find . -type f -name '.png' -execxattr -c {} ; find . -type f -name '*.tif' -execxattr -c {} ;
perfect,打完收工!
看来往后和xcode的斗争还会继续很长时间,我的一生是抗争的一生!
尾声: 关于xcode 8里code signing的变化,我推荐一篇文章: http://www.oschina.net/translate/code-signing-xcode-8?cmp 写的很好,很详细,希望对各位被xcode 8签名证书折磨的小伙伴们有帮助。