Question

I've written an iPhone app and only tested it with the simulator as I don't have an actual iPhone. If I Build and Go, I can see the app running. But if I go to Finder and then open it through the project's build folder, it just crashes immediately. Does anyone know the reason for this?

Was it helpful?

Solution

So Tom, if I wanted to send that binary to a friend, what are the instructions for opening it?

OTHER TIPS

It crashes because double-clicking it causes Mac OS X to try and run it as a Mac app. It's got the same structure as a Mac app, and it's an x86 binary, so why not? But the iPhone app tries to dynamically link UIKit, fails to do so, and crashes. The simulator sets up the iPhone app's environment so that the linking succeeds. You could probably do this at the command line with careful use of environment variables, but the Finder doesn't do so.

Finder won't launch the simulator correctly. XCode is the only supported way to launch the simulator as far as I know.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top