-
Notifications
You must be signed in to change notification settings - Fork 984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cordova build iOS error: archive not found at path 'path/to/myApp.xcarchive" with Xcode 10 #404
Comments
same issue after upgrading to xcode 10:
You have been opted out of telemetry. To change this, run: cordova telemetry on.
You have been opted out of telemetry. To change this, run: cordova telemetry on. Build settings from command line: Build settings from configuration file '/Users/jenkins/Home/workspace/MR_KapoZH_9.2_iOS_Test/src/platforms/ios/cordova/build-release.xcconfig': error: archive not found at path '/Users/jenkins/Home/workspace/MR_KapoZH_9.2_iOS_Test/src/platforms/ios/MRKapoZH.xcarchive' (node:7560) UnhandledPromiseRejectionWarning: Error code 65 for command: xcodebuild with args: -exportArchive,-archivePath,MRKapoZH.xcarchive,-exportOptionsPlist,/Users/jenkins/Home/workspace/MR_KapoZH_9.2_iOS_Test/src/platforms/ios/exportOptions.plist,-exportPath,/Users/jenkins/Home/workspace/MR_KapoZH_9.2_iOS_Test/src/platforms/ios/build/device |
Thanks for raising this issue and providing logs. Currently cordova-ios isn't compatible with Xcode 10's new build system, but there are some workarounds documented here. |
Hi dpogue, I followed the workaround instructions by changing the build system to Legacy. The issue isn't resolved yet. My code was running fine and was even published to App Store before I upgraded to Xcode 10.1. Is there anything else I need to do? Thanks in anticipation of your response. |
Hi, i am trying to build cordova ios project with Xcode 10 on command line. I am getting below error Running command: /Users/zs/Development/svn/ICFieldView/trunk/root/ICFieldView.Mobile/mJSCS/platforms/ios/cordova/build It fails, even when i use, --buildFlag='-UseModernBuildSystem=0' we are using Cordova version 3.5.0-0.2.7 Please let me know how to fix the issue. On Xcode 9.4, the build is working successfully. |
Open a new issue @ashishkumar2804 please - here this will get overlooked and ignored. |
Incase it helps anyone I was able to fix this with the Legacy Build setting and in
Just don't forget to do it again after a remove & re-add of platform ios. 😄 |
Cordova -v : 8.0.0
After running cordova platform add ios I see
Using cordova-fetch for cordova-ios~4.5.4
But later sais iOS project created with cordova-ios@4.5.5
On macOS High Sierra (10.13.6) and Xcode 10.
I have tried removing and adding platforms. Also, reinstalling stuff as well. I follow the commands below but see error below at build:
cordova create myApp org.apache.cordova.myApp myApp cd myApp
cordova platform add ios
cordova build ios
I get the error below:
Building project: /Users/ben/Desktop/myTest/platforms/ios/myTest.xcworkspace Configuration: Debug Platform: device User defaults from command line: IDEArchivePathOverride = /Users/ben/Desktop/myTest/platforms/ios/myTest.xcarchive
Build settings from command line: CONFIGURATION_BUILD_DIR = /Users/ben/Desktop/myTest/platforms/ios/build/device SHARED_PRECOMPS_DIR = /Users/ben/Desktop/myTest/platforms/ios/build/sharedpch
Build settings from configuration file '/Users/ben/Desktop/myTest/platforms/ios/cordova/build-debug.xcconfig': CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES CODE_SIGN_ENTITLEMENTS =$(PROJECT_DIR)/$ (PROJECT_NAME)/Entitlements-$(CONFIGURATION).plist CODE_SIGN_IDENTITY = iPhone Developer ENABLE_BITCODE = NO GCC_PREPROCESSOR_DEFINITIONS = DEBUG=1 HEADER_SEARCH_PATHS = "$(TARGET_BUILD_DIR)/usr/local/lib/include" "$(OBJROOT)/UninstalledProducts/include" "$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include" "$(BUILT_PRODUCTS_DIR)" OTHER_LDFLAGS = -ObjC SWIFT_OBJC_BRIDGING_HEADER = $(PROJECT_DIR)/$ (PROJECT_NAME)/Bridging-Header.h
error: archive not found at path '/Users/ben/Desktop/myTest/platforms/ios/myTest.xcarchive' ** EXPORT FAILED **
(node:4984) UnhandledPromiseRejectionWarning: Error code 65 for command: xcodebuild with args: -exportArchive,-archivePath,myTest.xcarchive,-exportOptionsPlist,/Users/ben/Desktop/myTest/platforms/ios/exportOptions.plist,-exportPath,/Users/ben/Desktop/myTest/platforms/ios/build/device (node:4984) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:4984) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
The text was updated successfully, but these errors were encountered: