开发者

Xcode Release configuration behaves different

开发者 https://www.devze.com 2022-12-16 02:58 出处:网络
I\'m making a iPhone App written in Objective-C using the Cocos2d game engine. I\'m using Xcode v3.2.1 with the 3.1.2 iOS. At this point I have always ran my project under Debug Configuration. When I

I'm making a iPhone App written in Objective-C using the Cocos2d game engine.

I'm using Xcode v3.2.1 with the 3.1.2 iOS. At this point I have always ran my project under Debug Configuration. When I set it to release configuration certain elements of my game are no longer behaving correctly.

My logic that worked in the debug configuration doesn't work in release configuration. What makes release configuration behave differently and what about release configuration would cause problems in the code. This holds true开发者_StackOverflow中文版 on both the simulator and an actual device.

I'm thinking it may be something within one of my loops, but I'm not sure. Is there guidelines that should be followed under release configuration that are different then debug configuration?

I also ran a Build and Analyse thinking perhaps I was doing something I shouldn't but it came up clean.


Differences between release and debug builds are often caused by uninitialized variables.

0

精彩评论

暂无评论...
验证码 换一张
取 消