Xcode builds

How do I launch built projects from XCode’s simulator (aside from it launching automatically after a build)?

How do I check console output for built projects automatically opened by Corona after a build?

And a tangent question: folder structures for resources are supported now, correct?
(I’ve tried adding built files as executables to a fresh project in xcode, but get the following errors when attempting to launch
“dyld: Library not loaded: /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics”
Reason: image not found) [import]uid: 8145 topic_id: 2218 reply_id: 302218[/import]

  1. There are not XCode projects you can launch
  2. Do you mean the XCode console or the Coronal terminal? The first one you can look at when you start XCode, open the Organizer and there is a tab called Console. Start your app on the device and you will see the output. The Coronal terminal will automatically output every print command once you start an app via the terminal build.
  3. No! Only in the simulator, not on the devices. [import]uid: 5712 topic_id: 2218 reply_id: 6728[/import]
  1. I meant launching the .app files that are generated after a build process from Corona. They are launched automatically after a build, but I want to launch them myself (because I can’t see a way to get the console to show in the XCode simulator that launches automatically after a build). I don’t see any way to launch the XCode simulator other than from an XCode project =(

I.e. by “project” I meant “A folder with main.lua” in it, and by “built project” I meant the application that is returned from Corona’s server.

  1. But then, again, how do I start the compiled .app files from XCode?

  2. So, right now, before building to debug a thing like multitouch, I need to unravel my complicated folder structure and replace all resource paths to point to the root folder?
    I should note that I’m mainly interested in getting the same thing I see in the Corona simulator to appear in the XCode simulator. Right now, I have a game with lots of levels, events, textures, animations, etc in Corona simulator, and only the background in XCode simulator, and am unable to see any output to get a hint as to why.

It would be a nightmare to debug this without knowing the direction in which to fix, because a build takes 10-15 minutes. [import]uid: 8145 topic_id: 2218 reply_id: 6731[/import]

  1. When you run your game/app inside the simulator, no app file is created. When you build for publishing, an app file is created. This has to be placed onto your device. the easiest way imo is fire up XCode and the organizer, then drag and drop. This installes the app onto the device. How to use the Xcode simulator? I don’t know. Someone posted a lengthy instruction here (don’t have a link at hand) but I find the Corona simulator and the terminal working good enough for me.

  2. Well, just like other apps. Once it is installed, you can use Instruments to start any app on your device.

  3. I guess so. Have fun :slight_smile: [import]uid: 5712 topic_id: 2218 reply_id: 6752[/import]