cocos 2d项目无法转换为目标ARC

发布于 2025-01-01 12:47:46 字数 156 浏览 4 评论 0原文

我正在开发一个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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冬天旳寂寞 2025-01-08 12:47:46

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.

半步萧音过轻尘 2025-01-08 12:47:46

您可以逐个文件禁用 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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文