Hello.
I am trying to publish simple Mac game to AppStore, but they rejected it because of - "The app crashes upon initial launch". I tested it in all computers in our office without any crash, also i tested it in Macbook retina. I found the same thread: http://www.cocos2d-iphone.org/forum/topic/80423 . Luckily, they were approved second time in AppStore, but me don't. So i need a solution, there is something wrong with libGL.dylib / glViewpor, i guess. Also those crashes (mine and another one, was produced in the same OS build - Mac OS X 10.8.2 (12C54), sadly we don't have exact the same OS build in our office) There is the crash report:
Date/Time: 2013-02-11 14:38:57.965 -0800
OS Version: Mac OS X 10.8.2 (12C54)
Report Version: 10
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000a80
VM Regions Near 0xa80:
-->
__TEXT 0000000100000000-000000010009a000 [ 616K] r-x/rwx SM=COW /Applications/My-Square.app/Contents/MacOS/My-Square
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libGL.dylib 0x00007fff87bb15f2 glViewport + 22
1 com.graphicnode.mysquaremacos 0x0000000100046a22 0x100000000 + 289314
2 com.graphicnode.mysquaremacos 0x0000000100058739 0x100000000 + 362297
3 com.apple.CoreFoundation 0x00007fff8d85547a _CFXNotificationPost + 2554
4 com.apple.Foundation 0x00007fff8cca5846 -[NSNotificationCenter postNotificationName:object:userInfo:] + 64
5 com.apple.AppKit 0x00007fff8b3a460d -[NSApplication _postDidFinishNotification] + 292
6 com.apple.AppKit 0x00007fff8b3a4346 -[NSApplication _sendFinishLaunchingNotification] + 216
7 com.apple.AppKit 0x00007fff8b3a1532 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 566
8 com.apple.AppKit 0x00007fff8b3a112c -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 351
9 com.apple.Foundation 0x00007fff8ccbf12b -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 308
10 com.apple.Foundation 0x00007fff8ccbef8d _NSAppleEventManagerGenericHandler + 106
11 com.apple.AE 0x00007fff8adc3b48 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 307
12 com.apple.AE 0x00007fff8adc39a9 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 37
13 com.apple.AE 0x00007fff8adc3869 aeProcessAppleEvent + 318
14 com.apple.HIToolbox 0x00007fff8af818e9 AEProcessAppleEvent + 100
15 com.apple.AppKit 0x00007fff8b39d916 _DPSNextEvent + 1456
16 com.apple.AppKit 0x00007fff8b39ced2 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
17 com.apple.AppKit 0x00007fff8b394283 -[NSApplication run] + 517
18 com.apple.AppKit 0x00007fff8b338cb6 NSApplicationMain + 869
19 com.graphicnode.mysquaremacos 0x00000001000013f4 0x100000000 + 5108
Thread 1: