Ios build and Upload failed - Can You help, Why?

What platform are you building for?

iOS

What framework are you building with?

Cordova

What is your build ID?

8206e01b-4a3d-4736-9541-146751382afe

What is your error message?

ServerError: Cordova build for iOS failed
No scripts found for hook “before_build”.
No scripts found for hook “before_prepare”.
Checking for saved platforms that haven’t been added to the project
Loaded API for ios project /Users/vagrant/voltbuilder/agent/upload/8206e01b-4a3d-4736-9541-146751382afe/platforms/ios/cordova/Api.js
Checking for saved plugins that haven’t been added to the project
Generating platform-specific config.xml from defaults for iOS at /Users/vagrant/voltbuilder/agent/upload/8206e01b-4a3d-4736-9541-146751382afe/platforms/ios/App/config.xml
Merging project’s config.xml into platform-specific iOS config.xml
Merging and updating files from [www, platforms/ios/platform_www] to platforms/ios/www
Set PRODUCT_BUNDLE_IDENTIFIER to ch.basel.archaeotour.
Set PRODUCT_NAME to Archaeo Tour.
Set MARKETING_VERSION to 2.01.
Set CURRENT_PROJECT_VERSION to 2.
Updating icons at platforms/ios/App/Assets.xcassets/AppIcon.appiconset
Updating App Icon image set contents.json
Updating launch storyboard images at platforms/ios/App/Assets.xcassets/LaunchStoryboard.imageset
Updating Storyboard image set contents.json
Updating Background Color color set Contents.json
Updating Splash Screen Background Color color set Contents.json
Updating Status Bar Background Color color set Contents.json
This app does not have additional resource files defined
Prepared iOS project successfully
No scripts found for hook “after_prepare”.
No scripts found for hook “before_compile”.
Reading build config file: /Users/vagrant/voltbuilder/agent/upload/8206e01b-4a3d-4736-9541-146751382afe/build.json
ProvisioningProfile build option set, changing project settings to Manual.
Set CODE_SIGN_STYLE Build Property to Manual.
Set ProvisioningStyle Target Attribute to Manual.
Building project: /Users/vagrant/voltbuilder/agent/upload/8206e01b-4a3d-4736-9541-146751382afe/platforms/ios/App.xcworkspace
Configuration: Release
Platform: device
Target: iOS Device
Adding xcodebuildArg: ALWAYS_EMBED_SWIFT_STAND

** EXPORT FAILED **

Command failed with exit code 70: xcodebuild -exportArchive -archivePath App.xcarchive -exportOptionsPlist /Users/vagrant/voltbuilder/agent/upload/8206e01b-4a3d-4736-9541-146751382afe/platforms/ios/exportOptions.plist -exportPath /Users/vagrant/voltbuilder/agent/upload/8206e01b-4a3d-4736-9541-146751382afe/platforms/ios/build/Release-iphoneos ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"
Error: Command failed with exit code 70: xcodebuild -exportArchive -archivePath App.xcarchive -exportOptionsPlist /Users/vagrant/voltbuilder/agent/upload/8206e01b-4a3d-4736-9541-146751382afe/platforms/ios/exportOptions.plist -exportPath /Users/vagrant/voltbuilder/agent/upload/8206e01b-4a3d-4736-9541-146751382afe/platforms/ios/build/Release-iphoneos ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"
    at makeError (/Users/vagrant/voltbuilder/agent/upload/8206e01b-4a3d-4736-9541-146751382afe/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Users/vagrant/voltbuilder/agent/upload/8206e01b-4a3d-4736-9541-146751382afe/node_modules/execa/index.js:118:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
 

Please describe the issue:

Hey Support team,
My iOS build and upload didn’t work. Unfortunately, I don’t understand the error message. The build worked before without uploading. It’s probably due to the Apple Store.
Can you quickly tell me what I did wrong?
Thanks and best regards,
Frank

Reviewing your build log, I see a few possible issues:

  1. You are trying to build a release app but you are using a development provisioning profile based on this error in your log: error: exportArchive Provisioning profile "XXXXXX" is not an "iOS App Store" profile.
  2. It appears that you may have a plugin that’s not been updated for cordova-ios engine 8 - or you have that plugin version locked and haven’t allowed the updates to occur. I would either use engine 7.1.1 or check your plugins for updates.

Thanks for the feedback.
If 2. were the problem, building an iOS app without exporting to Apple wouldn’t work, right? If I change “iosPackageType”: “app-store” to ‘iosPackageType’: “ad-hoc,” I can download an ipa file… If a plugin were the problem, that wouldn’t be the case, right?

Regarding 1: What is the difference between a development provisioning profile and a release app? The voltbuilder.json file contains “release”: “release”, ‘iosPackageType’: “app-store”,… That should be correct, right? I am using an old app from 2019 on appstoreconnect. Is that the error and do I have to recreate the app with Apple?

Thanks in advance.
Best regards, Frank

Since you are able to perform an ad-hoc build, it definitely seems that your provisioning profile from Apple is meant for development and not distribution. You can check at Apple’s developer portal.

Here are some brief instructions taken from our VoltSigner product:

Go into Profiles . Register a New Provisioning Profile for either Development or Distribution and fill in the rest of the fields. For Provisioning Profile Name , enter development or distribution . Generate and Download .

Let me know if this resolves the issue.

Hello,
after trying out your tip with the certificates and creating a new app, the app is being uploaded to Apple…

However, I am now getting an error :

UserError: [ContentDelivery.Uploader.600002D04180] Validation failed (409) Invalid bundle.
The “UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown” orientations were provided for the UISupportedInterfaceOrientations Info.plist key in the ch.basel.archaeotour bundle, but you need to include all of the “UIInterfaceOrientationPortrait, UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight" orientations to support iPad multitasking.
For details, visit: UISupportedInterfaceOrientations | Apple Developer Documentation .
(ID: f1d23649-90d4-4aac-9da8-fc290c129c79)
See log for more details.

Build ID: c36c1850-09cf-4778-8c9d-0ee22e19f36f

The entry in config.xml



UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown


has no effect after installation.

Does anyone have any tips? The app must always remain in portrait mode…

Thanks and greetings,
Frank

<plugin name="cordova-plugin-screen-orientation" />
    
   
    
    <platform name="ios">
    <edit-config target="*-Info.plist" parent="UISupportedInterfaceOrientations">
        <array>
            <string>UIInterfaceOrientationPortrait</string>
            <string>UIInterfaceOrientationPortraitUpsideDown</string>
        </array>
    </edit-config>
    </platform>

This is the entry in config.xml

Here’s a post that might help: https://stackoverflow.com/a/32560406

Thanks, but that post is 10 years old… Unfortunately, it doesn’t work.

This is getting into some very specific iOS issues, but here’s Apple’s article on the subject: UIRequiresFullScreen | Apple Developer Documentation

You can see it’s deprecated and requires special usage to work: UIRequiresFullScreenIgnoredStartingWithVersion