iOS Question UIRequiredDeviceCapabilities key in the Info.plist ?

Nicolás Cieri

Active Member
Licensed User
An error has been reported by Apple in my post made with the latest version of B4i (6.8).

When I test my application on an iPad (Debug and Release), it works perfectly, the only difference was to release with the latest version of B4i.

This is the error...

We were unable to install the app on iPad. The UIRequiredDeviceCapabilities key in the Info.plist is set in such a way that the app will not install on iPad.

Next Steps

To resolve this issue, please check the UIRequiredDeviceCapabilities key to verify that it contains only the attributes required for your app features or the attributes that must not be present on the device. Attributes specified by a dictionary should be set to true if they are required and false if they must not be present on the device.


'Orientation possible values: Portrait, LandscapeLeft, LandscapeRight and PortraitUpsideDown
#iPhoneOrientations: Portrait, LandscapeLeft, LandscapeRight
#iPadOrientations: Portrait, LandscapeLeft, LandscapeRight, PortraitUpsideDown
#Target: iPhone, iPad
#ATSEnabled: True
#MinVersion: 8


Thanks.

 

Nicolás Cieri

Active Member
Licensed User
Yes Erel, I'm sure.

In fact, it is exactly the same project that I uploaded to the Apple Store earlier with the older B4i version without any problem.
 
Upvote 0

Nicolás Cieri

Active Member
Licensed User
B4X:
<?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>CFBundleIdentifier</key>
    <string>xxx</string>
    <key>CFBundleDevelopmentRegion</key>
    <string>en</string>
    <key>CFBundleExecutable</key>
    <string>${EXECUTABLE_NAME}</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>Mehdea</string>
    <key>CFBundleDisplayName</key>
    <string>xxx</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>UIRequiresFullScreen</key>
    <true/>
    
    <key>CFBundleIconName</key>
    <string>AppIcon</string>
    <key>CFBundleIcons</key>
    <dict/>
    <key>CFBundleIcons~ipad</key>
    <dict/>
    <key>CFBundleVersion</key>
    <string>1.0.4</string>
    <key>CFBundleShortVersionString</key>
    <string>1.0.4</string>
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>UILaunchStoryboardName</key>
    <string>LaunchScreen</string>
    <key>UIRequiredDeviceCapabilities</key>
    <array>
        <string>armv7</string>
        
    </array>
    <key>UISupportedInterfaceOrientations</key>
        <array>
        <string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>

        </array>
    <key>UISupportedInterfaceOrientations~ipad</key>
        <array>
            <string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>

        </array>
    
    
    <key>CFBundleURLTypes</key><array><dict><key>CFBundleURLSchemes</key><array><string>xxx</string></array></dict>
</array>
    <key>UIAppFonts</key><array><string>avenirltstd-light.otf</string><string>Avenir-Roman.otf</string><string>Rounded_Elegance_Logo.ttf</string><string>B4X_FontAwesome.otf</string><string>B4X_MaterialIcons.ttf</string></array>
    
<key>NSPhotoLibraryUsageDescription</key><string>Select a photo.</string>
<key>NSCameraUsageDescription</key><string>Taking a photo.</string>
<key>NSMicrophoneUsageDescription</key><string>Record video.</string>
<key>NSPhotoLibraryAddUsageDescription</key><string>Save photo in albums.</string>
<key>UIBackgroundModes</key><array><string>remote-notification</string></array>
<key>UIViewControllerBasedStatusBarAppearance</key><false/>
</dict>
</plist>
 
Upvote 0

Nicolás Cieri

Active Member
Licensed User
B4X:
    #ApplicationLabel: xxxxx
    #Version: xxxxxxx
    'Orientation possible values: Portrait, LandscapeLeft, LandscapeRight and PortraitUpsideDown
    #iPhoneOrientations: Portrait, LandscapeLeft, LandscapeRight
    #iPadOrientations: Portrait, LandscapeLeft, LandscapeRight, PortraitUpsideDown
    #Target: iPhone, iPad
    #ATSEnabled: True
    #MinVersion: 8
    #Entitlement: <key>aps-environment</key><string>production</string>
    #CertificateFile: ios_distribution.cer
    #If RELEASE
       #CertificateFile: ios_distribution.cer
       #ProvisionFile: store.mobileprovision
    #END IF
    #PlistExtra:<key>NSPhotoLibraryUsageDescription</key><string>Select a photo.</string>
    #PlistExtra:<key>NSCameraUsageDescription</key><string>Taking a photo.</string>
    #PlistExtra:<key>NSMicrophoneUsageDescription</key><string>Record video.</string>                           
    #PlistExtra:<key>NSPhotoLibraryAddUsageDescription</key><string>Save photo in albums.</string>
    #PlistExtra: <key>UIBackgroundModes</key><array><string>remote-notification</string></array>
    #PlistExtra: <key>UIViewControllerBasedStatusBarAppearance</key><false/>
    
    #AppFont: ave.otf
    #AppFont: Av.otf
    #AppFont: Ro.ttf

That's all
 
Upvote 0
Top