Hello kind people,
I will be very impressed if we manage to solve this.
I'm a beginner programmer following the first chapter tutorial in the O'Reilly book "iphone 3D programming". After trying to run the initial practice program I get the following error:
Detected an attempt to call a symbol in system libraries that is not present on the iPhone:
open$UNIX2003 called from function _ZN4llvm12MemoryBuffer7getFileEPKcPSsx in image libLLVMContainer.dylib.
I've narrowed it down to this section of code:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
CGRect screenBounds = [[UIScreen mainScreen] bounds];
m_window = [[UIWindow alloc] initWithFrame: screenBounds];
m_view = [[GLView alloc] initWithFrame: screenBounds];
[m_window addSubview: m_view];
[m_window makeKeyAndVisible];
return YES;
}
where when I comment out the following line it works fine i.e. it launches, but doesn't draw the screen that is intended:
m_view = [[GLView alloc] initWithFrame: screenBounds];
Any idea of how I can debug this properly?
I appreciate all help offered :)
EDIT 1
I've found this conclusion which says that it is a bug with the simulator. I then tried running my code on my device (iphone 4.1) and although there was no error message, I'm still not seeing anything drawn to the screen :)
Any advice?