Skip to content
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 command tries to run app when a device is connected #677

Closed
chawax opened this issue Sep 30, 2019 · 1 comment · Fixed by #1313
Closed

cordova build command tries to run app when a device is connected #677

chawax opened this issue Sep 30, 2019 · 1 comment · Fixed by #1313
Milestone

Comments

@chawax
Copy link

chawax commented Sep 30, 2019

When I have a iPhone device connected to my desktop and I run cordova build ios command, it tries to run the app on device while it should just build the application.

So I have an error message because ios-deploy is not installed on my desktop.

[Error] Error: Command failed: cordova build --buildFlag='-UseModernBuildSystem=0' ios
CordovaError: Promise rejected with non-error: 'ios-deploy was not found. Please download, build and install version 1.9.2 or greater from https://github.com/ios-control/ios-deploy into your path, or do \'npm install -g ios-deploy\''
    at cli.catch.err (/Users/othierry/.nvm/versions/node/v8.12.0/lib/node_modules/cordova/bin/cordova:29:15)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)

I use Cordova 9 with Cordova iOS platform 5.0.1.

I had not this problem with previous Cordova releases.

@chawax chawax changed the title cordova build tries to run app when a device is connected cordova build command tries to run app when a device is connected Sep 30, 2019
@brodycj
Copy link
Contributor

brodycj commented Feb 18, 2020

Correction: cordova-ios checks for ios-deploy tool during build stage

I am adding the help wanted label. Maintainers are pretty overloaded and busy with work on major release updates. Maintainers are almost or completely 100% unpaid volunteers.

@dpogue dpogue added this to the 8.0.0 milestone Aug 29, 2024
dpogue added a commit to dpogue/cordova-ios that referenced this issue Aug 29, 2024
If neither `--device` nor `--emulator` are specified for the build
command, it will check for a connected device and assume `--device` if
one is found. However, it was also checking for the availability of the
ios-deploy tool which is used to deploy to a connected device.

If we're just building, we don't need to check for a deploy tool. The
run command already has this check to ensure that ios-deploy is
available before actually trying to deploy.

Closes apacheGH-420.
Closes apacheGH-677.
dpogue added a commit to dpogue/cordova-ios that referenced this issue Aug 30, 2024
If neither `--device` nor `--emulator` are specified for the build
command, it will check for a connected device and assume `--device` if
one is found. However, it was also checking for the availability of the
ios-deploy tool which is used to deploy to a connected device.

If we're just building, we don't need to check for a deploy tool. The
run command already has this check to ensure that ios-deploy is
available before actually trying to deploy.

Closes apacheGH-420.
Closes apacheGH-677.
@dpogue dpogue closed this as completed in f81013b Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants