New App won't run in Simulator - 2.1.3

You must Login before you can answer or comment on any questions.

I installed 2.1.3 and am running Xcode 4.5. When I setup a new project with all defaults, Titanium will build and launch the app, then I get a message Application has exited from Simulator. In debug it says exit value: 0. Any ideas? Also, it seems to compile and run the Kitchen Sink app, but not a new one from scratch...

3 Answers

Accepted Answer

Check out the release notes and be sure that the min ios version section applies to your new project.

— answered 8 months ago by Anthony Decena
answer permalink
2 Comments
  • Anthony, please see my comments below. Any other help?

    — commented 8 months ago by Stephen Flournoy

  • This solved the problem: I deleted the folder "/Library/Application\ Support/iPhone\ Simulator" in my user directory. Started the simulator again and it started right up.

    — commented 8 months ago by Stephen Flournoy

I wish it were that simple... didn't seem to do anything.

Titanium team? There is no "new" code... just default file new app from mobile project.. Frustrating.

— answered 8 months ago by Stephen Flournoy
answer permalink
2 Comments
  • 1 learn to use comments vs answers, it keeps the forum clean

    2 Titanium team? Um, what is Anthony, chopped liver?

    3 did you actually try to edit the tiapp.xml as suggested in the release notes?

    — commented 8 months ago by Stephen Feather

  • Sorry, wasn't trying to offend Anthony... I wasn't paying attention to the icon. I did indeed edit the tiapp.xm. In fact I've discovered something. I looked at the tiapp.xml file from another app that IS compiling and created an exact duplicate. Titanium continued to fail to install UNTIL I changed the name of the app in the <name> tag to match exactly the name of the other app. I'm also including my tiapp.xml and the log error. Thanks for looking.

    <?xml version="1.0" encoding="UTF-8"?>
    <ti:app xmlns:ti="http://ti.appcelerator.org">
        <property name="acs-oauth-secret-production" type="string">489x8kuSq6zTz8PhbewQTzJlPYt4xWEK</property>
        <property name="acs-oauth-key-production" type="string">WCJwGkCcT6g30VYC7IR63IPSWybriBfu</property>
        <property name="acs-api-key-production" type="string">zeNAJbq2sszUH6MM8jBlbonA86p2By7Q</property>
        <property name="acs-oauth-secret-development" type="string">tXt7wJwZSLDePtWu4sl28kwqF0p2HZKr</property>
        <property name="acs-oauth-key-development" type="string">YWNfSKB0sygIBmu2ZU0eIysQUuzHneiA</property>
        <property name="acs-api-key-development" type="string">DpGTICBso9LZJcRkwCziAMRDbcaJQFlp</property>
        <deployment-targets>
            <target device="mobileweb">false</target>
            <target device="iphone">false</target>
            <target device="ipad">true</target>
            <target device="android">false</target>
            <target device="blackberry">false</target>
        </deployment-targets>
        <sdk-version>2.1.3.GA</sdk-version>
        <ios>
        <min-ios-ver>4.3</min-ios-ver>
        </ios>
        <id>com.flournoy</id>
        <name>NewTest1</name>
        <version>1.0</version>
        <publisher>stephen</publisher>
        <url>http://www.imap4you.com</url>
        <description>not specified</description>
        <copyright>2012 by stephen</copyright>
        <icon>appicon.png</icon>
        <persistent-wifi>false</persistent-wifi>
        <prerendered-icon>false</prerendered-icon>
        <statusbar-style>default</statusbar-style>
        <statusbar-hidden>false</statusbar-hidden>
        <fullscreen>false</fullscreen>
        <navbar-hidden>false</navbar-hidden>
        <analytics>true</analytics>
        <guid>afe633db-f088-433e-8000-2a42415c11e3</guid>
        <property name="ti.ui.defaultunit">system</property>
        <iphone>
            <orientations device="iphone">
                <orientation>Ti.UI.PORTRAIT</orientation>
            </orientations>
            <orientations device="ipad">
                <orientation>Ti.UI.PORTRAIT</orientation>
                <orientation>Ti.UI.UPSIDE_PORTRAIT</orientation>
                <orientation>Ti.UI.LANDSCAPE_LEFT</orientation>
                <orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>
            </orientations>
        </iphone>
        <android xmlns:android="http://schemas.android.com/apk/res/android"/>
        <mobileweb>
            <precache/>
            <splash>
                <enabled>true</enabled>
                <inline-css-images>true</inline-css-images>
            </splash>
            <theme>default</theme>
        </mobileweb>
        <modules>
            <module platform="commonjs" version="2.0.5">ti.cloud</module>
            <module platform="iphone" version="1.9">com.0x82.dropbox</module>
        </modules>
    </ti:app>
    [INFO] Minimum iOS version: 4.3 Linked iOS Version 6.0
    [INFO] Performing clean build
    [DEBUG] executing command: /usr/bin/killall ios-sim
    [DEBUG] No matching processes belonging to you were found
    [DEBUG] executing command: /usr/bin/killall iPhone Simulator
    [DEBUG] No matching processes belonging to you were found
    [DEBUG] finding old log files
    [DEBUG] executing command: mdutil -a -s
    [DEBUG] /:
    [DEBUG] Indexing enabled.
    [DEBUG] /Volumes/4TB BigDisk:
    [DEBUG] Indexing enabled.
    [DEBUG] /Volumes/500GB external:
    [DEBUG] Indexing enabled.
    [DEBUG] /Volumes/500GB external/Backups.backupdb:
    [DEBUG] Indexing enabled.
    [DEBUG] /Volumes/RAIDSET:
    [DEBUG] Indexing enabled.
    [DEBUG] /Volumes/RAIDSET/.MobileBackups:
    [DEBUG] No index.
    [DEBUG] /Volumes/Titanium Studio:
    [DEBUG] Indexing disabled.
    [DEBUG] Searching for old log files with mdfind...
    [DEBUG] executing command: mdfind -onlyin /Users/stephen/Library/Application Support/iPhone Simulator/6.0 -name afe633db-f088-433e-8000-2a42415c11e3.log
    [INFO] Launching application in Simulator
    [DEBUG] Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=1 "iOS Simulator failed to install the application." UserInfo=0x10310c9a0 {NSLocalizedDescription=iOS Simulator failed to install the application., DTiPhoneSimulatorUnderlyingErrorCodeKey=-1}
    [INFO] Launched application in Simulator (16.62 seconds)
    [INFO] Application has exited from Simulator

    — commented 8 months ago by Stephen Flournoy

Stephen Flournoy's solution mentioned in a comment to the accepted solution worked for me. Just delete the iPhone Simulator directory in Library/Application support. I did get a funny error message first, but that didn't stop the app from running.

My problem occurred after importing a new project via Subversion that was very similar to the version I had been testing on my own installation of Titanium.

The error was: Titanium Code=1 &quot;OS Simulator failed to install the application.

Your Answer

Think you can help? Login to answer this question!