Details

      Description

      This appears to be a regression issue. Since it works fine in 2.1.2 Studio.
      iOS Simulator 5.0/5.1 runs in Studio 2.1.2 build.
      Steps To Reproduce:
      1. Install Xcode and Studio 3.0
      2. Create a default project.
      3. Try running app in iOS simulator.

      Actual: Error appears in console.
      [ERROR] Invalid --ios-version value '5.0'
      Accepted values:
      6.0
      5.1
      Expected: iOS simulator 5.0/5.1 must run for default project.

        Issue Links

          Activity

          Hide
          Satyam Sekhri added a comment -

          The issue occurs with 3.0 studio and 3.0 SDK. It works fine on 3.0 studio with 2.1.4 SDK and also works fine on 2.1.2 studio with 3.0 SDK.

          Show
          Satyam Sekhri added a comment - The issue occurs with 3.0 studio and 3.0 SDK. It works fine on 3.0 studio with 2.1.4 SDK and also works fine on 2.1.2 studio with 3.0 SDK.
          Hide
          Dustin Hyde added a comment - - edited

          I'm seeing this in Xcode 4.5.2 as well.

          [ERROR] Invalid --ios-version value '5.0'
          
          Accepted values:
             6.0
          
          [ERROR] Invalid --ios-version value '5.1'
          
          Accepted values:
             6.0
          

          Titanium Studio: 3.0.0.201211301903
          Titanium SDK: 3.0.0.v20121130200208
          Titanium CLI: 3.0.19
          OS: Mountain Lion 10.8.2
          Xcode: 4.5.2
          iPhone Simulator: 5.0, 5.1

          titanium info

          Xcode
          4.5.2 (build 4G2008a)
            Install Location                    = /Users/dhyde/Desktop/ios/xcode/xcode-4.5.2/Xcode.app/Contents/Developer
            iOS SDKs                            = 6.0
            iOS Simulators                      = 5.0, 5.1, 6.0
          

          studio log:

          !ENTRY com.aptana.core 1 0 2012-12-03 12:49:58.278
          !MESSAGE (Build 3.0.0.201211301903) [INFO] com.aptana.core/debug/shell Running process:
          Process: "/usr/local/bin/titanium" "--no-banner" "--no-colors" "--no-prompt" "build" "--platform" "iphone" "--sdk" "3.0.0.v20121130200208" "--log-level" "trace" "--target" "simulator" "--ios-version" "5.0" "--device-family" "iphone"
          Working directory: /Users/dhyde/Desktop/tistud/rc/workspace/MyProject
          Environment: {APTANA_VERSION=3.0.0.1346448223, Apple_PubSub_Socket_Render=/tmp/launch-AzNOpz/Render, Apple_Ubiquity_Message=/tmp/launch-5aw77x/Apple_Ubiquity_Message, COMMAND_MODE=unix2003, COM_GOOGLE_CHROME_FRAMEWORK_SERVICE_PROCESS/USERS/DHYDE/LIBRARY/APPLICATION_SUPPORT/GOOGLE/CHROME_SOCKET=/tmp/launch-Q9cPME/ServiceProcessSocket, HOME=/Users/dhyde, LANG=en_US.UTF-8, LOGNAME=dhyde, NUM_CPUS=4, PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin, PWD=/Users/dhyde/Desktop/tistud/rc/workspace/MyProject, SHELL=/bin/bash, SHLVL=1, SSH_AUTH_SOCK=/tmp/launch-CQr5wF/Listeners, TI_DEBUG=0, TMPDIR=/var/folders/6f/wxjmlj0n7kl5w8kmq5hrrbch0000gp/T/, USER=dhyde, __CF_USER_TEXT_ENCODING=0x1F6:0:0, com.apple.java.jvmTask=JNI}
          
          Show
          Dustin Hyde added a comment - - edited I'm seeing this in Xcode 4.5.2 as well. [ERROR] Invalid --ios-version value '5.0' Accepted values: 6.0 [ERROR] Invalid --ios-version value '5.1' Accepted values: 6.0 Titanium Studio: 3.0.0.201211301903 Titanium SDK: 3.0.0.v20121130200208 Titanium CLI: 3.0.19 OS: Mountain Lion 10.8.2 Xcode: 4.5.2 iPhone Simulator: 5.0, 5.1 titanium info Xcode 4.5.2 (build 4G2008a) Install Location = /Users/dhyde/Desktop/ios/xcode/xcode-4.5.2/Xcode.app/Contents/Developer iOS SDKs = 6.0 iOS Simulators = 5.0, 5.1, 6.0 studio log: !ENTRY com.aptana.core 1 0 2012-12-03 12:49:58.278 !MESSAGE (Build 3.0.0.201211301903) [INFO] com.aptana.core/debug/shell Running process: Process: "/usr/local/bin/titanium" "--no-banner" "--no-colors" "--no-prompt" "build" "--platform" "iphone" "--sdk" "3.0.0.v20121130200208" "--log-level" "trace" "--target" "simulator" "--ios-version" "5.0" "--device-family" "iphone" Working directory: /Users/dhyde/Desktop/tistud/rc/workspace/MyProject Environment: {APTANA_VERSION=3.0.0.1346448223, Apple_PubSub_Socket_Render=/tmp/launch-AzNOpz/Render, Apple_Ubiquity_Message=/tmp/launch-5aw77x/Apple_Ubiquity_Message, COMMAND_MODE=unix2003, COM_GOOGLE_CHROME_FRAMEWORK_SERVICE_PROCESS/USERS/DHYDE/LIBRARY/APPLICATION_SUPPORT/GOOGLE/CHROME_SOCKET=/tmp/launch-Q9cPME/ServiceProcessSocket, HOME=/Users/dhyde, LANG=en_US.UTF-8, LOGNAME=dhyde, NUM_CPUS=4, PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin, PWD=/Users/dhyde/Desktop/tistud/rc/workspace/MyProject, SHELL=/bin/bash, SHLVL=1, SSH_AUTH_SOCK=/tmp/launch-CQr5wF/Listeners, TI_DEBUG=0, TMPDIR=/var/folders/6f/wxjmlj0n7kl5w8kmq5hrrbch0000gp/T/, USER=dhyde, __CF_USER_TEXT_ENCODING=0x1F6:0:0, com.apple.java.jvmTask=JNI}
          Hide
          Chris Barber added a comment -

          The CLI is behaving correctly. There's a difference between --ios-version and --sim-version. --ios-version can only be the iOS SDK version you wish to compile for. --sim-version can only be the iOS Simulator version you wish to run your app.

          It is possible to compile your app with 6.0 and try to run it on a 4.0 device, but this will most likely cause an error.

          Show
          Chris Barber added a comment - The CLI is behaving correctly. There's a difference between --ios-version and --sim-version. --ios-version can only be the iOS SDK version you wish to compile for. --sim-version can only be the iOS Simulator version you wish to run your app. It is possible to compile your app with 6.0 and try to run it on a 4.0 device, but this will most likely cause an error.
          Hide
          Dustin Hyde added a comment -

          Moving ticket to TISTUD. CLI is working correctly as per Chris Barber.

          Show
          Dustin Hyde added a comment - Moving ticket to TISTUD. CLI is working correctly as per Chris Barber.
          Hide
          Michael Xia (Inactive) added a comment -

          So in this case we need to pass in "--ios-version 6.0 --sim-version 5.0".

          Show
          Michael Xia (Inactive) added a comment - So in this case we need to pass in "--ios-version 6.0 --sim-version 5.0".
          Hide
          Michael Xia (Inactive) added a comment -

          This is also related to TISTUD-2311. We are showing the list of iOS simulators for iOS SDK combo-box. We'll need to add a separate combo-box for iOS simulator and fix so that both are filled with the correct lists. Then we could pass the right value to respective flag.

          Show
          Michael Xia (Inactive) added a comment - This is also related to TISTUD-2311 . We are showing the list of iOS simulators for iOS SDK combo-box. We'll need to add a separate combo-box for iOS simulator and fix so that both are filled with the correct lists. Then we could pass the right value to respective flag.
          Hide
          Shalom Gibly added a comment -

          Fixed.
          We now pass the CLI the right iOS version and the right simulator version.
          A drop-down was added to the simulator launch configuration tab to allow selecting a simulator version to run against.

          Note also TIMOB-11968 which blocks testing this feature at the moment.

          Show
          Shalom Gibly added a comment - Fixed. We now pass the CLI the right iOS version and the right simulator version. A drop-down was added to the simulator launch configuration tab to allow selecting a simulator version to run against. Note also TIMOB-11968 which blocks testing this feature at the moment.
          Hide
          Dustin Hyde added a comment - - edited

          Closing as Fixed.

          Verified On:

          Titanium Studio: jenkins-3.0.0.201212071410
          Xcode: 4.5.2
          OS: Mountain Lion 10.8.2, Lion 10.7.5

          Test Steps:

          1. Run all possible iOS Simulator combinations. Verify correct simulator is launched and correct sdk is launched.

          Use Ti.Platform.version to verify, and iOS Simulator Menu > Hardware.

          Show
          Dustin Hyde added a comment - - edited Closing as Fixed. Verified On: Titanium Studio: jenkins-3.0.0.201212071410 Xcode: 4.5.2 OS: Mountain Lion 10.8.2, Lion 10.7.5 Test Steps: 1. Run all possible iOS Simulator combinations. Verify correct simulator is launched and correct sdk is launched. Use Ti.Platform.version to verify, and iOS Simulator Menu > Hardware.

            People

            • Assignee:
              Shalom Gibly
              Reporter:
              Pragya Rastogi
            • Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: