Closed si458 closed 4 years ago
I've got the same issue on cordova-ios@6.1.0
.
As a workaround, I have found that I can manually deploy the app to a device by using ios-deploy
directly.
cd platforms/ios/build/device
# extract the .app from the .ipa (creates Payload directory)
unzip "<Project Name>.ipa"
cd Payload
# deploy to device
ios-deploy --debug --bundle "<Project Name>.app"
See https://github.com/ios-control/ios-deploy for details.
I got the same problem.
iPhone 11 / iPhone SE (2020), iOS 13.5.1, macOS 10.15.5
I have the same issue too on cordova-ios@6.1.0, iPhone 11
I'm experiencing the same problem with cordova 9.0.0, cordova-ios 6.1.0, osx 10.15.5, and ios 13.5.1.
The phone is detected with cordova run --list
, but it still attempts to deploy to a simulator. I'm able to deploy successfully with cordova-ios 5.1.1. Running ios-deploy as @sc0ttdav3y suggested works when using 6.1.0.
I’m amazed nobody from the programming team has picked up on this issue as I’m glad it’s not just me having this problem!?
There's not really a programming team, there's a handful of volunteers. Speaking for myself, I can't help debug this because I don't have any physical devices to reproduce it with.
If someone wants to investigate further, one place to start would be reviewing the commits between 5.1.1 and 6.0.0 to see if anything changed around how we use ios-deploy
(or maybe the version of ios-deploy
itself?)
Bug Report
Problem
every time i run
cordova run ios
it wont deploy to my attached iPhone it seems to try deploying to simulator instead which actually fails because i haven't runcordova emulate ios
firstWhat is expected to happen?
i expected it to deploy the app to my attached iPhone device
What does actually happen?
it tries to deploy the app to default simulator device instead of deploying to physical device but fails
Information
if i use
cordova platform add ios@6.0.0
i have this problem BUT if i usecordova platform add ios
which installs5.1.1
i am able to deploy without any issuesbrief extract from logs
Command or Code
cordova run ios
Environment, Platform, Device
Mac OS 10.15.5, iOS@6.0.0, iPhone 8 13.5.1
Version information
Cordova 9.0.0 (cordova-lib@9.0.1) cordova-ios@6.0.0 no plugins, using sample project created via
cordova create
Checklist