App Installation Failed: App has disallowed Info.plist key

≡放荡痞女 提交于 2019-12-10 21:09:16

问题


Just recently I've run into errors while trying to install my app to my iOS 9 device, only difference that I can tell between now and then being I've updated my device to iOS 9 from iOS 8.4.1.

I'm installing using Xcode 7, beta 6, and the error I get says "App installation failed: Unknown error."

The, I suspect, more helpful error message I get is from the device logs during the install, the error message that seems to pertain to this is:

Sep 14 13:10:47 Bill-Luhmanns-iPhone installd[50] <Error>: 0x16e1bb000 -[MIExecutableBundle hasOnlyAllowedWatchKitAppInfoPlistKeysWithError:]: 1033: WatchKit app has disallowed Info.plist key: CFAppVersion

Then there are a handful of other logs that give the same message from different areas.

Any ideas how I can get the target to allow that key in the plist file? I've checks that the file is in the right place, that the key exists, etc. etc. As a last ditch effort, I've deleted my derived data and restarted both mac and device, all to no avail. Cleaning the project also didn't help.

Any suggestions or ways to fix this that anyone is familiar with? I'd really appreciate it, thanks!


回答1:


It's saying the info.plist associated with your watch kit app has an invalid key - CFAppVersion. I think you'll discover that deleting that key from your watch kit app's info.plist will fix your build issue.




回答2:


In my case I was using healthKit and added Privacy keys in watch target's info.plist.

Removing those keys and adding in app target's Info.plist resolved the error.



来源:https://stackoverflow.com/questions/32571265/app-installation-failed-app-has-disallowed-info-plist-key

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!