xcode7.3。
證書 ,provisions file 都正確,網(wǎng)上找了各種方法,無(wú)法解決。
build ?,clean ,重啟, 刪除derived data ,都不行,顯示參考了stack overflow一篇文章,大概看了,
各種錯(cuò)誤都有,大概有4種。
1. provisions file 與 capability不匹配
2 provision file 不匹配?
3. debug release選錯(cuò)
4. 設(shè)備uuid未加入provisions file?
解決不了,該如何????
網(wǎng)上說(shuō)的原因應(yīng)該都能出這個(gè)問(wèn)題,折騰一晚上沒(méi)搞定,最后發(fā)現(xiàn)我的問(wèn)題是
info.plist -->Bundle identifier 中的名字 與 ?target-->build settings -->packaging-->Product bundle identifier 中的
名字不匹配。
把這2處地方改為一直就解決了這個(gè)問(wèn)題。
參考:
1.? http://stackoverflow.com/questions/5240801/the-entitlements-specified-profile-0xe8008016-error-ios-4-2?page=2&tab=votes#tab-top
2. http://stackoverflow.com/questions/19581225/the-executable-gets-signed-with-invalid-entitlements-in-xcode
3. http://www.karlmonaghan.com/2011/07/08/the-executable-was-signed-with-invalid-entitlements-0xe8008016/
4. https://developer.apple.com/library/ios/technotes/tn2415/_index.html