Device compabilities issue in iOS

主宰稳场 提交于 2019-12-10 10:53:47

问题


We uploaded an app where in the first version we added to device capabilities “telephony” to restrict only iPhone devices in the info plist. In the second version we forgot to add “telephony” and we submitted to the App store. Third version we are planning to upload with device capabilities as “telephony” but while submitting to the App Store it shows the warning:

This bundle is invalid. The key UIRequiredDeviceCapabilities in the Info.plist may not contain values that would prevent this application from running on devices that were supported by previous versions.

How can we resolve this issue, if we require the device capability “telephony” for application lifetime, but due to my mistake on the second version we forgot to add the required device capabilities? What is the solution for it?

Thanks in advance.


回答1:


I have the same warning when added to device capabilities “healthkit” t in the info plist.

This bundle is invalid - The key UIRequiredDeviceCapabilities in the Info.plist may not contain values that would prevent this application from running on devices that were supported by previous versions.

delete Info.plist -> Required device capabilities -> Item -> healthkit,upload again to submit review success.




回答2:


Unfortunately it doesn't seem possible to fix this error. According to Apple's Technical Q&A:

Depending on how you narrow the devices your app supports, you will get one of two error messages from Xcode when uploading your update to the App Store.

"This bundle is invalid. The key UIRequiredDeviceCapabilities in the Info.plist may not contain values that would prevent this application from running on devices that were supported by previous versions."

When you see this error message, you have added a new constraint, under the UIRequiredDeviceCapabilities key in your app's info.plist file.

Important: Because you can't add UIRequiredDeviceCapabilities restrictions after an app is in the store, be sure to plan ahead by choosing requirements you will be comfortable supporting indefinitely going forward.



来源:https://stackoverflow.com/questions/34916306/device-compabilities-issue-in-ios

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