I downloaded Titanium and installed. As instructed in quick guide, I created Hello World Project. I run the project. Looks everything going well. Last few line in console:
[INFO] : Running application in iOS Simulator
[INFO] : Launching application in iOS Simulator
[INFO] : Focusing the iOS Simulator [
[INFO] : Application has exited from iOS Simulator
[INFO] : Project built successfully in 37s 420ms
However, the simulator doesn't launched. What went wrong?
try to clean build project and delete app if installed in simulator then try again.
try this 3-4 times because sometimes it creates problem as you got.
and also try to build app with different titanium sdks as well.
Fixed after upgrading to Mac to 10.8
Related
I'm moving to a new machine and want to start out fresh. I'm leaving Appcelerator Studio behind and want to go all CLI.
The project I'm working on is still on SDK 5.5.1.
When I try to build our app for the iPhone simulator it builds fine and launches the simulator but when it tries to start the app the simulator goes black execpt for the status bar. No errors are thrown in the terminal and nothing interesting shows up in console.app
I can launch the app in the simulator on my old machine without issues (done it 1000 times or so).
I build with: appc run -p ios
This is the last output I get:
[INFO] Launching iOS Simulator
-- Start simulator log -------------------------------------------------------
[INFO] Application started
[INFO] OurAppName/2.8.1 (5.5.1.b18727f)
This is my setup:
Appcelerator Command-Line Interface, version 5.5.1
2017-02-08 14:54:46
Name = Mac OS X
Xcode 8.1
Version = 10.12.3
Node.js Version = 4.7.3
npm Version = 2.15.11
Titanium CLI Version = 5.0.9
Titanium SDK Version = 5.5.1.GA
SDK Path = /Users/-/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA
Target Platform = iphone
What am I missing?
You could try building on a specific simulator
run
appc run -p iOS --device-id
it will prompt you with all the devices available and you can choose among the list (choose an iOS 9 simulator, it looks like the problem is with the iOS 10 simulator)
Not sure if it helps, but we're using Titanium SDK 5.4.0, and so far still using Xcode 7. For another project, using Titanium 6 we are using Xcode 8.
We experienced some issues in communication between Studio/CLI and Xcode/Simulator.
if you are using Xcode 8.1 then you can use the following command
appc ti build -p ios -I 10.1
where -p is platform and -I is IOS version
if you want to check IOS version
Step 1: Go to Xcode
Step 2: Window -> Devices.
please see the image it will clear all things.
It worked for me.
i am new in titanium development environment, i have just installed titanium, nodejs and android framework on my pc. everything is fine but when i am trying to run my project it's giving me this log :-
Titanium Command-Line Interface, CLI version 3.2.1, Titanium SDK version 3.2.2.GA
Copyright (c) 2012-2014, Appcelerator, Inc. All Rights Reserved.
Please report bugs to http://jira.appcelerator.org/
[INFO] : Deploy type: development
[INFO] : Building for target: emulator
[INFO] : Building for emulator: Nexus 7
[INFO] : Targeting Android SDK: 19
[INFO] : Building for the following architectures: armeabi, armeabi-v7a, x86
[INFO] : Signing with keystore: C:\Users\adnig\AppData\Roaming\Titanium\mobilesdk\win32\3.2.2.GA\android\dev_keystore (tidev)
[INFO] : Debugging disabled
[INFO] : Profiler disabled
[INFO] : Forcing rebuild: C:\Users\adnig\Documents\Titanium_Studio_Workspace\Work\build\android\build-manifest.json does not exist
[INFO] : Launching emulator: Nexus 7
[INFO] : Running: C:\Users\adnig\Downloads\Compressed\adt-bundle-windows-x86-20140321\adt-bundle-windows-x86-20140321\sdk\tools\emulator.exe "-avd" "Nexus 7" "-port" "5554" "-no-boot-anim" "-partition-size" "128"
[ERROR] Application Installer abnormal process termination. Process exit value was 1
i don't know what's this problem is all about.
Check if you installed required Android SDKs.
In your case you need to install Android SDK 19 or change it in tiapp.xml file.
In my experience with Titanium , the " Application Installer abnormal process termination. Process exit value was 1 " error is the most common error and it does not point to something specific. Basically everything that makes your app / emulator crash or close will throw up that error. Common errors that cause this are :
-A faulty setup of the SDK
-An error in your Code
-Mismatch between The titanium IDE version in your tiapp.xml file and your actual titanium version.
-An error in your emulator
Also note that the default emulator is too slow.
What I would do in your situation :
-Check the status of your SDK by going to Dashboard, and scroll down to setup native sdk's. Make sure that the environment you are deploying to is shown as green !
-Use a real device to test, or use genymotion as emulator (it's super fast !)
-Set up a new project (file -> new project -> mobile application project -> 2 tabbed alloy , fill in the details) with sample code and see if it runs.
CLI version 3.2.0, Titanium SDK version 3.1.3.GA
the app runs fine in simulator but on device i get an error at start up
couldn't find module alloy/sync/util
error is correct as in build logs and on alloy directory i do not see util.js
i only see
[INFO] : - alloy/sync/localStorage.js
[INFO] : - alloy/sync/properties.js
[INFO] : - alloy/sync/sql.js
before upgrade of titanium studio the app worked fine on device
can some one tell me where did the util.js file go ? or i have add reference to that file ?
and yes my app is using migrations
I am a newbie of Titanium. I created a Titanium Alloy project, and run it in iPhone simulator. And it builds successfully:
....
[INFO] : Finished building the application in 1s 881ms
[INFO] : Running application in iOS Simulator
[INFO] : Launching application in iOS Simulator
[INFO] : Focusing the iOS Simulator
[INFO] : Application has exited from iOS Simulator
[INFO] : Project built successfully in 2s 645ms
But when I open iOS simulator, the application does not exist.
Note: I already put the link to the correct path of iOS SDK.
Can you help me figure out, how to solve this problem?
Doing the following could solve your problem
1)Reset the iOS simulator
2)Delete the Old build
3)Give the project clean build
Thanks
I am using Titanium Studio, build: 3.1.3.201309132423, Titanium Mobile 3.1.3.GA SDK and iOS7 SDK
My console has been acting weird where when I compile, I get this message:
[ERROR] : An error occurred running the iOS Simulator
[ERROR] : [DEBUG] using retina iphone retina tall ios 7
[ERROR] :
[ERROR] : Project failed to build after 21s 326ms
Yet the project did build and compile and launch in the emulator just fine. The problem with this is now any of my debugging properties that I output to the console, I cannot see because Titanium Studio thinks the app never ran so it isn't listening anymore.
I did notice that after I build and compile again, I can see all my previous debug statements in the console. It's like the console is one build behind or something. Is anyone else have weird issues like this?