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

Simulator selection via --target is wonky #583

Closed
3 tasks done
janpio opened this issue Mar 27, 2019 · 0 comments
Closed
3 tasks done

Simulator selection via --target is wonky #583

janpio opened this issue Mar 27, 2019 · 0 comments

Comments

@janpio
Copy link
Member

janpio commented Mar 27, 2019

Bug Report

Problem

What is expected to happen?

Correct simulator is selected and started.

What does actually happen?

It selects the wrong simulator.

Information

This is from work on cordova-paramedic, where the process usually selects a simulator that is available automatically and then executes the run command with that device as --target param. Since upgrading to Cordova iOS x, CLI 8 and Xcode 9 (from 7.x), this doesn't work any more.

Command or Code

https://travis-ci.org/janpio/cordova-paramedic/jobs/512186335

Relevant snippet:

    cordova run --list --emulator --no-telemetry --no-update-notifier | grep ^iPhone | tail -n1
$ cordova run --list --emulator --no-telemetry --no-update-notifier | grep ^iPhone | tail -n1
iPhone-X, 11.0
running:
    instruments -s devices | grep ^iPhone
$ instruments -s devices | grep ^iPhone
iPhone 4s (8.1) [DCAF3602-A974-48F4-B6B6-8247F7BE4290] (Simulator)
iPhone 4s (8.2) [DCDC5358-FFBF-4989-8092-7F65ED8F02AF] (Simulator)
iPhone 4s (8.3) [2725F258-12B4-4EC0-BF92-2F6972815E5B] (Simulator)
iPhone 4s (8.4) [781CBE8C-F7A2-4F43-B860-D5FE770AB9CC] (Simulator)
iPhone 4s (9.0) [95CABF9C-189B-4EC0-AC51-2BE373A29E95] (Simulator)
iPhone 4s (9.1) [F34DC048-527F-4281-858D-E2E3DC5D32DA] (Simulator)
iPhone 4s (9.2) [75838F3E-BE3C-43E0-BC20-E725CC43435D] (Simulator)
iPhone 4s (9.3) [984A1890-994E-4381-ABDC-7A302426E9AF] (Simulator)
iPhone 5 (10.0) [3AA26DE0-C2F0-4CAF-936D-09F1ECCF9BDA] (Simulator)
iPhone 5 (10.1) [F5558AB4-0D25-451A-98E6-80A5661E3615] (Simulator)
iPhone 5 (10.2) [DEF54A5A-0DB7-4752-B2B5-836A924C1960] (Simulator)
iPhone 5 (10.3.1) [2523EF7F-852D-4268-A9A3-C55A4428EAE0] (Simulator)
iPhone 5 (8.1) [C6895639-ADC2-4EF8-8BE1-3235EC600C6F] (Simulator)
iPhone 5 (8.2) [3519E18E-DEFE-465F-9716-9CE03EEDCFDB] (Simulator)
iPhone 5 (8.3) [D8101339-3F2D-4784-AE7F-0C0C38717431] (Simulator)
iPhone 5 (8.4) [2FDCE5B5-CE70-4DC9-AD28-342517146F0D] (Simulator)
iPhone 5 (9.0) [E5910ACF-1062-48D0-8928-78018B223295] (Simulator)
iPhone 5 (9.1) [51682944-F136-411D-B67B-18AF8E1E2B13] (Simulator)
iPhone 5 (9.2) [5A8FD652-C843-43BF-AC77-EA15B4A916D7] (Simulator)
iPhone 5 (9.3) [D5BD44C1-F03E-439D-BB6C-E805A7FCA27B] (Simulator)
iPhone 5s (10.0) [109C3283-E302-42ED-BCF4-7B46B05AD70C] (Simulator)
iPhone 5s (10.1) [7254AB8A-B3F9-4213-81D0-5F6D102639F2] (Simulator)
iPhone 5s (10.2) [7622058D-CCEF-41D9-B698-FB6ACE4AD737] (Simulator)
iPhone 5s (10.3.1) [9C7E2899-7A4D-4277-9DBE-9E873EAFFFA5] (Simulator)
iPhone 5s (11.0) [C30F6B10-B22D-4322-96A7-7BAF74EC1783] (Simulator)
iPhone 5s (8.1) [4A910963-385E-4A7C-810E-BCFF684B5564] (Simulator)
iPhone 5s (8.2) [47B1A2B3-6190-4915-9406-6B71257262C8] (Simulator)
iPhone 5s (8.3) [DDDC024F-D1B1-4DD4-BED0-3DDF2780232D] (Simulator)
iPhone 5s (8.4) [8588DD30-E67A-4B43-BEBC-8CCAC82F8338] (Simulator)
iPhone 5s (9.0) [B6DE063E-0F3E-43F5-8020-0BEBF00D6E4A] (Simulator)
iPhone 5s (9.1) [14434056-BA7C-42DF-9683-6BB25D6001AB] (Simulator)
iPhone 5s (9.2) [B5D50293-B1BA-420A-B7BA-316BAEE71461] (Simulator)
iPhone 5s (9.3) [EB62DE7F-9FD2-4C76-BF28-E31659A93174] (Simulator)
iPhone 6 (10.0) [8BCFD96E-24E3-44B4-AE9F-F87F0D669A3F] (Simulator)
iPhone 6 (10.1) [57843F60-3483-4859-94F5-5510A5974107] (Simulator)
iPhone 6 (10.2) [58E11FF8-014D-4141-A8AE-EFCE6EBBCFE0] (Simulator)
iPhone 6 (10.3.1) [0EB7E0E4-915F-497E-9D1C-934A10FA82E3] (Simulator)
iPhone 6 (11.0) [C3CEDF85-9238-485D-A98E-792405BE93C3] (Simulator)
iPhone 6 (8.1) [80BE80F4-C243-43F0-BD95-5CB085DAD04F] (Simulator)
iPhone 6 (8.2) [A14A9B20-991D-4837-BADE-A98DB2D7FB61] (Simulator)
iPhone 6 (8.3) [03CE767F-846C-484D-9891-30E38ABD5143] (Simulator)
iPhone 6 (8.4) [407BD90E-2507-4133-A823-8E0407EE8D69] (Simulator)
iPhone 6 (9.0) [2BD86C3D-EFC9-4770-82B7-C5E03444AE16] (Simulator)
iPhone 6 (9.1) [309333F7-3DAE-403C-A688-865986C623B4] (Simulator)
iPhone 6 (9.2) [D07AD1E1-0CC7-4472-BD6A-2932A3A74634] (Simulator)
iPhone 6 (9.3) [03760B35-0E00-4F7C-87BF-7C4F59EF7248] (Simulator)
iPhone 6 Plus (10.0) [B9814467-D104-489A-BB92-93927D044C73] (Simulator)
iPhone 6 Plus (10.1) [FCEE34EB-BAE7-4FB5-BD10-E2B08A42B5F2] (Simulator)
iPhone 6 Plus (10.2) [4CE9FA46-5B35-4FE8-A4BD-994E4540DC37] (Simulator)
iPhone 6 Plus (10.3.1) [EEE357DD-82EF-43B5-AABC-27E3B59DB403] (Simulator)
iPhone 6 Plus (11.0) [39AACFDB-17C9-4676-A707-38C6990EC53D] (Simulator)
iPhone 6 Plus (8.1) [25920468-1144-4E9B-AC25-41C79D2DC107] (Simulator)
iPhone 6 Plus (8.2) [25E030F7-A8FC-47D6-90CF-F49FF4D98622] (Simulator)
iPhone 6 Plus (8.3) [AEB1A3D5-1B9C-4BF6-BDC9-1514DC283402] (Simulator)
iPhone 6 Plus (8.4) [0EA8243F-B321-48CE-8AD1-AFBDBCF24260] (Simulator)
iPhone 6 Plus (9.0) [9AB3D590-C748-4E17-8E35-67B298E973F7] (Simulator)
iPhone 6 Plus (9.1) [A999A1E3-742E-4C02-937B-569C6FEF9B93] (Simulator)
iPhone 6 Plus (9.2) [E0697259-F09E-4630-B389-46FFEFB722AB] (Simulator)
iPhone 6 Plus (9.3) [1627EF4F-03B1-4635-9270-FC3E7FE5A13A] (Simulator)
iPhone 6s (10.0) [9B32ADCD-2A13-4569-81A1-0279124E5831] (Simulator)
iPhone 6s (10.1) [55Bcordova-paramedic: Setting required permissions.
cordova-paramedic: running command cordova run ios --no-telemetry --no-update-notifier --target iPhone-X --emulator --buildFlag=-UseModernBuildSystem=0
$ cordova run ios --no-telemetry --no-update-notifier --target iPhone-X --emulator --buildFlag=-UseModernBuildSystem=0
Building for iPhone SE Simulator

So first it selects a simulator, landing on iPhone-X, 11.0. It uses that for the run --emulator command via --target iPhone-X, but that then somehow outputs "Building for iPhone SE Simulator".

Later it seems to not be able to start the app on the emulator:

Signing Identity:     "-"
    /usr/bin/codesign --force --sign - --timestamp=none /private/var/folders/bb/n7t3rs157850byt_jfdcq9k80000gn/T/tmp-19131wQv8TfMsaj2/platforms/ios/build/emulator/HelloCordova.app
** BUILD SUCCEEDED **
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
The build has been terminated

Environment, Platform, Device

Travis CI

Version information

CLI 8, Cordova iOS 5

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant