Common Build and Application Upload Errors
Here is a list of common errors you may face when building or uploading an application to App Store Connect:
minSdkVersion 14 cannot be smaller than version 16 declared in library ["library name"]
Sometimes you may use a Cordova plugin which requires a different API level configuration from your project's default settings. For example, in this case, your default setting for minimum API level is 14 (
minSdkVersion=14). However, one of your plugins requires an API level of at least 16. In other words, the
minSdkVersionvalue is lower than the one required by the plugin.
In order to solve this error, you can just correct the value of
config.xmlfile as follows:
<preference name="android-minSdkVersion" value="16" />
Provisioning profile "For Debug Build" doesn't include the aps-environment entitlement.
When you are using
NIFCloudMBplugins for Cordova 6.5 or later in your project, this error will occur if your current provisioning profile doesn't have the right configuration for push notification in iOS.
To fix this error, use the right configuration for push notification as follows:
- use an app ID for push notification
- get a push notification certificate
- get a push notification provisioning profile
Provisioning profile "profile_xxx" has app ID "com.example.xxx", which does not match the bundle ID "com.example.zzz".
The app ID set for the target project does not match the bundle ID. Please make sure that your app ID setting matches the one in your provisioning profile.
Code Sign error: No matching provisioning profiles found
This might be caused by a mismatch/inconsistency in the iOS Build configuration. Please make sure to use the correct app ID with a corresponding certificate and provisioning profile.
Error code 65 for command: xcodebuild
This might be caused by a mismatch/inconsistency in the iOS build configuration. For example: the app ID in the provisioning profile not matching with the bundle identifier. Make sure to use the correct app ID with a corresponding certificate and provisioning profile.
CordovaError: Error validating project name. Project name must not begin with a number
A number is set at the beginning of the application name. Check the application name on the app settings screen.
AAPT: libpng error: Not a PNG file
This is an error related to the splash screen image files:
- You might be using a different file format rather than PNG. Currently, onlyPNG files are supported as splash screen images in Monaca.
- Splash image files might be corrupted.
- If you are using 9-patch format images, please make sure the formatis correct.
java.lang.OutOfMemoryError (no error message)
Process 'command '/data/android-sdk/build-tools/23.0.3/aapt'' finished with non-zero exit value 1
This might be caused by an invalid file name in the project files. Please make sure that any double-byte characters or special characters are not used in the file names of the project.
Failed to read key keyname from store "/tmp/monaca/xxxxxxxxxxx/output/etc/keystore.private": Cannot recover key
Failed to read the key name of a KeyStore file. Please make sure to:
- use the correct KeyStore in the Android build settings.
- enter the right password for the corresponded KeyStore before startingthe build.
Build Error: Error: App File not found. null
This might occur when the
Crosswalk WebView Engineplugin v2.2.0 or higher is enabled in a Cordova 6.2 project. If you are using the
Crosswalk WebView Engineplugin in a Cordova 6.2 project, please use
For Cordova 6.2 projects, the following configurations for the
Crosswalk WebView Engineplugin are confirmed to build successfully:
- 1.Plug-in version:
1.7.2with Crosswalk version:
- 2.Plug-in version:
2.1.0with Crosswalk version:
Unable to validate your application. Your Apple ID or password was entered incorrectly.
Passwordused when uploading the app to App Store Connect has not been entered correctly. Please make sure to use the right
Apple IDand corresponded
Unable to validate your application. Please sign in with an app-specific password. You can create one at appleid.apple.com.
Apple IDused when uploading the app to App Store Connect is using 2-factor authentication, please try using the app-specific password. For more information, please refer to App-specific Password.
No suitable application records were found. Verify your bundle identifier 'com.example.xxx' is correct.
Please make sure '
com.example.xxx' is registered in App Store Connect.
There already exists a binary upload with build version '1.0.0' for train '1.0.0'
There is an application with the same build version in App Store Connect. Please build the app again with a different version number.
The value for key CFBundleShortVersionString [0.0.1] in the Info.plist file must contain a higher version than that of the previously approved version [1.0.0]
The version number in the current app build is lower than the last certified app build. Please build the app again with a higher version number.
This bundle does not support one or more of the devices supported by the previous app. This bundle does not support one or more of the devices supported by the previous app version. Your app update must continue to support all devices previously supported. You declare supported devices in Xcode with the Targeted Device Family build setting.
When updating an application, it is not possible to reduce the number of supporting devices. Please check the settings of the target device in the iOS application settings.
Invalid App Store Icon. The App Store Icon in the asset catalog in 'xxx.app' can't be transparent nor contain an alpha channel.
There is a possibility that the App Store icon is transparent or contains an alpha channel. Please check the App Store icon.
SDK Version Issue. This app was built with the iOS 10.3 SDK. All iOS apps submitted to the App Store must be built with the iOS 11 SDK or later, included in Xcode 9 or later. Further, starting March 2019, all iOS apps submitted to the App Store must be built with the iOS 12.1 SDK or later, included in Xcode 10.1 or later.
The target project is not built with Xcode 9 or later. If the target project is using a lower version than Cordova 7.1, you need to upgrade to Cordova 7.1. From March 2019, you need to build with Xcode 10.1. To set the target project to Xcode 10.1, see Build Environment Settings.