Skip to content
JsDevLife
Menu
  • Home
  • Leetcode in JS
  • About me
  • Contact Us
Menu

Ionic ios build fails, error archive not found : Error code 65 for command: xcodebuild with args

Posted on July 11, 2019 by Vikas Kad
If you are working on ionic app, and you are trying to create iOS build then usually we use the following command:

ionic cordova build ios

OR

ionic cordova build ios --device --prod --release

while creating build if you get following error:

✖ cordova build ios – failed!
[ERROR] An error occurred while running cordova build ios (exit code 1):
        error: archive not found at path ‘/Users/work/MyApp/platforms/ios/MyAppp.xcarchive’
        ** EXPORT FAILED **
        CordovaError: Promise rejected with non-error: ‘Error code 65 for command: xcodebuild with args: 

Then You have to use the following command:

ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
if this won’t work then you can update and or create a build.json file.
{
    "ios": {
        "release": {
            ...,
            "buildFlag": [
                "-UseModernBuildSystem=0"
            ]
        }
    }
}
if this won’t work then you can update and or create the build.json file.

xcode -> File -> Workspace Settings-> Legacy Build System

1 thought on “Ionic ios build fails, error archive not found : Error code 65 for command: xcodebuild with args”

  1. Robbert Dom says:
    January 25, 2021 at 7:41 am

    asdfsdf

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Solving LeetCode Problem 79 – Word Search in JavaScript
  • Solving LeetCode Problem 48: Rotate Image using JavaScript
  • Solving the “Container With Most Water” LeetCode Problem in JavaScript – A Comprehensive Guide
  • LeetCode Solution: 54: Spiral Matrix in JavaScript
  • Solution to LeetCode Problem 31. Next Permutation in JavaScript

Archives

  • 2023 (5)
  • 2022 (20)
  • 2021 (2)
  • 2020 (4)
  • 2019 (14)
  • 2018 (17)

Categories

  • blockchain development
  • Blog
  • crystal
  • flutter
  • flutter.io
  • GitHub
  • Installation
  • Ionic Framework
  • javascript
  • leetcode-in-js
  • masteringInJavasript
  • mcqs
  • MongoDB
  • nodejs
  • Object Oriented Javacript
  • python
  • smart contracts
  • visual studio

Quick Links

  • Home
  • Leetcode in JS
  • About me
  • Contact Us

Terms of service

  • Terms Of Service
  • Disclaimer
©2023 JsDevLife | Design: Newspaperly WordPress Theme