[英]Unable to install the app on iPhone and iPad
我向App Store提交了該應用程序,但由於他們無法在iPhone和iPad上安裝該應用程序而被兩次拒絕。 他們說,Info.plist中的UIRequiredDeviceCapabilities鍵設置為不會在iPhone和iPad上安裝該應用程序。
他們寫道,下一步是:
要解決此問題,請檢查UIRequiredDeviceCapabilities密鑰以驗證其僅包含應用程序功能所需的屬性或設備上不得存在的屬性。 如果需要,由字典指定的屬性應設置為true,如果設備上不存在這些屬性,則應設置為false。
第一次提交后,我完全刪除了UIRequiredDeviceCapabilities鍵,但是他們仍然無法安裝它。
我沒有iPhone或iPad,我在模擬器上測試了應用,並且正常運行。
這是我的info.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>3</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiresFullScreen</key>
<false/>
<key>UIStatusBarHidden</key>
<false/>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleDefault</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
有誰知道如何修改它以便可以在iPhone和iPad上安裝?
根據文檔 , UIRequiredDeviceCapabilities
必須存在於Info.plist中。
在App Store上的所有應用程序中,這是我擁有的:
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
所以我建議您嘗試一下。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.