You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/06/21 13:05:24 UTC

[GitHub] [cordova-ios] si458 opened a new issue #912: cordova-ios 6.0.0 wont deploy on physical device only simulator

si458 opened a new issue #912:
URL: https://github.com/apache/cordova-ios/issues/912


   # 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 run `cordova emulate ios` first
   ### What 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
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   if i use `cordova platform add ios@6.0.0` i have this problem
   BUT if i use `cordova platform add ios` which installs `5.1.1` i am able to deploy without any issues
   
   brief extract from logs
   ```
   Running command: xcodebuild -exportArchive -archivePath getMyDinner.xcarchive -exportOptionsPlist /Users/Simon/Developer/Cordova/getmydinner/platforms/ios/exportOptions.plist -exportPath /Users/Simon/Developer/Cordova/getmydinner/platforms/ios/build/device
   2020-06-21 14:00:46.780 xcodebuild[75874:4587091] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/h8/d5d9xk4171v7c6bl02ymm6980000gn/T/getMyDinner_2020-06-21_14-00-46.779.xcdistributionlogs'.
   Exported getMyDinner to: /Users/Simon/Developer/Cordova/getmydinner/platforms/ios/build/device
   ** EXPORT SUCCEEDED **
   Command finished with error code 0: xcodebuild -exportArchive,-archivePath,getMyDinner.xcarchive,-exportOptionsPlist,/Users/Simon/Developer/Cordova/getmydinner/platforms/ios/exportOptions.plist,-exportPath,/Users/Simon/Developer/Cordova/getmydinner/platforms/ios/build/device
   No scripts found for hook "before_deploy".
   Running command: xcodebuild -version
   Command finished with error code 0: xcodebuild -version
   Running command: ioreg -p IOUSB -l
   Command finished with error code 0: ioreg -p,IOUSB,-l
   Running command: ios-deploy --version
   Command finished with error code 0: ios-deploy --version
   Running command: ios-deploy -c -t 1
   [....] Waiting up to 1 seconds for iOS device to be connected
   [....] Found ca9050e715f7c2507b0c3507fb3d6d00bade6dc8 (D201AP, iPhone 8, iphoneos, arm64) a.k.a. 'Si-iPhone8' connected through USB.
   Command finished with error code 0: ios-deploy -c,-t,1
   Running command: unzip -o -qq /Users/Simon/Developer/Cordova/getmydinner/platforms/ios/build/device/getMyDinner.ipa
   Command finished with error code 0: unzip -o,-qq,/Users/Simon/Developer/Cordova/getmydinner/platforms/ios/build/device/getMyDinner.ipa
   Deploying to simulator
   No target specified for emulator. Deploying to "iPhone-XR, 12.4" simulator.
   Running command: /Users/Simon/Developer/Cordova/getmydinner/node_modules/ios-sim/bin/ios-sim launch /Users/Simon/Developer/Cordova/getmydinner/platforms/ios/build/emulator/getMyDinner.app --devicetypeid com.apple.CoreSimulator.SimDeviceType.iPhone-XR, 12.4 --log /Users/Simon/Developer/Cordova/getmydinner/platforms/ios/cordova/console.log --exit
   Error: Unhandled error. ('[ios-sim] /Users/Simon/Developer/Cordova/getmydinner/platforms/ios/build/emulator/getMyDinner.app/Info.plist file not found.\n')
   ```
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   `cordova run ios`
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   Mac OS 10.15.5, iOS@6.0.0, iPhone 8 13.5.1
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   Cordova 9.0.0 (cordova-lib@9.0.1)
   cordova-ios@6.0.0
   no plugins,
   using sample project created via `cordova create`
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] si458 removed a comment on issue #912: cordova-ios 6.0.0 wont deploy on physical device only simulator

Posted by GitBox <gi...@apache.org>.
si458 removed a comment on issue #912:
URL: https://github.com/apache/cordova-ios/issues/912#issuecomment-650265171


   im glad im not the only one having this issue
   @dpogue 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] sc0ttdav3y commented on issue #912: cordova-ios 6.0.0 wont deploy on physical device only simulator

Posted by GitBox <gi...@apache.org>.
sc0ttdav3y commented on issue #912:
URL: https://github.com/apache/cordova-ios/issues/912#issuecomment-649206928


   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.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] sc0ttdav3y commented on issue #912: cordova-ios 6.0.0 wont deploy on physical device only simulator

Posted by GitBox <gi...@apache.org>.
sc0ttdav3y commented on issue #912:
URL: https://github.com/apache/cordova-ios/issues/912#issuecomment-649202498


   I've got the same issue on `cordova-ios@6.1.0`.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] imgos commented on issue #912: cordova-ios 6.0.0/6.1.0 wont deploy on physical device only simulator

Posted by GitBox <gi...@apache.org>.
imgos commented on issue #912:
URL: https://github.com/apache/cordova-ios/issues/912#issuecomment-655487921


   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.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] dpogue commented on issue #912: cordova-ios 6.0.0/6.1.0 wont deploy on physical device only simulator

Posted by GitBox <gi...@apache.org>.
dpogue commented on issue #912:
URL: https://github.com/apache/cordova-ios/issues/912#issuecomment-655732582


   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?)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] timia2109 commented on issue #912: cordova-ios 6.0.0 wont deploy on physical device only simulator

Posted by GitBox <gi...@apache.org>.
timia2109 commented on issue #912:
URL: https://github.com/apache/cordova-ios/issues/912#issuecomment-650128840


   I got the same problem.
   
   iPhone 11 / iPhone SE (2020), iOS 13.5.1, macOS 10.15.5


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] sdegenaar commented on issue #912: cordova-ios 6.0.0/6.1.0 wont deploy on physical device only simulator

Posted by GitBox <gi...@apache.org>.
sdegenaar commented on issue #912:
URL: https://github.com/apache/cordova-ios/issues/912#issuecomment-651499067


   I have the same issue too on cordova-ios@6.1.0, iPhone 11


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] si458 commented on issue #912: cordova-ios 6.0.0/6.1.0 wont deploy on physical device only simulator

Posted by GitBox <gi...@apache.org>.
si458 commented on issue #912:
URL: https://github.com/apache/cordova-ios/issues/912#issuecomment-655674090


   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!?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] timbru31 closed issue #912: cordova-ios 6.0.0/6.1.0 wont deploy on physical device only simulator

Posted by GitBox <gi...@apache.org>.
timbru31 closed issue #912:
URL: https://github.com/apache/cordova-ios/issues/912


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] si458 commented on issue #912: cordova-ios 6.0.0 wont deploy on physical device only simulator

Posted by GitBox <gi...@apache.org>.
si458 commented on issue #912:
URL: https://github.com/apache/cordova-ios/issues/912#issuecomment-650265171


   im glad im not the only one having this issue
   @dpogue 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org