Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17677] CLI : iOS : When more than one iOS devices are connected building to one device builds to all

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-09-15T18:52:56.000+0000
Affected Version/sRelease 3.4.0
Fix Version/sRelease 3.4.0
ComponentsCLI, iOS
Labelsqe-3.4.0
ReporterLokesh Choudhary
AssigneeChris Barber
Created2014-09-10T23:56:12.000+0000
Updated2014-09-15T18:52:57.000+0000

Description

Description:

1. Connect 2 iOS devices & build an app for any one of the 2 connected device.

Actual Result:

1. The app is built & installed on both the connected devices. 2. Command studio sends:
"/usr/local/bin/titanium" "--no-colors" "--no-progress-bars" "--no-prompt" "build" "--platform" "iphone" "--log-level" "trace" "--sdk" "3.4.0.v20140909222515" "--project-dir" "/Users/lokeshchoudhary/Desktop/workspaces/test_workspace/TIMOB-14986" "--target" "device" "--ios-version" "8.0" "--device-family" "universal" "--developer-name" "Lokesh Choudhary (2T9WDZYG53)" "--device-id" "2809991a6d680c8d369a3ce282d96dcfa7aa3463" "--pp-uuid" "98F73243-B6CA-4F18-A4A6-64ED9096038C"
This command above build's to both connected devices. 3. Using CLI we see the same issue.
ti build -F universal -I 8.0 -T device -C ---your device id ---- -V "Lokesh Choudhary (2T9WDZYG53)" -d /Users/lokeshchoudhary/Desktop/workspaces/test_workspace/TIMOB-14986 -p ios -P ---- your uuid ------
The app builds for both the devices. CLI log :
[TRACE] ** BUILD SUCCEEDED **
[INFO]  Installing app on device: Flash
[INFO]  App successfully installed on device: Flash
[INFO]  Installing app on device: Europa
[INFO]  App successfully installed on device: Europa
[INFO]  Project built successfully in 43s 714ms

Expected Result:

1. The app should only be built to the selected device.

Comments

  1. Chris Barber 2014-09-11

    Master: https://github.com/appcelerator/titanium_mobile/pull/6051 3_4_X: https://github.com/appcelerator/titanium_mobile/pull/6052
  2. Mark Mokryn 2014-09-11

  3. Feon Sua Xin Miao 2014-09-11

    PR merged.
  4. Chris Barber 2014-09-11

    [~mokesmokes] No, this is more related to TIMOB-17595. Our node-ios-device library is sorta having a bad day. Not only am I'm seeing the "syslog_relay" error when I switch between devices, but occasionally I see a "could not connect to device" error or even worse, a segmentation fault. I'm working on fixing it, but it's sort of hard to track down. Let's continue this on TIMOB-17595.
  5. Ewan Harris 2014-09-12

    Verified fix on: Mac OSX 10.9.4 Appcelerator Studio, build: 3.4.0.201409112242 Titanium SDK build: 3.4.0.v20140912120914 Titanium CLI, build: 3.4.0-rc2 Alloy: 1.5.0-beta2 Xcode6 GM Seed iOS Devices iPhone 5s (7.1.1), iPhone 4S (8.0 GM Seed) Connected two devices to my machine and chose to build to only one device in both Studio and the CLI, iPhone 4s. In both scenarios the app was only installed on the selected device. Closing ticket.

JSON Source