Problem Description
When you try to use/add ti.cloud in a program running in iOS 5 or iOS6, you will get an "ti.cloud not found".
Steps to reproduce
1. Create a new mobile project.
2. Add this to app.js:
var Cloud = require('ti.cloud');
3. Run the app.
Actual results
if you run this in iOS 6.1, will work just fine. IF you try this in iOS 6 or iOS 5, you will get:
[DEBUG] Loading: /Users/francesco/Library/Application Support/iPhone Simulator/5.1/Applications/4ACA0555-BF89-47DA-BC10-07EF53D8EA93/Cambi Aste.app/ti.cloud.js, Resource: ti_cloud_js
[ERROR] Script Error Couldn't find module: ti.cloud on boot
Extra info
http://developer.appcelerator.com/question/151843/problem-with-ticloud-sdk-310-and-ios-51
Workaround
Solved the issue by:
Installing the ti.cloud module into the project from
https://github.com/appcelerator-modules/ti.cloud/blob/master/commonjs/ti.cloud-commonjs-2.3.3.zip?raw=true
symbolically linking ti.cloud.js into Resources/ui/module/ (cd Resources/ui/module ; ln -sf ../../../modules/commonjs/ti.cloud/2.3.3/ti.cloud.js)
initializing it as var Cloud = require('ui/module/ti.cloud');
I am unable to reproduce this. A few questions: What is the active SDK set to? (Use "ti sdk" in terminal, and look for the "active" label) Set this via "ti sdk select" Was the app created with "cloud enabled" via Studio? - You can set on the tiapp.xml editor Does the tiapp.xml contain the appropriate entry for the module? See in either the tiapp.xml editor overview or the xml view of same. Look for: "
[~mpmiranda] Can you please attach a iOS build log with trace-level logging enabled?
Tired with different versions of xcode sdk's 5.1, 6.0 and 6.1 could not reproduce the issue.
[~mpmiranda] Please provide some logs and some details on the environment that you where running into this issue
Closing ticket as the issue cannot be reproduced.