Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Titanium CLI error in building for app-store

I'm using the open source Titanium CLI for updating an app that's currently in the Apple app store. It builds and runs in the simulator without any problems using the command

ti build -p ios

When I try to build for the app store I use the command

ti build -p ios -T dist-appstore -R <company> -P <distribution certificate>

and get an error message

[ERROR] titanium_prep failed to run (10) [ERROR] This application cannot be built with the Titanium open source SDK because it is an Appcelerator Platform registered application. Please use the Appcelerator Platform CLI tools or Appcelerator Studio to build this application.

I've unregistered the application with the Appcelerator Platform, but it hasn't corrected the problem. I'm using Titanium Command-Line Interface, CLI version 5.0.6, Titanium SDK version 6.0.0.v20160131225447 and Node version 0.12.7. Any help resolving this would be greatly appreciated.

like image 503
KerryS Avatar asked Sep 15 '25 02:09

KerryS


2 Answers

There is a migration guide at https://github.com/m1ga/from_zero_to_app/blob/master/appc_to_ti.md

It seems you need to use a GUID that is not registered with appcelerator in the tiapp.xml.

It's also worth removing any <appc-...> or <property name="appc-..."> references to appcelerator services that will be turned off, and set <analytics>false</analytics>

like image 79
Mark Avatar answered Sep 16 '25 17:09

Mark


I'm on a Mac with node 0.12 and I was having the same issue with Titanium SDK 5.X.X, but I have changed it to 4.X.X and now I can compile without errors.

I hope you don't need Titanium SDK 5.X.X. or 6.X.X to make your code run...

like image 31
gabrielperales Avatar answered Sep 16 '25 16:09

gabrielperales