ERROR ITMS-90164: "Invalid Code Signing Entitlements. The entitlements in your app bundle signature

来源:互联网 发布:ping 用的是哪个端口 编辑:程序博客网 时间:2024/05/05 23:19

http://www.ifzero.net/2016/03/error-itms-90164-bundle-contains-key.html
1、ERROR ITMS-90164 … the bundle contains a key value that is not allowed: ‘true’ for the key ‘get-task-allow’

You’re trying to upload your iOS app to the App Store and you keep getting this mysterious error:

ERROR ITMS-90164: "Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning profile. According to the provisioning profile, the bundle contains a key value that is not allowed: 'true' for the key 'get-task-allow' in ...

Maybe you’ve successfully uploaded the same app before. Maybe git proves that nothing has changed with your entitlements, code signing, or the provisioning profile you’re using. You’re probably frustrated.

Somehow the Code Signing Identity for Release had switched to development. You can find this in the Build Settings for each target. In the project file. Make the settings look like the above screenshot and you should be set.(那个图我看不到),后来用了下面的“2”的解决方法。

2、I keep getting this message: ‘Invalid Profile: distribution build entitlements must have get-task-allow set to false.’

方法:Heh, i suddenly found that Code Signing Identity for Release build was changed to iOS Developer. You should change it to iOS Distribution. If it doesn’t fix your problem, set Provisioning profile for Release build.

Update: Sometimes XCode doesn’t apply this changes and restarting of XCode could help. Anyway before uploading to Testflight I strongly recommend you to check build logs. You should find this line “Using code signing identity” and see if XCode use the right Code Identity (distribution) to sign. It could save you a lot of time.

3.其他方法,别人成功的
(1)In my case (sorry) I switched “Team” to “None” in -> General -> Identity
(2)Turns out the Code-Signing Identity in my build configuration didn’t match the one I selected when I saved the archive for Ad-Hoc distribution.

0 0