Skip to content

Cordova can't find ios-deploy on mac #332

@newuser44

Description

@newuser44

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 build ios --dev
I get an error I need to install iso-deploy

node:486) UnhandledPromiseRejectionWarning: 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'

I follow that command npm install -g iso-deploy

It looks like it is installed.

** BUILD SUCCEEDED **

/Users/sbrothers/.npm-packages/bin/ios-deploy -> /Users/sbrothers/.npm-packages/lib/node_modules/ios-deploy/build/Release/ios-deploy

  • ios-deploy@1.9.2
    updated 1 package in 3.533s

Back to build with cordova build ios --dev
I get the same error.

(node:568) UnhandledPromiseRejectionWarning: 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'

On the command line I can type ios-deploy

Expected behavior

cordova can find ios-deploy

Actual behavior.

cordova can not find ios-deploy. Is this because I have it installed in different folder?

System Specs

System Software Overview:

  System Version: macOS 10.12.6 (16G1036)
  Kernel Version: Darwin 16.7.0
  Boot Volume: Macintosh HD
  Boot Mode: Normal
  Computer Name: John’s MacBook Pro
  User Name: John Smith (sbrothers)
  Secure Virtual Memory: Enabled
  System Integrity Protection: Enabled
  Time since boot: 14 minutes

iOS-deploy -V
1.9.2

Xcode 9.2
Build version 9C40b

/Applications/Xcode.app/Contents/Developer

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

lldb-900.0.64
Swift-4.0

npm version
5.6.0

cordova version
8.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions