What platform are you building for?
iOS
What framework are you building with?
Cordova
What is your build ID?
bc64d99c-74d4-41d7-8e91-3897e28a7f1b
What is your error message?
ServerError: Cordova build for iOS failed
Please describe the issue:
The start of it:
ServerError: Cordova build for iOS failed
Pbx project written with localization groups
Reading build config file: /Users/vagrant/voltbuilder/agent/upload/cb33a66b-640f-445e-8148-7de9d090a345/build.json
Reading build config file: /Users/vagrant/voltbuilder/agent/upload/cb33a66b-640f-445e-8148-7de9d090a345/build.json
Building project: /Users/vagrant/voltbuilder/agent/upload/cb33a66b-640f-445e-8148-7de9d090a345/platforms/ios/App.xcworkspace
Building project: /Users/vagrant/voltbuilder/agent/upload/cb33a66b-640f-445e-8148-7de9d090a345/platforms/ios/App.xcworkspace
Configuration: Debug
Configuration: Debug
Platform: device
Platform: device
Target: iOS Device
Target: iOS Device
Ending:
The following build commands failed:
CompileC /Users/vagrant/Library/Developer/Xcode/DerivedData/App-dijcduavbhkmxdafhrymesaguilr/Build/Intermediates.noindex/ArchiveIntermediates/App/IntermediateBuildFilesPath/App.build/Debug-iphoneos/App.build/Objects-normal/arm64/SDNetworkActivityIndicator.o /Users/vagrant/voltbuilder/agent/upload/a072f13b-0a31-4bce-88c3-2ac9b6b054ba/platforms/ios/App/Plugins/cordova-plugin-advanced-http/SDNetworkActivityIndicator.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target ‘App’ from project ‘App’)
Archiving workspace App with scheme App
(2 failures)
Command failed with exit code 65: xcodebuild -workspace App.xcworkspace -scheme App -configuration Debug -destination generic/platform=iOS -archivePath App.xcarchive archive ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO LD_RUNPATH_SEARCH_PATHS = “@executable_path/Frameworks”
I tried removing deployment-target as it was set to 13, but no difference.
Can you share your config.xml?
<?xml version="1.0" encoding="UTF-8"?>
<widget
xmlns="http://www.w3.org/ns/widgets"
xmlns:android="http://schemas.android.com/apk/res/android"
id="xxxxxxxxxxxxxxxx"
defaultlocale="en"
version="1.23"
android-versionCode="123"
ios-CFBundleVersion="123"
>
<!-- App information -->
<name>xxxxxxxxxx</name>
<description>xxxxxxxxxxxx</description>
<author email="support@abiro.com" href="https://abiro.com">Abiro</author>
<!-- General -->
<access origin="*"/>
<allow-navigation href="*"/>
<content src="index.html"/>
<preference name="permissions" value="none"/>
<preference name="orientation" value="portrait"/>
<preference name="fullscreen" value="false"/>
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<preference name="StatusBarOverlaysWebView" value="false"/>
<preference name="StatusBarStyle" value="default"/>
<icon src="res/icon.png"/>
<splash src="res/splash.png"/>
<!-- iOS -->
<platform name="ios">
<edit-config file="*-Info.plist" target="NSCameraUsageDescription" mode="merge">
<string>The app needs permission to use the camera to scan barcodes as links</string>
</edit-config>
<edit-config file="*-Info.plist" target="NFCReaderUsageDescription" mode="merge">
<string>The app needs permission to read NFC tags as links</string>
</edit-config>
<edit-config file="*-Info.plist" target="NSMicrophoneUsageDescription" mode="merge">
<string>The app needs permission to use the microphone for dictation of links</string>
</edit-config>
<edit-config file="*-Info.plist" target="NSSpeechRecognitionUsageDescription" mode="merge">
<string>The app needs permission to use speech recognition for dictation of links</string>
</edit-config>
<!-- <preference name="deployment-target" value="13.0"/> -->
<preference name="target-device" value="universal"/>
<preference name="prerendered-icon" value="false"/>
<preference name="EnableViewportScale" value="false"/>
<preference name="detect-data-types" value="true"/>
<preference name="exit-on-suspend" value="false"/>
<preference name="AllowInlineMediaPlayback" value="true"/>
<preference name="DisallowOverscroll" value="true"/>
<preference name="WKWebViewOnly" value="true" />
<feature name="CDVWKWebViewEngine">
<param name="ios-package" value="CDVWKWebViewEngine" />
</feature>
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
<icon src="res/icon/ios/icon-1024.png" width="1024" height="1024"/>
<icon src="res/icon/ios/icon-small.png" width="29" height="29"/>
<icon src="res/icon/ios/icon-small@2x.png" width="58" height="58"/>
<icon src="res/icon/ios/icon-small@3x.png" width="87" height="87"/>
<icon src="res/icon/ios/icon-40.png" width="40" height="40"/>
<icon src="res/icon/ios/icon-40@2x.png" width="80" height="80"/>
<icon src="res/icon/ios/icon-50.png" width="50" height="50"/>
<icon src="res/icon/ios/icon-50@2x.png" width="100" height="100"/>
<icon src="res/icon/ios/icon.png" width="57" height="57"/>
<icon src="res/icon/ios/icon@2x.png" width="114" height="114"/>
<icon src="res/icon/ios/icon-60.png" width="60" height="60"/>
<icon src="res/icon/ios/icon-60@2x.png" width="120" height="120"/>
<icon src="res/icon/ios/icon-60@3x.png" width="180" height="180"/>
<icon src="res/icon/ios/icon-72.png" width="72" height="72"/>
<icon src="res/icon/ios/icon-72@2x.png" width="144" height="144"/>
<icon src="res/icon/ios/icon-76.png" width="76" height="76"/>
<icon src="res/icon/ios/icon-76@2x.png" width="152" height="152"/>
<icon src="res/icon/ios/icon-167.png" width="167" height="167"/>
<icon src="res/icon/ios/icon-83.5@2x.png" width="167" height="167"/>
<splash src="res/screen/ios/Default@2x~iphone~anyany.png"/>
<splash src="res/screen/ios/Default@2x~iphone~comany.png"/>
<splash src="res/screen/ios/Default@3x~iphone~anyany.png"/>
<splash src="res/screen/ios/Default@3x~iphone~comany.png"/>
<splash src="res/screen/ios/Default@2x~ipad~anyany.png"/>
<splash src="res/screen/ios/Default@2x~ipad~comany.png"/>
</platform>
<!-- Android -->
<platform name="android">
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application/activity">
<application android:exported="true" />
</edit-config>
<edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/uses-permission" xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
</edit-config>
<preference name="android-minSdkVersion" value="24"/>
<preference name="android-targetSdkVersion" value="36"/>
<preference name="android-compileSdkVersion" value="36" />
<preference name="android-installLocation" value="auto"/>
<preference name="SplashMaintainAspectRatio" value="true"/>
<preference name="SplashShowOnlyFirstTime" value="false"/>
<preference name="AndroidXEnabled" value="true"/>
<preference name="AndroidWindowSplashScreenAnimatedIcon" value="res/screen/android/splash-square.png" />
<preference name="AndroidWindowSplashScreenBackground" value="#ffffff" />
<icon density="ldpi" src="res/icon/android/ldpi.png"/>
<icon density="mdpi" src="res/icon/android/mdpi.png"/>
<icon density="hdpi" src="res/icon/android/hdpi.png"/>
<icon density="xhdpi" src="res/icon/android/xhdpi.png"/>
<icon density="xxhdpi" src="res/icon/android/xxhdpi.png"/>
<icon density="xxxhdpi" src="res/icon/android/xxxhdpi.png"/>
<splash density="port-ldpi" src="res/screen/android/splash-port-ldpi.png"/>
<splash density="port-mdpi" src="res/screen/android/splash-port-mdpi.png"/>
<splash density="port-hdpi" src="res/screen/android/splash-port-hdpi.png"/>
<splash density="port-xhdpi" src="res/screen/android/splash-port-xhdpi.png"/>
<splash density="port-xxhdpi" src="res/screen/android/splash-port-xxhdpi.png"/>
<splash density="port-xxxhdpi" src="res/screen/android/splash-port-xxxhdpi.png"/>
</platform>
<!-- Plugins -->
<plugin name="cordova-plugin-device"/>
<plugin name="cordova-plugin-statusbar"/>
<plugin name="cordova-plugin-dialogs"/>
<plugin name="cordova-plugin-globalization"/>
<plugin name="cordova-plugin-localization-strings"/>
<plugin name="cordova-plugin-inappbrowser"/>
<plugin name="cordova-plugin-x-toast"/>
<plugin name="cordova-plugin-media"/>
<plugin name="cordova-plugin-file"/>
<plugin name="cordova-plugin-advanced-http"/>
<plugin name="phonegap-plugin-barcodescanner-android12"/>
<plugin name="@moodlehq/cordova-plugin-local-notification"/>
<plugin name="cordova-plugin-android-permissions"/>
<plugin name="cordova-plugin-bluetooth-peripheral-usage-description">
<variable name="TEXT" value="The app needs access to Bluetooth to scan for beacons."/>
</plugin>
<plugin name="cordova-plugin-bluetoothle"/>
<plugin name="community-cordova-plugin-nfc"/>
</widget>
The issue is that cordova-plugin-advanced-http has not been updated for the latest iOS SDKs. Your application should work if you replace that plugin with something newer.
Thanks. That was not very clear from reading the log.