Game Development Community

XCode 4.4 App crash after logo [RESOLVED]

by Andrea Fraboni · in iTorque 2D · 08/01/2012 (9:59 am) · 22 replies

The same project work fine on device compiled with XCode 4.3.2 but after update Lion and XCode 4.4 the app compiled crash on device ??

Why ??

Can help me anyone ??

What possible reason ??? Before work fine on device (compiled with XCode 4.3.2) and now crash (compiled with XCode 4.4) ??? Why ???

I suppose is due to the new compiler : Apple LLVM compiler 4 instead of Apple LLVM compiler 3.1

Help us

Thank you to everyone can help me :-)
Page «Previous 1 2
#1
08/01/2012 (11:46 am)
@Andrea - Try turning off build optimization in your build settings. That fixed it for me.
#2
08/01/2012 (12:22 pm)
Hei I'll test it ... thank you
#3
08/01/2012 (1:34 pm)
THANK YOU Johnny now all ok !!

Incredible how a small parameter can compromize an app ... now all ok

Thank you again

Bye
#4
08/01/2012 (2:03 pm)
I hope the problem is with the new xcode and that it gets fixed with the next xcode update.
#5
08/01/2012 (2:10 pm)
yes I hope this .... why now I see small freeze during game ..... is possible due to the new xcode and this problem about optimization....

I hope too Johnny

Bye
#6
08/04/2012 (1:56 pm)
@Andrea,
Where is that option? can´t found it :(
Thanks
Isaac
#7
08/05/2012 (5:39 am)
In Building Settings ---> Apple LLVM 4.0 - Code Generation ---> Optimization Level

in this you can set level of optimization : None or Fastest, Smallest

here is the key of the problem ......
#8
08/06/2012 (9:01 pm)
Haven´t tried yet. Thanks for the response. What is happening to me is that the game, once in the ipad simulator, crashes as soon as starts, I cant see the GG logo. I will try tomorrow. BUt will this be my problem?
TY again
#9
08/08/2012 (11:10 pm)
Ok we have resolved all by using LLVM GCC 4.2 instead of LLVM compiler 4.0 !!!
#10
09/21/2012 (1:08 am)
Are you able to compile for both a Device and the Simulator? I have the same crash since updating to Xcode 4.4 (and persists in 4.5). Turning off optimizations is not a viable solution for me, as performance is significantly reduced for my app.

So, I changed to LLVM GCC 4.2, and the game compiles for the Simulator, but I get a compile error for the Device. The error claims to be in MacTypes.h saying "#include nested too deeply".

Have you seen anything like this? Or, better yet, is this a known issue, and if so, is there a proper fix that I haven't found?
#11
09/21/2012 (1:10 am)
By the way, it crashes in iPhoneFileio.mm, in recurseDumpPath().
#12
09/21/2012 (8:39 am)
What's version of iTorque2D you use ??


#13
09/21/2012 (10:43 am)
I use an older version of iTorque2D. I think it's 1.3.
#14
09/22/2012 (2:00 am)
I use iTorque 1.4-1.4.1 and i can compile both sim and device .. using LLVM GCC 4.2 and with optimization active...
#15
09/22/2012 (8:51 pm)
I just (painfully) updated to iTorque 1.4.1, and I am getting the same compile problem (about MacTypes.h). Are you using Xcode 4.5 (the newest iOS SDK)?
#16
09/22/2012 (8:53 pm)
Actually, for the hell of it, I just downloaded iTorque 1.4.1 and created a TGB project with no modifications, changed to LLVM GCC 4.2, and the same compile error occurs --- perhaps this is an issue with Xcode 4.5 and iTorque...

I will create a new Thread about this...
#17
09/22/2012 (9:53 pm)
I use Xcode 4.4 .... Mm you say si a problem with the new Xcode ? Bad news ....
#18
09/22/2012 (9:56 pm)
UPDATE: Nevermind about the new Thread -- I think I figured it out. The app was originally built on an old version of iTorque2D, which which was built on an old version of Xcode. I had to remove some outdated things in the project settings. Specifically, I removed all entries in "Framework Search Paths", and I had to remove specific entries in "Header Search Paths", which was anything referencing Carbon or CoreServices frameworks or any Frameworks I figured weren't being used.

Also, as your fix suggests, I changed the compiler to LLVM GCC 4.2, and so far everything is working! Thanks for that!
#19
09/22/2012 (10:15 pm)
Hei then Now y can compile with Xcode 4.5 and iOS 6 ?

LLVM GCC 4.2 is active in Xcode 4.5? U can confirm this ?
#20
09/22/2012 (11:42 pm)
Yes, with all the changes listed, I can now compile using Xcode 4.5 and iOS 6.
Page «Previous 1 2