Titanium SDK 3.2 [ERROR] : Invalid “--ios-version”

2020-07-16 12:11发布

问题:

When I upgraded to titanium SDK version 3.2, I had an error when running on iOS says: titanium Invalid "--ios-version" value "7.0" Accepted values: 7.0.3, is there any possible way to solve this ?

回答1:

I had the same issue. I were able to solve it by changing the tiapp.xml node changed

<sdk-version>3.1.3.GA</sdk-version>

to

<sdk-version>3.2.0.GA</sdk-version>

Hope this helps



回答2:

minimum iOS version to work with Ti sdk 3.2.0 is 7 so you need to set iOS version to 7.

you can do that by right clicking on your project root folder then choose Run As-> Run Configuration option where you can set ios sdk.



回答3:

Not really a fix. I have changed my project's sdk version to 3.2.0.GA (updated) then build my application via cli and execute the following command on the project directory:

titanium build --platform ios --ios-version 7.0.3

App build successfully (no errors encountered) and it opens the iOS simulator v7.0.3.


Update: Issue no longer encountered after updating titanium-studio to 3.2



回答4:

Same issue.

Work fine with ti SDK 3.2.0

  • Ti SDK : 3.1.3.GA
  • Ti: 3.2.0
  • Alloy: 1.4.0 or 1.3.0
  • OS: mac os x 10.9.1


回答5:

Same issue here. Problem seems to be solved when building with the 3.2.0 SDK, however then other issues emerge.



回答6:

I figured this out by just loading the xcode project from the 'build' folder and seeing the actual error that xcode was throwing. it told me that I had a 'module' that no longer supported 'NavigationGroup' class. I also installed the latest xcode updates and the latest Ti.Studio.



回答7:

You need to change your sdk version in order to make it work with 7.0.3. From the console:

ti sdk select 3.2.0.GA

You can find more info in the CLI documentation

Also make sure you update your tiapp.xml file as @Anand suggested



回答8:

An update for Titanium SDK 3.1.3 has been released, the thing is 3.1.3 only supported up to iOS simulator 7.0, but now Appcelerator added support for 7.0.3.



回答9:

Open ti.xml file Under Build Properties, find the Titanium SDK field. Select 3.2.0.GA

If it is not an option, go to menu option Help > Check for Titanium Updates