Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2178] iOS: Script Error: Can't find variable: OS_IOS

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-04-19T23:17:58.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy, Titanium SDK & CLI
Labelsn/a
ReporterSuresh Bsub
AssigneeMauro Parra-Miranda
Created2013-04-18T08:49:40.000+0000
Updated2016-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] :  }

Comments

  1. Daniel Sefton 2013-04-19

    {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.

JSON Source