cocos 2d项目无法转换为目标ARC
我正在开发一个cocos2d游戏,我尝试将代码转换为Objective c ARC, 但它显示了 cocos 2d 库中的一些问题。
如何将 cocos2d 应用程序转换为 Objective C ARc。 是否有兼容 ARC 的 cocos2d 新版本,
提前致谢
I am developing a cocos2d game, I tried to converted the code to Objective c ARC,
But it shows some issues in the cocos 2d library.
How can I convert a cocos2d application to Objective C ARc.
Is there any new release of cocos2d which is ARC compatible,
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Cocos2d-iphone v1.1(测试版)和 2.0(测试版)与 ARC 兼容 - 但仅如果您将 cocos2d-iphone 构建到静态库中。目前还没有官方说明或模板项目。
Tiny Tim Games 有一个教程,并且雷Wenderlich 有一个替代解决方案。
Kobold2D 为您提供开箱即用的 cocos2d-iphone ARC,以及所有 有关 ARC 的详细信息这将帮助您解决迟早会遇到的后续问题。
Cocos2d-iphone v1.1 (beta) and 2.0 (beta) are compatible with ARC - but only if you build cocos2d-iphone into a static library. There's no official instructions or template project yet.
Tiny Tim Games has a tutorial on that, and Ray Wenderlich has an alternative solution.
And Kobold2D gives you ARC for cocos2d-iphone out of the box, plus all the nitty-gritty information about ARC that'll help you with the follow-up questions you'll have sooner than later.
您可以逐个文件禁用 ARC。对于 Cocos2D 库的每个元素,应用 如何对项目中的单个文件禁用 ARC?
You can disable ARC on a file-by-file basis. For each element of the Cocos2D Library, apply the technique of How can I disable ARC for a single file in a project?