Description
When 3.3.0.GA is selected using ti sdk select and then in the tiapp.xml of a project 3.4.0 SDK is selected, there is no option to perform any actions relating to iOS (package, build) and when trying to build from the CLI the build fails and the error below is shown.
[ERROR] There are no supported Xcode installations found.
*Note*
This appears to happen in any 3.4.0 SDK and is not specific to the latest build (3.4.0.v20140909222515)
Steps To Reproduce
1. Change ti sdk to 3.3.0.GA using
ti sdk select 3.3.0.GA
2. In your projects tiapp.xml change to 3.4.0.v20140909222515
3. Attempt to build to an iOS device/simulator or package for iOS distribution by using the CLI.
Actual Result
The build will fail due to the error above.
Expected Result
There build should succeed.
This is a regression that was introduced in a recent commit that was supposed prevent TiSDK 3.3.0 apps from seeing Xcode 6. Once Xcode 6 is blocked and there are no other valid Xcodes, then it will inject the "no supported xcode installations found" issue. The build then picks that up and errors prior to the forking of the correct 3.4.0 build. The solution is most likely in the SDK by relocating the Xcode validation check after the project-dir callback.
Titanium CLI Master: https://github.com/appcelerator/titanium/pull/159 Titanium CLI 3_4_X: https://github.com/appcelerator/titanium/pull/160 To test: 1. Create an app with 3.4.0 2. Install Titanium SDK 3.3.0GA, 3.2.3.GA, 3.2.2.GA, 3.1.3.GA
ti sdk install <ver>
3. Build the app withti build -p ios -I 8.0 --sdk 3.3.0.GA
4. Repeat for the 3.2.3.GA, 3.2.2.GA, and 3.1.3.GA Every build should say "Forking correct SDK command" and will run the correct 3.4.0 build.Builds correctly with all SDK versions as described. PRs merged.
Tested and verified the described behavior using Mac osx 10.9.5 Mavericks Appcelerator Studio, build: 3.4.0.201409261245 Titanium SDK, build: 3.4.0.GA acs@1.0.18 alloy 1.5.1-rc install@0.1.7 npm@1.4.23 sudo@1.0.3 titanium 3.4.0 titanium-code-processor@1.1.1 Xcode6.1GM