Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

iOS and MacOS / iOS 1076 - just crashes

Author
Message
tessoft
10
Years of Service
User Offline
Joined: 28th Mar 2012
Location:
Posted: 15th Jul 2012 16:47
The release 1076 crashes on every native project:

Mac OS X Lion 10.7.4
XCode 4.3.3

Simply load and start any example in the workspace

/AGK/Projects/Native/iOS

The attached file is a screenshot of the crash point.

Attachments

Login to view attachments
Baraka
10
Years of Service
User Offline
Joined: 4th Feb 2012
Location:
Posted: 23rd Jul 2012 14:17
in UntitledViewController.m change the call function InitGL with this: agk::InitGL( self ); and change this function with this:
-(BOOL)shouldAutorotateToInterfaceOrientationUIInterfaceOrientation)interfaceOrientation
{
//return NO;
switch( interfaceOrientation )
{
case UIInterfaceOrientationPortrait: return NO;
case UIInterfaceOrientationPortraitUpsideDown: return NO;
case UIInterfaceOrientationLandscapeLeft: return YES;
case UIInterfaceOrientationLandscapeRight: return YES;
default: return NO;
}
}
Ancient Lady
Valued Member
18
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 20th Sep 2012 20:55 Edited at: 20th Sep 2012 20:56
All of the example programs are set for an older version of AppGameKit (don't know which one) and you need to update them.

Replace the entire Classes subdirectory for any of the iOS projects with the one in the attached file and then edit Classes/Core.m and remove the applicationWillResignActive method (that was added by me with some tweaks to the template_ios_xcode4 template.h/.cpp files to allow the app to detect and respond to returning from the background).

And in the Xcode interface, reset all the code signing values as appropriate and change 'Project Format' in the far right column (assuming you are in Xcode 4) to 'Xcode 3.2-compatible'. Clean and build.

I just performed the above steps on 'Box2D - Box2D' and it compiled and ran on my attached iPod Touch.

Cheers,
Ancient Lady
AGK Community Tester

Attachments

Login to view attachments

Login to post a reply

Server time is: 2022-10-04 13:40:26
Your offset time is: 2022-10-04 13:40:26