Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-168] Application won't run in simulator (iPhone)

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-07-26T18:33:10.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsiOS
Labelsbuild, feature, ios, qe-testadded, xcode
Reportertom quas
AssigneeReggie Seagraves
Created2011-04-15T02:24:38.000+0000
Updated2014-07-23T21:53:04.000+0000

Description

Env: TD 0.7.0 on OS X 10.6.1

$ xcodebuild -version Xcode 3.2.1
Component versions: DevToolsCore-1614.0; DevToolsSupport-1591.0
BuildVersion: 10M2003

I created a new project for both iPhone and Android, and tried to run the plain simple code in the iPhone Simulator. This is what I got / simulator showed an empty black screen:

[INFO] Compiling JavaScript...one moment [WARN] JavaScript compiler reported "Missing semicolon." at index.js:5 [INFO] One moment, building ... [DEBUG] module library dependency detected Titanium.App [DEBUG] module library dependency detected Titanium.API [DEBUG] module library dependency detected Titanium.Network [DEBUG] module library dependency detected Titanium.Platform [DEBUG] module library dependency detected Titanium.Analytics [DEBUG] module library dependency detected Titanium.Media [DEBUG] module library dependency detected Titanium.Gesture [DEBUG] module library dependency detected Titanium.UI [INFO] Executing XCode build... [INFO] Executing XCode Compiler [toggle output] [INFO] Compile completed in 2.868 seconds [INFO] Launching application in Simulator [DEBUG] App Spec: specified by path /tmp/sd/build/iphone/build/Debug-iphonesimulator/sd.app [DEBUG] SDK Root: path=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk version=3.0 name=Simulator - iPhone OS 3.0 [INFO] Launched application in Simulator [INFO] Application has exited from Simulator

