Xcode Release 配置行为不同
我正在使用 Cocos2d 游戏引擎制作一个用 Objective-C 编写的 iPhone 应用程序。
我正在使用 Xcode v3.2.1 和 3.1.2 iOS。此时,我始终在“调试配置”下运行我的项目。当我将其设置为发布配置时,游戏的某些元素不再正常运行。
我在调试配置中工作的逻辑在发布配置中不起作用。是什么导致发布配置的行为不同以及发布配置会导致代码出现问题。这在模拟器和实际设备上都适用。
我认为这可能是我的一个循环中的某些内容,但我不确定。在发布配置下是否应该遵循与调试配置不同的指南?
我还运行了构建和分析,认为也许我做了一些不应该做的事情,但结果是干净的。
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 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发布版本和调试版本之间的差异通常是由未初始化的变量引起的。
Differences between release and debug builds are often caused by uninitialized variables.