Cordova build iOS error: archive not found at path 'path/to/myApp.xcarchive"
cordova build ios verbose exited with exit code 65
library not found for ionic xcode
cordova could not delete because it was not created by the build system
failed to load ios project file maybe your cordova version is not supported
cordova xcode 11
non system ruby in use this may cause packaging to fail
I have been struggling to get Cordova to work and run on my iPhone. 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.
I have tried removing and adding platforms. Also, uninstalling stuff as well.
I'm on macOS High Sierra and Xcode 10.
There is a work around here.
If you're building on the command-line, you can specify --buildFlag="-UseModernBuildSystem=0":
# Cordova CLI cordova run ios --buildFlag='-UseModernBuildSystem=0' cordova build ios --buildFlag='-UseModernBuildSystem=0' # Ionic CLI ionic cordova run ios -- --buildFlag="-UseModernBuildSystem=0" ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
If you're building with a build.json config file, you can add the following under the iOS release or debug config:
"buildFlag": [ "-UseModernBuildSystem=0" ]
If you are opening the project in the Xcode IDE, you need to change the build system in Workspace Settings to "Legacy Build System"
Cordova build iOS error: archive not found at path , 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 . I have been struggling to get Cordova to work and run on my iPhone. I follow the commands below but see error below at build: cordova create myApp org.apache.cordova
Neither solution -
--buildFlag="-UseModernBuildSystem=0" or setting the Legacy Build System worked for me.
For some reason, the error only goes away if I am sure to unplug my iPad or iPhone from usb on my computer before running the cordova build command.
Maybe something quirky about my configuration, but I thought I'd share in case it helps anyone else.
ErEXPORT FAILED - ionic, With ionic serve works fin but " ionic rodova run ios -l" not. error: archive not found at path Xcode : Xcode 10.0 Build version 10A255. thanks. Xcode 10 uses a new build system by default (previously available on an opt-in basis in Xcode 9). The cordova-ios project structure is not compatible with this new build system and results in failures. Officially, we do not claim to support Xcode 10. Currently the best workaround is to opt-out of the new build system:
Cordova iOS supports the new build system since 5.0.0 (see release notes).
So update your package.json to
"cordova-ios": "5.0.0" (or later) and call
Note, that I had to clean out everything (delete the directories platforms, plugins, www) afterwards in order for it to work.
Cordova build iOS error: archive not found at path 'path/to , I have been struggling to get Cordova to work and run on my iPhone. I follow the commands below but see error below at build: cordova create Cordova build iOS error: archive not found at path 'path/to/myApp.xcarchive" (3) Cordova iOS supports the new build system since 5.0.0 (see release notes ). So update your package.json to "cordova-ios": "5.0.0" (or later) and call npm install .
If you don't want to set it in the build flag all the time, open your MyApp.xcworkspace and go to:
Sidenote: Yes you need to do this all the time by adding the ios platform in cordova. (e.g. you removed and added again the ios platform)
File > Workspace settings > Choose for Build System: Legacy Build System
Cordova build failing in cordova archive step - Build Issues, error: archive not found at path '/Users/vagrant/git/platforms/ios/[REDACTED].xcarchive' ** EXPORT FAILED **. This is Cordova 8.0.0 Hi- Installed this plugin today and not able to get "cordova build ios" or "ionic cordova build ios" to compile anymore. When I look at the logs, I just cannot tell what is going on.
This also happens when you run
cordova ios build --prod with a device connected to your mac. Unplug and try again.
[GitHub] dpogue commented on issue #404: Cordova build iOS error , Subject, [GitHub] dpogue commented on issue #404: Cordova build iOS error: archive not found at path 'path/to/myApp.xcarchive" with Xcode On a Mac OS Sierra. New install of node.js but this time I told npm where to install the packages (~/.npm-packages) Installed Cordova Setup path to point to ~/npm-packages/bin Try to run Cordova bu
Ionic ios build fails, error archive not found : Error code 65 for , cordova build ios - failed! [ERROR] An error occurred while running cordova build ios (exit code 1):. error: archive not found at path I'm completely confused as well, so I'll retract and wait for others more qualified than me to report, so as not to confuse you. In the morning, a simple ionic cordova build ios would fail with a platform not found error, while a build within Xcode 10 would work, but now,
Cordova SDK Troubleshooting, Archive not found at path iOS build error. If you see the following error message during cordova build ios , you must switch to the legacy build CB-8710 - cordova-ios jasmine tests do not clean up build products, tests can only be run once; CB-7767 - Remove usage of NSData+Base64; CB-8709 - Remove usage of obsolete CDVLocalStorage fix in CDVViewController.m (plus style fix-ups) CB-8270 - Update Objective-C unit tests for JSON serialization. Cleaned up unit test workspace as well.
[cordova] error: archive not found at path '/Users/path-to-app/platforms/ios/demoapp.xcarchive' [cordova] ** EXPORT FAILED ** [cordova] Archive not found at path iOS build error If you see the following error message during cordova build ios, you must switch to the legacy build system. error: archive not found at path '/platforms/ios/MyApp.xcarchive' ** EXPORT FAILED ** To resolve this issue, specify --buildFlag="-UseModernBuildSystem=0" when running build.
- Did you solve this ? I am getting this now also
- possible duplicate: stackoverflow.com/questions/52385600/…
- @Marshall I posted this question a while ago. Cheers
- @LennyD, I have gone back to an older version of Cordova but it seems like the team has got to it and there are some work around it. I havn't had a chance to try out the workaround yet. Cheer. github.com/apache/cordova-ios/issues/407
- Thanks this worked for me - are there any known issues e.g. uploading to the App Store when this build flag is set?
- The reason is that Xcode 10 has a new build system that
cordova-iosdoes not yet support. See this announcement.
- In XCode 10 - to change to Legacy Build System use File->Project Settings-Build System->Legacy Build System. The "--buildflag" workaround worked initially for me then didn't. Also Cordova Clean kept throwing errors/failing. Once I switched to the Legacy Build all was fine.
- No longer working for me (XCode 10, Ionic v4 beta 11). Try this: I followed the comment advice above. Open XCode, go to File -> Workplace Settings -> Build System… select Legacy Build System. Then, back in your CLI, run: ionic cordova run ios -l
- I have followed the advice and still get the error: CordovaError: Promise rejected with non-error: 'Error code 65 for command: xcodebuild with args: -exportArchive,-archivePath.... However, it seems to still build the .xcodeproj file correctly
- Same for me, I litteraly tried everything for hours! This comment saved me!
- Same here. This should be the correct solution/answer