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

CLI: Ti CLI does not find the iPod touch simulator #13242

Open
1 task done
alexlarocca opened this issue Jan 14, 2022 · 4 comments
Open
1 task done

CLI: Ti CLI does not find the iPod touch simulator #13242

alexlarocca opened this issue Jan 14, 2022 · 4 comments
Labels
bug needs triage This issue hasn't been reviewed by maintainers

Comments

@alexlarocca
Copy link
Contributor

I have searched and made sure there are no existing issues for the issue I am filing

  • I have searched the existing issues

Description

I have the iPod touch (7th generation) simulator with iOS 15.2 installed. This is available from XCode simulators and properly returned by "xcrun simctl list devices". If I run "ti info" the iPod touch simulator is not on the list and I cannot run the app on it.

Expected Behavior

iPod touch simulator available through the Ti CLI

Actual behavior

Ti CLI does not find iPod touch simulator

Reproducible sample

NA

Steps to reproduce

run "ti info" and "xcrun simctl list devices"

Platform

CLI

SDK version you are using

10.1.1.GA

@alexlarocca alexlarocca added bug needs triage This issue hasn't been reviewed by maintainers labels Jan 14, 2022
@alexlarocca
Copy link
Contributor Author

Issue moved to Ti CLI: tidev/titanium-cli#538

@alexlarocca
Copy link
Contributor Author

Probably the ipod family is not recognized and then skipped

// from Simulator.js
var familyRE = /^(iphone|ipad|ios|watch|watchos)$/;

@ewanharris
Copy link
Collaborator

@alexlarocca I think you're on the right track there, I think editing this regex and ensuring the iPod family gets assigned to the right simType here should have the iPod sims show up in ti info, I'm not sure whether there would then be extra work to ensure the build functions correctly

@alexlarocca
Copy link
Contributor Author

@ewanharris I made what you suggested and now "ti info" returns the ipod touch. Unfortunately "ti build" still does not work.

ti info

iPod Touch (iPod touch (7th generation)) (ipod)
UDID = A858B428-0FF1-434A-B8ED-FB640F9E6FC1
Supports Watch Apps = no

/usr/local/bin/node /usr/local/bin/ti build --project-dir /Users/alessandro/Documents/Appcelerator_Studio_Workspace/NikiTalk --log-level info --platform ios --color --no-prompt --target simulator --device-id A858B428-0FF1-434A-B8ED-FB640F9E6FC1 --sdk 10.1.1.GA

[LiveView] TypeError: Cannot read property '1' of null
at iOSBuilder. (/Users/alessandro/Library/Application Support/Titanium/mobilesdk/osx/10.1.1.GA/iphone/cli/commands/_build.js:2075:85)
at /Users/alessandro/Library/Application Support/Titanium/mobilesdk/osx/10.1.1.GA/node_modules/ioslib/lib/simulator.js:799:4
at /Users/alessandro/Library/Application Support/Titanium/mobilesdk/osx/10.1.1.GA/node_modules/ioslib/lib/simulator.js:104:11
at /Users/alessandro/Library/Application Support/Titanium/mobilesdk/osx/10.1.1.GA/node_modules/ioslib/lib/utilities.js:66:17
at processTicksAndRejections (internal/process/task_queues.js:77:11)

@hansemannn hansemannn changed the title Ti CLI does not find the iPod touch simulator CLI: Ti CLI does not find the iPod touch simulator Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs triage This issue hasn't been reviewed by maintainers
Projects
None yet
Development

No branches or pull requests

2 participants