Comments

  1. tom quas 2011-04-15

    Here's the OS X console output:

    10/15/09 08:34:27 [0x0-0x571571].com.appcelerator.titanium.developer[18398] [06:34:27:126] [Titanium.API] [Information]
    10/15/09 08:34:35 [0x0-0x571571].com.appcelerator.titanium.developer[18398] [06:34:35:973] [Titanium.KEventObject] [Error] Exception caught during event callback (target=[{ addEventListener : , cloneEnvironment : , getArguments : , getEnvironment : , getExitCode : , getPID : , getStderr : , getStdin : , getStdout : , isRunning : , kill : , launch : , removeEventListener : , sendSignal : , setEnvironment : , setOnExit : , setOnRead : , setOnReadLine : , terminate : , toString : }]): { message : "Result of expression 'Titanium.Analytics.timedEvent' [undefined] is not a function.", line : 1160i, sourceId : 430437648i, sourceURL : "app://com.appcelerator.titanium.developer/modules/packaging/js/packaging.js", expressionBeginOffset : 35703i, expressionCaretOffset : 35732i, expressionEndOffset : 35850i, name : "TypeError"}

  2. Jeff Haynie 2011-04-15

    this appears to be a mismatch of Titanium 0.7 (desktop) and the latest titanium developer + titanium mobile.

    did you happen to build from head or anything like that?

  3. tom quas 2011-04-15

    I used to do that, but just to be sure I deleted all 0.7.0 directories from /Library/Application Support/Titanium/*. Right after restart of the desktop, it downloaded 0.7.0 from the cloud and also installed a new mobilesdk 0.7.1. Same misbehavior though:

    10/16/09 16:20:08 Titanium Developer[39509] *** __NSAutoreleaseNoPool(): Object 0x1bb80300 of class NSPathStore2 autoreleased with no pool in place - just leaking
    10/16/09 16:20:08 SIMBL Agent[34036] received {

       NSApplicationBundleIdentifier = "com.titaniumapp.installer.app";
       NSApplicationName = "";
       NSApplicationPath = "/Library/Application Support/Titanium/runtime/osx/0.7.0/installer/Installer App.app";
       NSApplicationProcessIdentifier = 39829;
       NSApplicationProcessSerialNumberHigh = 0;
       NSApplicationProcessSerialNumberLow = 9259220;
       NSWorkspaceApplicationKey = <NSRunningApplication: 0x11404a360 (com.titaniumapp.installer.app - 39829)>;
       

    } 10/16/09 16:20:08 SIMBL Agent[34036] warning: failed to get scripting definition from /Library/Application Support/Titanium/runtime/osx/0.7.0/installer/Installer App.app; it may not be scriptable.
    10/16/09 16:20:08 Installer App[39829] Starting URL request for https://api.appcelerator.net/p/v1/release-download?os=osx&;osver=10.0.0&tiver=0.7.0&mid=v2%3A4e962d9b%2D377e%2D4c0c%2D9e52%2D056a7a410963%7C563f4dda4aa677e029dbcb1e6995522e&aid=com.appcelerator.titanium.developer&guid=2adec37f%2De394%2D479f%2D8cbb%2Dac54209818a6&ostype=32bit&osarch=i386&name=mobilesdk&version=0.7.1&uuid=05645B49-C629-4D8F-93AF-F1CF83200E34"> https://api.appcelerator.net/p/v1/release-download?os=osx&;amp;osver...
    10/16/09 16:20:08 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] 2009-10-16 16:20:08.857 Installer App[39829:607] Starting URL request for https://api.appcelerator.net/p/v1/release-download?os=osx&;osver=10.0.0&tiver=0.7.0&mid=v2%3A4e962d9b%2D377e%2D4c0c%2D9e52%2D056a7a410963%7C563f4dda4aa677e029dbcb1e6995522e&aid=com.appcelerator.titanium.developer&guid=2adec37f%2De394%2D479f%2D8cbb%2Dac54209818a6&ostype=32bit&osarch=i386&name=mobilesdk&version=0.7.1&uuid=05645B49-C629-4D8F-93AF-F1CF83200E34"> https://api.appcelerator.net/p/v1/release-download?os=osx&;amp;osver...
    10/16/09 16:20:08 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] 2009-10-16 16:20:08.882 Installer App[39829:607] InjectEventHandler
    10/16/09 16:20:37 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] 2009-10-16 16:20:37.359 Installer App[39829:3603] Installation is complete, exiting after installing 1 files
    10/16/09 16:21:05 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:05:642] [Titanium.API] [Information]
    10/16/09 16:21:49 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:49:133] [Titanium.Host] [Notice] Received exit signal (0)
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [Fri Oct 16 16:21:50 2009] Script: '-'
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] /Users/martin/php-5.3-svn/Zend/zend_objects.c(31) : Freeing 0x054B3888 (44 bytes), script=-
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [Fri Oct 16 16:21:50 2009] Script: '-'
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] /Users/martin/php-5.3-svn/Zend/zend_objects.c(32) : Freeing 0x054B38E4 (32 bytes), script=-
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] /Users/martin/php-5.3-svn/Zend/zend_alloc.c(2412) : Actual location (location was relayed)
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] === Total 2 memory leaks detected ===
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:137] [Titanium.Host] [Notice] Unregistering: api
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:137] [Titanium.Host] [Notice] Unregistering: tiapp
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:137] [Titanium.Host] [Notice] Unregistering: tifilesystem
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:137] [Titanium.Host] [Notice] Unregistering: tiplatform
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:137] [Titanium.Host] [Notice] Unregistering: tiui
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:137] [Titanium.Host] [Notice] Unregistering: javascript
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:137] [Titanium.Host] [Notice] Unregistering: php
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:137] [Titanium.Host] [Notice] Unregistering: python
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:137] [Titanium.Host] [Notice] Unregistering: ruby
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:137] [Titanium.Host] [Notice] Unregistering: ticodec
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:137] [Titanium.Host] [Notice] Unregistering: tidatabase
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:137] [Titanium.Host] [Notice] Unregistering: tidesktop
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:137] [Titanium.Host] [Notice] Unregistering: tigrowl
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:137] [Titanium.Host] [Notice] Unregistering: timedia
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:137] [Titanium.Host] [Notice] Unregistering: timonkey
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:137] [Titanium.Host] [Notice] Unregistering: tinetwork
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:138] [Titanium.Host] [Notice] Unregistering: tiprocess
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:138] [Titanium.Host] [Notice] Unregistering: tiworker
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:138] [Titanium.Host] [Notice] Unregistering: tianalytics
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:138] [Titanium.Host] [Notice] Unregistering: tinetwork
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:138] [Titanium.Host] [Notice] Unregistering: tinotification
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:138] [Titanium.Host] [Notice] Unregistering: tiprocess
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:138] [Titanium.Host] [Notice] Unregistering: tiworker
    10/16/09 16:21:50 [0x0-0x8cd8cd].com.appcelerator.titanium.developer[39509] [14:21:50:138] [Titanium.Host] [Notice] Exiting with exit code: 0
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:499] [Titanium.Host] [Information] Loaded module = api
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:505] [Titanium.Host] [Information] Loaded module = tiapp
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:509] [Titanium.Host] [Information] Loaded module = tifilesystem
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:516] [Titanium.Host] [Information] Loaded module = tiplatform
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:558] [Titanium.Host] [Information] Loaded module = tiui
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:559] [Titanium.Host] [Information] Loaded module = javascript
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:628] [Titanium.Host] [Information] Loaded module = php
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:659] [Titanium.Host] [Information] Loaded module = python
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:669] [Titanium.Host] [Information] Loaded module = ruby
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:673] [Titanium.Host] [Information] Loaded module = ticodec
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:678] [Titanium.Host] [Information] Loaded module = tidatabase
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:683] [Titanium.Host] [Information] Loaded module = tidesktop
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:812] [Titanium.Host] [Information] Loaded module = tigrowl
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:816] [Titanium.Host] [Information] Loaded module = timedia
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:821] [Titanium.Host] [Information] Loaded module = timonkey
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:826] [Titanium.Host] [Information] Loaded module = tinetwork
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:834] [Titanium.Host] [Information] Loaded module = tiprocess
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:842] [Titanium.Host] [Information] Loaded module = tiworker
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:842] [Titanium.Javascript] [Information] Loading JS path=/Library/Application Support/Titanium/modules/osx/tianalytics/0.7.0/tianalyticsmodule.js
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:859] [Titanium.Host] [Information] Loaded module = tianalytics
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:859] [Titanium.Javascript] [Information] Loading JS path=/Library/Application Support/Titanium/modules/osx/tinetwork/0.7.0/tinetworkmodule.js
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:862] [Titanium.Host] [Information] Loaded module = tinetwork
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:862] [Titanium.Javascript] [Information] Loading JS path=/Library/Application Support/Titanium/modules/osx/tinotification/0.7.0/tinotificationmodule.js
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:863] [Titanium.Host] [Information] Loaded module = tinotification
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:863] [Titanium.Javascript] [Information] Loading JS path=/Library/Application Support/Titanium/modules/osx/tiprocess/0.7.0/tiprocessmodule.js
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:864] [Titanium.Host] [Information] Loaded module = tiprocess
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:864] [Titanium.Javascript] [Information] Loading JS path=/Library/Application Support/Titanium/modules/osx/tiworker/0.7.0/tiworkermodule.js
    10/16/09 16:21:53 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:21:53:865] [Titanium.Host] [Information] Loaded module = tiworker
    10/16/09 16:21:54 SIMBL Agent[34036] received {

       NSApplicationBundleIdentifier = "com.appcelerator.titanium.developer";
       NSApplicationName = "Titanium Developer";
       NSApplicationPath = "/Applications/Titanium Developer.app";
       NSApplicationProcessIdentifier = 39869;
       NSApplicationProcessSerialNumberHigh = 0;
       NSApplicationProcessSerialNumberLow = 9263317;
       NSWorkspaceApplicationKey = <NSRunningApplication: 0x1003bd460 (com.appcelerator.titanium.developer - 39869)>;
       

    } 10/16/09 16:21:54 SIMBL Agent[34036] warning: failed to get scripting definition from /Applications/Titanium Developer.app; it may not be scriptable.
    10/16/09 16:21:54 Titanium Developer[39869] Performance: Please update this scripting addition to supply a value for ThreadSafe for each event handler: "/Library/ScriptingAdditions/SIMBL.osax"
    10/16/09 16:21:54 Titanium Developer[39869] InjectEventHandler
    10/16/09 16:22:05 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:22:05:637] [Titanium.API] [Information]
    10/16/09 16:22:10 [0x0-0x8d58d5].com.appcelerator.titanium.developer[39869] [14:22:10:711] [Titanium.API] [Information]

  4. tom quas 2011-04-15

    Holy cow, I figured out what the problem was: in XCode, I usually choose to place my build products at customized location (XCode: Cmd+, > Buidling), not the project folder, because I'm using encrypted disk images to keep my sources. The problem seems to be that TD expects the build products to be located under the project folder:

    [DEBUG] App Spec: specified by path /Volumes/em/xyz/build/iphone/build/Debug-iphonesimulator/xyz.app

    when my build setup really puts them under /tmp/buid/iphone/build/Debug-iphonesimulator/xyz.app.

    Is there a way for you to fix this?

  5. tom quas 2011-04-15

    I'm reviving this issue giving it a new name. I'd love to see this solved for the reasons I described in my previous comment.

  6. Stephen Tramer 2011-04-15

    Low-priority iOS feature.

  7. Vikramjeet Singh 2011-07-26

    Bug Scrub: Invalid. Test Case exists Issue Resolved/Fixed and hence is not valid, does not reproduce in:TiMOB sdk version 1.7.2 Studio version 1.0.2 OS version Mac OSX Lion Devices tested on – iPhone 4.2.9

JSON Source