5 Replies Latest reply on Jan 27, 2014 8:52 AM by Michael Crocker

    "failed to install" app in iOS simulator, but works fine in Rho simulator

    Michael Crocker

      I am testing a Rhodes app an a Mac (OSX 10.9, Rhodes 3.5.1.12), and it runs fine in the Rho Simulator.  However, when I try to run the app in the iPhone Simulator (6.1), it doesn't run.  The app icon shows up, and if I click to run that way, it tries to run but crashes on init. 


      The most promising message I found on the command line was:

       

      [DEBUG] Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=1 "iOS Simulator failed to install the application." UserInfo=0x100138800 {NSLocalizedDescription=iOS Simulator failed to install the application., DTiPhoneSimulatorUnderlyingErrorCodeKey=-1}

       

      However, this did not make sense to me, since the app does seem to be copied to the simulator directory (~/Library/Application Support/iPhone Simulator/6.1/Applications/{guid}/).  Also, the iPhone simulator still comes up, and the app icon is present and does attempt to run. 


      I looked at the system log and crash report (rho log had nothing in it), and what I found didn't help.  The crash report shows the app raising method_missing during RhoRubyInitApp.  


      I created a new Rhodes app with minimal code (single Rhodes model), but the same thing happens: it works fine in the Rho Simulator but crashes in the iPhone Simulator. 


      Has anyone experienced anything similar?  I have included the relevant parts of the system log and crash report below.  Also, I am building and running from the command line, if that matters. 


      ----------------------  system log ----------------------


       

      n 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: didFinishLaunchingWithOptions: (null)

       

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: Rhodes starting application...

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: Create new detached thread for initialization stuff

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: Init all windows

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: Init appManager

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: filePath1: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/rhorunner.app/name

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: filePath2: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Library/Caches/Private Documents/name

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  Lib File is NOT Exist: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Library/Caches/Private Documents/lib

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: src: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/rhorunner.app/lib

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: dst: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Library/Caches/Private Documents/lib

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: src: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/rhorunner.app/apps

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: dst: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Library/Caches/Private Documents/apps

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. src: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/rhorunner.app/apps/app

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. dst: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Library/Caches/Private Documents/apps/app

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. src: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/rhorunner.app/apps/app_manifest.txt

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. dst: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Library/Caches/Private Documents/apps/app_manifest.txt

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. src: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/rhorunner.app/apps/public

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. dst: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Library/Caches/Private Documents/apps/public

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. src: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/rhorunner.app/apps/rhoconfig.txt

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. dst: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Library/Caches/Private Documents/apps/rhoconfig.txt

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: open on /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Library/Caches/Private Documents/apps/rhoconfig.txt: No such file or directory

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. src: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/rhorunner.app/apps/rhoconfig.txt.timestamp

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. dst: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Library/Caches/Private Documents/apps/rhoconfig.txt.timestamp

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. src: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/rhorunner.app/apps/rhofilelist.txt

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. dst: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Library/Caches/Private Documents/apps/rhofilelist.txt

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: src: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/rhorunner.app/db

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: dst: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Library/Caches/Private Documents/db

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. src: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/rhorunner.app/db/syncdb.schema

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. dst: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Library/Caches/Private Documents/db/syncdb.schema

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. src: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/rhorunner.app/db/syncdb.triggers

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. dst: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Library/Caches/Private Documents/db/syncdb.triggers

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. src: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/rhorunner.app/db/syncdb_java.triggers

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. dst: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Library/Caches/Private Documents/db/syncdb_java.triggers

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: copy src: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/rhorunner.app/db

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: copy dst: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Documents/db

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. copy src: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/rhorunner.app/db/syncdb.schema

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. copy dst: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Documents/db/syncdb.schema

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. copy src: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/rhorunner.app/db/syncdb.triggers

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. copy dst: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Documents/db/syncdb.triggers

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. copy src: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/rhorunner.app/db/syncdb_java.triggers

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]:  .. copy dst: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Documents/db/syncdb_java.triggers

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: copy src: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/rhorunner.app/hash

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: copy dst: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Library/Caches/Private Documents/hash

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: open on /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Library/Caches/Private Documents/hash: Permission denied

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: copy src: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/rhorunner.app/name

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: copy dst: /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Library/Caches/Private Documents/name

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: open on /Users/akhil/Library/Application Support/iPhone Simulator/6.1/Applications/47C784AC-2345-4E2D-8D0D-DDE76EBBA89B/Library/Caches/Private Documents/name: Permission denied

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: Init logconf

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: Create rhodes app

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: Init network monitor

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: Show loading page

      Jan 23 16:57:35 Akhils-MacBook-Air.local rhorunner[4523]: Start rhodes app

      Jan 23 16:57:36 Akhils-MacBook-Air com.apple.launchd.peruser.501[149] (UIKitApplication:com.zonar.myfirstpass[0x73e3][4523]): Job appears to have crashed: Abort trap: 6

      Jan 23 16:57:36 Akhils-MacBook-Air.local backboardd[4510]: Application 'UIKitApplication:com.zonar.myfirstpass[0x73e3]' exited abnormally with signal 6: Abort trap: 6

      Jan 23 16:57:36 Akhils-MacBook-Air.local ReportCrash[4524]: Saved crash report for rhorunner[4523] version ??? to /Users/akhil/Library/Logs/DiagnosticReports/rhorunner_2014-01-23-165736_Akhils-MacBook-Air.crash

      Jan 23 16:57:36 Akhils-MacBook-Air.local ReportCrash[4524]: Removing excessive log: file:///Users/akhil/Library/Logs/DiagnosticReports/rhorunner_2014-01-23-144419_Akhils-MacBook-Air.crash


      -------------------------------------------- crash report ---------------------------------------


       

      Process:         rhorunner [4523]

       

      Path:            /Users/USER/Library/Application Support/iPhone Simulator/*/rhorunner.app/rhorunner

      Identifier:      rhorunner

      Version:         ???

      Code Type:       X86 (Native)

      Parent Process:  launchd [149]

      Responsible:     rhorunner [4523]

      User ID:         501


      Date/Time:       2014-01-23 16:57:35.823 -0800

      OS Version:      Mac OS X 10.9.1 (13B42)

      Report Version:  11

      Anonymous UUID:  722906C2-51FF-D108-4A53-51EBE0F5945D



      Crashed Thread:  8


      Exception Type:  EXC_BAD_ACCESS (SIGABRT)

      Exception Codes: KERN_PROTECTION_FAILURE at 0x000000000000000c


      VM Regions Near 0xc:

      --> __PAGEZERO             0000000000000000-0000000000001000 [    4K] ---/--- SM=NUL  /Users/USER/Library/Application Support/iPhone Simulator/*/rhorunner.app/rhorunner

          __TEXT                 0000000000001000-0000000000596000 [ 5716K] r-x/rwx SM=COW  /Users/USER/Library/Application Support/iPhone Simulator/*/rhorunner.app/rhorunner


      Application Specific Information:

      iPhone Simulator 463.9.4, iPhone OS 6.1 (iPhone/10B141)


      ...


       

      Thread 8 Crashed:

       

      0   libsystem_kernel.dylib         0x03c8d952 __pthread_kill + 10

      1   libsystem_pthread.dylib       0x03d7f167 pthread_kill + 101

      2   libsystem_sim_c.dylib         0x038a2d8b abort + 140

      3   rhorunner                     0x000ac73a rb_bug + 74

      4   rhorunner                     0x0017b3f0 sigbus + 32 (signal.c:596)

      5   libsystem_platform.dylib       0x03d6adeb _sigtramp + 43

      6   libsystem_platform.dylib       0x03d6ae3b _longjmp + 15

      7   rhorunner                     0x000b4b52 rb_exc_raise + 98

      8   rhorunner                     0x001f8cfb raise_method_missing + 779

      9   rhorunner                     0x00203d20 method_missing + 608 (vm_eval.c:573)

      10  rhorunner                     0x0020362e rb_call0 + 174 (vm_eval.c:232)

      11  rhorunner                     0x001f8f5e rb_call + 94 (vm_eval.c:438)

      12  rhorunner                     0x001f7068 rb_funcall + 216 (vm_eval.c:638)

      13  rhorunner                     0x00249ae4 RhoRubyInitApp + 52 (rhoruby.c:338)

      14  rhorunner                     0x002b68cc rho::common::CRhodesApp::run() + 428 (RhodesApp.cpp:376)

      15  rhorunner                     0x002a1d85 rho::common::CRhoThread::runObject() + 37 (RhoThread.h:62)

      16  rhorunner                     0x002d90a5 rho::common::runProc(void*) + 37 (PosixThreadImpl.cpp:66)

      17  libsystem_pthread.dylib       0x03d7e5fb _pthread_body + 144

      18  libsystem_pthread.dylib       0x03d7e485 _pthread_start + 130

      19  libsystem_pthread.dylib       0x03d83cf2 thread_start + 34


      ...