Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10733] iOS: transport.py/Xcode project settings - Minimum iOS SDK set in tiapp.xml is not reflected in the Xcode project deployment target, allowing transport.py or xcode run on non-intended iOS versions

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-09-21T13:24:11.000+0000
Affected Version/sRelease 2.1.2, Release 3.0.0
Fix Version/sRelease 3.0.0, Sprint 2012-19 Core, 2012 Sprint 19
ComponentsiOS
Labelscli-review, core, regression
ReporterEric Merriman
AssigneeMax Stepanov
Created2012-08-31T10:41:45.000+0000
Updated2012-12-12T00:28:46.000+0000

Description

Description: While testing the new feature that allows setting the minimum SDK, we tested the feature on device and simulator using Studio. A community comment in the bug during testing indicated that the appropriate setting in Xcode was not being made. We confirmed this. We were however able to verify that the setting was in fact being made in the produced ipa, either packaged or "run on device". We attempted to export the project via "transport.py" and es expected, the project could be run using xcode on simulators running older versions of the SDK (outside the minimum support iOS SDK) This is a new feature which broke transport, so technically a regression. Steps to reproduce: 1) Create a new studio project using 2.1.2GA 2) Set the tiapp.xml to a minimum SDK of 5.1:
<ios>
  <min-ios-ver>5.1</min-ios-ver>
</ios>
3) Run transport.py on the root project folder 4) Launch project (in build folder) in Xcode 5) Examine "Deployment Target"in Xcode (see attached image) 6) To verify, launch in <=5.0 device or simulator Result: Deployment target set to "4.0", project will run on all supported iOS versions. Exxpected Result: Deployment target set to same value as tiapp.xml setting, project will run only on minimum or greater iOS versions

Attachments

FileDateSize
Screen Shot 2012-08-31 at 10.35.11 AM.png2012-08-31T10:41:45.000+000051604

Comments

  1. Max Stepanov 2012-09-14

    PR submitted https://github.com/appcelerator/titanium_mobile/pull/2972
  2. Blain Hamon 2012-09-21

    pull merged.
  3. Eric Merriman 2012-12-12

    Verified deployment target matches min-sdk-ver from Tiapp.xml. Verified with: SDK: 3.0.0.v20121210171701 Titanium Studio, build: 3.0.0.201212061921 Mac OS X 10.8.2 Xcode 4.5.2 CLI: 3.0.21

JSON Source