How can I view all information about my Titanium and Alloy install inside the console - titanium

How can I log all system information about Titanium and Alloy configuration and all other information about the current build, version numbers etc?
I'm looking for something similar to PHP's phpinfo.

You can log it using the methods mentioned from #daniula and #Wahhas_mirza. But you can use the command line tools if needed to display information that relates to Alloy and Titanium.
If you open the Terminal Window, enter the keyword alloy, you will then see the usage for the command.
alloy
To view what version of alloy your project is using enter:
alloy -version
For Titanium related information use the keyword ti
ti
which then displays the usage for:
Titanium Command-Line Interface
As an example: ti info will display all relevant information that pertains to your Titanium setup
I hope this helps.

There is nothing like phpinfo() in Titanium. If you really want to print all information about your platform you can try something like this:
for (var i in Titanium.Platform) {
if Titanium.Platform.hasOwnProperty(i) {
Ti.API.info(i + ': ' + Titanium.Platform[i]);
}
}

Start a terminal session in studio ( or switch to app's directory in a console). Type ti info. You'll get output similar to the following
Titanium Command-Line Interface, CLI version 3.2.3, Titanium SDK version 3.2.3.GA
Copyright (c) 2012-2014, Appcelerator, Inc. All Rights Reserved.
Please report bugs to http://jira.appcelerator.org/
Operating System
Name = Mac OS X
Version = 10.9.3
Architecture = 64bit
# CPUs = 8
Memory = 8.0GB
Node.js
Node.js Version = 0.10.28
npm Version = 1.4.9
Titanium CLI
CLI Version = 3.2.3
node-appc Version = 0.2.1
Additionally, you'll get a list of all your simulator/emulator configurations, certificates, provisioning profiles and any config errors (if any).

Here you go
Ti.API.info('I want to show the data in console');
Thanks

Related

Titanium [ERROR] Application Installer abnormal process termination

I am trying to run default example apps in titanium studio, but I am getting error.
I installed jdk1.6.0_45, jre1.6.0 and set the properties of Environment Variables too.
what was the problem, any suggetions?
[ERROR] Application Installer abnormal process termination. Process exit value was 1
Have you installed all required Android SDKs? If you are using latest Titanium SDK, you need to install Android SDK 2.3.3 (API 10). Check more details in Installing the Android SDK guid in Titanium documentation.
If this won't help set console log level to trace and update question with full error log.
For Windows, the 32-bit version of Java JDK is required regardless of whether Titanium is running on a 32-bit or 64-bit system.
http://docs.appcelerator.com/titanium/latest/#!/guide/Quick_Start

I have Installed the Titanium studio.Ink In Windows from appcelerator website but unable to run app like Kitchen sink?

I have also tried to install Android sdk & updates but its end up showing that java jdk not installed as I have Installed the JDK earlier
and In the Console Part-->
Titanium Command-Line Interface,CLI version 3.1.1,Titanium SDK version 3.1.1.GA
Copyright (c) 2012-2013,Appcelerator,Inc. All Rights Reserved.
[ERROR] : "Missing Java SDK.Please make sure Java SDK is on your PATH
What To DO !!
Check whether java is in your path. If not install JDK and JRE and try once again
This is the method to set environmental variables and plz make sure that you are using javasdk 1.6 instead of 1.7
http://java.com/en/download/help/path.xml
Thanks

Facing 'Unable to locate the CLI executable' on Windows

I just installed Titanium and I'm not really familiar with this IDE. I added Android SDK to start my first application and everything looks cool until I tried to see my application in Android Emulator. I'm getting Unable to locate the CLI executable. Please restart Studio or use Help > Check for Titanium Updates to install Titanium CLI. and Check for Titanium Updates Says No Titanium updates available. and restarting the studio multiple times didn't work too. I cannot even preview my application in web browser. What am I doing wrong?
I'm using Titanium Studio, build: 3.1.0.201304151600 on Windows Server 2008 R2 Everything is up to date Node.js, Android SDKs, etc. I'm trying to create a web-based application frt Android 2.2+ and mobile web.
Farid,
There are several things you can try.
1.Type titanium in your command line and hit enter.If it gives 'not recognised as an internal or external command',it means Titanium package is not properly installed.
2.Try uninstalling just the Titanium node.js package using npm titanium uninstall command.
3.Once uninstalled,open Titanium studio.It will prompt you for installing Titanium CLI.Follow the steps and install Titanium CLI.
4.If these steps do not work,then uninstall node and install everything from the studio itself,rather than from the command line.
Sometimes installing Titanium CLI from command line fails.
EDIT:Before you try all this type node in your command prompt and see if node command is being recognised.If it is not you will have to set it to the PATH variable.
Thanks to 'Mukund Samant' with useful workarounds, I managed to fix this problem [although I faced another problem] by removing node.js and installing an older version (0.8.22) and then installing node.acs package manually by runnig this command: npm -g install acs. Now Titanium won't give me any errors or update messages on startup.
Note that I found out I have to run Titanium Studio as Administrator!

how to find the exact version of the installed AIR SDK

The AIR SDK is usually only referenced by major and minor version number, but there are important differences in the numbers way to the right.
How can I inspect my installed SDK and know for certain which exact version it is?
If you're on Windows:
Navigate to the location of the AIR SDK.
Open the /bin/ subdirectory. You should see a file named adl.exe.
Right-click on adl.exe and select Properties from the context menu.
In the Properties dialog, click the Details tab.
The Details tab contains a property named "File Version" with a value that shows the full version of the AIR SDK (e.g., 3.5.0.1060).
If you're on a Mac (or on Windows), you could just create a bare-bones AIR app and add this line of ActionScript:
trace(NativeApplication.nativeApplication.runtimeVersion);
When you test the file in your IDE of choice, you should see the full AIR SDK version in your IDE's output panel.
Mac OS X
Open the /Library/Frameworks/Adobe AIR.framework/Versions/1.0/Resources/Info.plist text file and locate the CFBundleVersionentry. The corresponding string entry represents the version of AIR, for example:
CFBundleVersion
26.0.0.127
https://helpx.adobe.com/air/kb/determine-version-air-runtime.html
For the most definitive answer, directly ask AIR SDK what version it is (adt.jar is the AIR SDK's packager):
java -jar C:\air_sdk\lib\adt.jar -version
Which prints the full version number:
3.9.0.1030
How to find the adt.jar file on your system? Often you'll have an environment variable set pointing to your AIR SDK, such as AIR_HOME or AIR_SDK_FOLDER, so you can use that in your command:
Windows:
java -jar %AIR_SDK_FOLDER%\lib\adt.jar -version
Or on a Mac / Linux:
java -jar $AIR_SDK_FOLDER/lib/adt.jar -version
From Mac
Write the following console command to check the current version of Adobe AIR SDK:
%AIR_SDK_FOLDER%/bin/adl -version
Correction to the above, it's adt, not adl to spew the version number to the commandline on Mac (and probably Windows too).
So:
%AIR_SDK_FOLDER%/bin/adt -version

Adobe Air 1.5.2 and Flash Builder

Recently I'm working on some air stuff, and I am using Flash Builder and latest Nightly build SDK in order to compile my application ( I even used stable version before this stage ), but when ever I export the final air file from the Flash Builder, the air file giving me this error message :
The application could not be installed because the AIR file is damaged. Try obtaining a new AIR file from the application author.
I wounder what's wrong about my file?! I even changed the namespace to other versions like 1.5.1 and 1.5 but none of them will do the trick! Any one has any idea?!
If you try logging the application install it might give you more info and troubleshooting information - http://kb2.adobe.com/cps/403/kb403123.html
=Ryan
ryan#adobe.com