TechValens
TechValens

Reputation: 437

Build Failed in ionic 2 for IOS

Running ionic cordova build ios will result in the following error:

Preparing Firebase on iOS
IOS project Code Sign Entitlements now set to: LifeBuddy/Resources/LifeBuddy.entitlements
Entitlements file is in reference section.
Error: ios-deploy was not found. Please download, build and install version 1.9.2 or greater from https://github.com/phonegap/ios-deploy into your path, or do 'npm install -g ios-deploy'

[ERROR] An error occurred while running cordova build ios (exit code 1).

When running the suggested command npm install -g ios-deploy I receive this error:

The following build commands failed:
        Check dependencies
        Write auxiliary files
(2 failures)
npm ERR! code ELIFECYCLE
npm ERR! errno 65
npm ERR! [email protected] preinstall: `./src/scripts/check_reqs.js && xcodebuild`
npm ERR! Exit status 65
npm ERR! 
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/dev-13/.npm/_logs/2018-07-31T08_07_03_860Z-debug.log

Upvotes: 0

Views: 287

Answers (1)

Thomas Degroot
Thomas Degroot

Reputation: 524

Try this, sudo npm install -g ios-deploy --unsafe-perm=true

Upvotes: 1

Related Questions