[AC-2178] iOS: Script Error: Can't find variable: OS_IOS
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2013-04-19T23:17:58.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy, Titanium SDK & CLI |
Labels | n/a |
Reporter | Suresh Bsub |
Assignee | Mauro Parra-Miranda |
Created | 2013-04-18T08:49:40.000+0000 |
Updated | 2016-03-08T07:41:10.000+0000 |
Description
Steps to duplicate:
1) Create new iPhone ios project in Titanium studio
2) Use "popIn" (Alloy.builtins.animation) and animate any window or view
3) Run in iOS Simulator
It throws the below error, during runtime when it tries to do the animation.
*Log*
[ERROR] : Script Error {
[ERROR] : backtrace = "#0 animateTestWindow() at file://localhost/Users/iosdev1/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/CCB13CF0-8E62-4C77-BB5C-1E7E48516612/TestApp.app/alloy/controllers/index.js:5";
[ERROR] : line = 105;
[ERROR] : message = "Can't find variable: OS_IOS";
[ERROR] : name = ReferenceError;
[ERROR] : sourceId = 283940352;
[ERROR] : sourceURL = "file://localhost/Users/iosdev1/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/CCB13CF0-8E62-4C77-BB5C-1E7E48516612/TestApp.app/alloy/animation.js";
[ERROR] : }
{quote}"Use "popIn" (Alloy.builtins.animation) and animate any window or view"{quote} If that requires code, please provide a test case we can drop into a project and run. Thanks.