mabreu14 opened a new issue #1128:
URL: https://github.com/apache/cordova-ios/issues/1128
# Bug Report
When trying to build using Cordova build it fails but it works when using
XCode
## Problem
If I use XCode UI it works.
if I use command 'cordova -d build ios --release --device --buildConfig
./build/config.json' I get the following error
** ARCHIVE FAILED **
The following build commands failed:
CodeSign
/Users/jenkins/Library/Developer/Xcode/DerivedData/Daxko-fuhhcpuijiupjlgnpesczenqsnho/Build/Intermediates.noindex/ArchiveIntermediates/Daxko/InstallationBuildProductsLocation/Applications/Daxko.app
(1 failure)
Command finished with error code 65: xcodebuild
-workspace,Daxko.xcworkspace,-scheme,Daxko,-configuration,Release,-destination,generic/platform=iOS,-archivePath,Daxko.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/jenkins/workspace/mx-mobile-build-container-app-prod/build/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/jenkins/workspace/mx-mobile-build-container-app-prod/build/platforms/ios/build/sharedpch,-UseModernBuildSystem=0
(node:21701) UnhandledPromiseRejectionWarning: Error: xcodebuild: Command
failed with exit code 65
at ChildProcess.whenDone
(/Users/jenkins/workspace/mx-mobile-build-container-app-prod/build/node_modules/cordova-common/src/superspawn.js:135:23)
if I tried to use the xcodebuild command
xcodebuild
-workspace,Daxko.xcworkspace,-scheme,Daxko,-configuration,Release,-destination,generic/platform=iOS,-archivePath,Daxko.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/jenkins/workspace/mx-mobile-build-container-app-prod/build/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/jenkins/workspace/mx-mobile-build-container-app-prod/build/platforms/ios/build/sharedpch,-UseModernBuildSystem=0
I get this error
/Users/jenkins/workspace/mx-mobile-build-container-app-prod/build/platforms/ios/Daxko/Plugins/cordova-plugin-safariviewcontroller/SafariViewController.h:1:9:
fatal error: 'Cordova/CDVPlugin.h' file not found
#import <Cordova/CDVPlugin.h>
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
## Information
<!-- Include all relevant information that might help understand and
reproduce the problem -->
Cordova 8
Cordova IOS 5.1.1
XCode 12.5.1 --- recently updated
Plugins
"branch-cordova-sdk": "3.4.0",
"cordova-plugin-statusbar": "2.4.3",
"cordova-plugin-wkwebview-engine": "1.2.1",
"cordova-plugin-inappbrowser": "3.2.0",
"cordova-plugin-screen-orientation": "3.0.2",
"cordova-plugin-safariviewcontroller": "1.6.0",
"cordova-plugin-app-icon-changer": "1.0.0",
"cordova-plugin-enable-multidex": "0.1.3",
"cordova-plugin-calendar": "5.1.5",
"cordova-plugin-device": "2.0.2",
"cordova-plugin-dialogs": "2.0.1",
"cordova-plugin-file-transfer": "1.7.1",
"cordova-plugin-geolocation": "3.0.0",
"cordova-plugin-network-information": "2.0.1",
"cordova-plugin-passbook": "0.2.1",
"cordova-plugin-vibration": "3.1.0",
"cordova-plugin-whitelist": "1.3.3",
"phonegap-plugin-barcodescanner": "8.0.0",
"cordova-plugin-splashscreen": "5.0.2"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]