[ALOY-1141] iOS, Jake: Harness project from Studio on iPhone simulators might use wrong Sim version
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Resolved |
Resolution | Won't Fix |
Resolution Date | 2014-10-01T18:56:26.000+0000 |
Affected Version/s | Alloy 1.5.0 |
Fix Version/s | n/a |
Components | Samples & Templates |
Labels | qe-3.4.0, qe-nfc, usability |
Reporter | Federico Casali |
Assignee | Tim Poulsen |
Created | 2014-09-17T16:27:40.000+0000 |
Updated | 2014-10-02T16:54:08.000+0000 |
Description
Comments
- Tim Poulsen 2014-09-17
Studio will detect the missing
tag and add it for you, setting it to the highest SDK version you have installed. When you open tiapp.xml, you should see a small orange icon (exclamation point in a triangle) next to the SDK version drop-down list indicating that an "invalid" SDK version was detected. As discussed over Flowdock, the SDK version was removed from the HarnessTemplate's tiapp.xml to: * make it easier to test Alloy development with multiple SDK versions * while preventing unwanted changes to the HarnessTemplate from being included in pull requests The change was made as part of the 1.5 release and designed to work well with the jake app:run
command. - Federico Casali 2014-09-17
I think a valid solution for now could be to add a comment in the Jake documentation in the Alloy repo (i.e. specifying the user should open/save tiapp.xml in case using Harness project imported into Studio).
I also confirm the correct iPhone simulator is launched when using CLI.
1. Run
jake app:setup dir=basics/simple
2. From the Harness project folder, run:ti build -p ios -C <Device_ID>
where the device ID is obtained running:ti info -t ios
- Tim Poulsen 2014-10-01
See my comments on ALOY-1137 for workarounds.
We may be moving away from jake. Rather than updating the docs on what is a developer-only, and likely rarely used tool in the Alloy repo, I'd rather recommend general users to use the
--testapp
argument as described in ALOY-1137.