Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13826] iOS: ti.cloud not found in iOS 6 and iOS 5

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-06-11T20:49:49.000+0000
Affected Version/sRelease 3.1.0
Fix Version/sn/a
ComponentsiOS
LabelsSupportTeam, triage
ReporterMauro Parra-Miranda
AssigneeIngo Muschenetz
Created2013-05-10T19:03:54.000+0000
Updated2017-03-20T16:43:40.000+0000

Description

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');

Comments

  1. Eric Merriman 2013-05-10

    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: "ti.cloud" What is the install location of the SDK/Module folders? /Library/Application Support or ~/Library/Application Support?
  2. Ingo Muschenetz 2013-06-10

    [~mpmiranda] Can you please attach a iOS build log with trace-level logging enabled?
  3. Sabil Rahim 2013-06-11

    Tired with different versions of xcode sdk's 5.1, 6.0 and 6.1 could not reproduce the issue.
  4. Sabil Rahim 2013-06-11

    [~mpmiranda] Please provide some logs and some details on the environment that you where running into this issue
  5. Lee Morris 2017-03-20

    Closing ticket as the issue cannot be reproduced.

JSON Source