On Tue, Jul 14, 2009 at 4:09 PM, Guillaume Germainguillaume.germain@gmail.com wrote:
- Retrieved James' example from github
- did "git clone git://github.com/jlongster/gambit-iphone-example.git"
- In Makefile: -- changed the commented version of the 'gcc' and 'sdk' variables to use
those for the simulator -- removed the comment at the end of line 46 ("app_name=tosser.app # You'll probably have to customize some of these") because the comment is interfering with the definition of the variable 'app_name' and breaking the "tosser.app" target.
- Did a "make deploy", started the simulator (the "tosser" app is there with
a white icon) and when I try to run it I get the result described above.
...
Indeed, running "gsi gambit-iphone-example/lib/util/remote-debugger/debugger.scm" in a terminal before starting the application in the iphone emulator allowed it to run.
Great! I definitely need to disable the remote debugger by default until I get it auto-detecting the server.
Also, I just noticed that you are manually deploying the app instead of building it through Xcode. I haven't mentioned that part of the Makefile yet because it's a little brittle. In general, as you see, Xcode builds the app and names it according to a UUID, and throws it in ~/Library/Application Support/iPhone Simulator/User/Applications. I think there's an index that needs to be updated though, because sometimes the application wouldn't show up in the simulator. Building it with Xcode ensures that it gets installed properly.