couldn't find module alloy/sync/util - titanium

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

Related

Multidex support issue in Appcelerator after Appcelerator studio update

Hi I have a project in Appcelerator android. Everything was working fine until I update Appcelerator studio yesterday. The update was for titanium SDK and SDK got updated to 7.5.1.GA, the previous SDK which was working fine was 7.5.0.GA. Now when I try to run on either SDK it fails to launch the application after Multidex log in console.
The log is as follows :
MultiDex: VM with version 2.1.0 has multidex support
[INFO] : MultiDex: Installing application
[INFO] : MultiDex: VM has multidex support, MultiDex support library is disabled.

Titanium Build Project returns: Application Installer abnormal process termination. Process exit value was 1

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.

Application does not exist in iOS simulator - Titanium Alloy

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

Why iPhone/iPad simulator is not launching in Titanium?

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

Upgrading Titanium Android Module from 1.7.5 to 1.8.0.1

I already created a Titanium Android module for C2DM Push notifications in Titanium version 1.7.5. Recently I have upgraded my Titanium studio to 1.8.0.1, when I try to run the module I created, the build quits by saying following error message
[DEBUG] Looking for Titanium Module id: com.xxx.yyyy.zzzz, version: 0.1, platform: android
[DEBUG] module_id = com.xxx.yyyy.zzzz
[ERROR] The 'apiversion' for 'com.xxx.yyyy.zzzz' in the module manifest is not a valid value. Please use a version of the module that has an 'apiversion' value of 2 or greater set in it's manifest file
=================
Thanks
I got worked on Android.
apiversion: 2
to be added on the manifest file. For further more reference check this URL.