<i id='C7ynY'><tr id='C7ynY'><dt id='C7ynY'><q id='C7ynY'><span id='C7ynY'><b id='C7ynY'><form id='C7ynY'><ins id='C7ynY'></ins><ul id='C7ynY'></ul><sub id='C7ynY'></sub></form><legend id='C7ynY'></legend><bdo id='C7ynY'><pre id='C7ynY'><center id='C7ynY'></center></pre></bdo></b><th id='C7ynY'></th></span></q></dt></tr></i><div id='C7ynY'><tfoot id='C7ynY'></tfoot><dl id='C7ynY'><fieldset id='C7ynY'></fieldset></dl></div>

        <small id='C7ynY'></small><noframes id='C7ynY'>

      1. <legend id='C7ynY'><style id='C7ynY'><dir id='C7ynY'><q id='C7ynY'></q></dir></style></legend>

          <bdo id='C7ynY'></bdo><ul id='C7ynY'></ul>

        <tfoot id='C7ynY'></tfoot>
      2. “语义错误:使用不同类型重新定义 '__ccContentScaleFactor'"在 Coc

        quot;Semantic error: Redefinition of #39;__ccContentScaleFactor#39; with a different typequot; in Cocos2D v2(“语义错误:使用不同类型重新定义 __ccContentScaleFactor在 Cocos2D v2 中)

        <tfoot id='djMcl'></tfoot>

        <small id='djMcl'></small><noframes id='djMcl'>

                • <bdo id='djMcl'></bdo><ul id='djMcl'></ul>
                  <legend id='djMcl'><style id='djMcl'><dir id='djMcl'><q id='djMcl'></q></dir></style></legend>
                    <tbody id='djMcl'></tbody>
                  <i id='djMcl'><tr id='djMcl'><dt id='djMcl'><q id='djMcl'><span id='djMcl'><b id='djMcl'><form id='djMcl'><ins id='djMcl'></ins><ul id='djMcl'></ul><sub id='djMcl'></sub></form><legend id='djMcl'></legend><bdo id='djMcl'><pre id='djMcl'><center id='djMcl'></center></pre></bdo></b><th id='djMcl'></th></span></q></dt></tr></i><div id='djMcl'><tfoot id='djMcl'></tfoot><dl id='djMcl'><fieldset id='djMcl'></fieldset></dl></div>
                  本文介绍了“语义错误:使用不同类型重新定义 '__ccContentScaleFactor'"在 Cocos2D v2 中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我开发了一个新游戏,它在我的真实 ios 设备甚至模拟器上运行得非常好,但是当我决定将它提交到 AppStore 时,它在这一行出现错误.

                  i have developed a new game and it is running perfectly fine on my real ios devices and even on simulators but when i decided to submit it to AppStore it is giving error on this line.

                  extern CGFloat  __ccContentScaleFactor;
                  

                  错误是

                  cocos2d/Platforms/iOS/CCDirectorIOS.h:102:16: Redefinition of '__ccContentScaleFactor' with a different type: 'CGFloat' (aka 'double') vs 'float'
                  

                  谁能帮我解决这个问题,我只是将 xcode 更新到 5.1.谢谢

                  can anyone please help me with this issue i just update xcode to 5.1. thanks

                  推荐答案

                  重要更新:

                  <小时>

                  Cocos2D v2.2 已修复 64 位发布.

                  我强烈建议每个 cocos2d v2.x 开发者升级到这个版本,而不是应用下面的快速修复.cocos2d v2.0 和 v2.1 中潜伏着许多 64 位兼容性问题,它们可能会在奇怪的错误、视觉故障或更多编译错误中抬起头来——具体取决于应用程序.

                  Important Update:


                  Cocos2D v2.2 with 64-Bit fixes has been released.

                  I strongly suggest every cocos2d v2.x developer to upgrade to this version rather than applying the quick fix below. There are many 64-Bit compatibility issues lurking in cocos2d v2.0 and v2.1, which may rear their ugly head in weird bugs, visual glitches or more compile errors - depending on the app.

                  从 2015 年 2 月开始,Apple 将仅接受包含 64 位二进制文件的新应用和应用升级.因此强烈建议让您的代码和 cocos2d 在 64 位设备上正常工作.

                  Beginning in February 2015 Apple will only accept new apps and app upgrades which include 64-Bit binaries. So it's highly recommended to get your code and cocos2d to a proper working state on 64-bit devices.

                  编辑编译器抱怨的行,将 CGFloat 更改为 float 使其显示为:

                  Edit the line the compiler complains about, change CGFloat to float so that it reads:

                  extern float  __ccContentScaleFactor;
                  

                  但这表明 xcode 正在构建 arm64 切片.对于 cocos2d-iphone v2.x,最好从支持的架构中禁用/移除 arm64,因为 Cocos2D v2.1 及更早版本不完全兼容 64 位设备!

                  However this indicates that xcode is building the arm64 slice. For cocos2d-iphone v2.x it is best to disable/remove arm64 from supported architectures because Cocos2D v2.1 and earlier are not fully compatible with 64bit devices!

                  运行 Cocos2D v2.1 或更早版本的应用程序编译为 64 位代码并在 64 位设备(iPhone 5S 和更新版本)上运行时,可能会出现奇怪的错误和副作用.在 iOS 模拟器上可能不会出现这些问题.

                  There can be weird bugs and side-effects when running a Cocos2D v2.1 or earlier app compiled as 64-bit code and running on a 64-Bit device (iPhone 5S and newer). These issues may not occur on the iOS Simulator.

                  这篇关于“语义错误:使用不同类型重新定义 '__ccContentScaleFactor'"在 Cocos2D v2 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  what#39;s property copy means in Cocoa#39;s Framework?(like UITabBar#39;s items property)(Cocoa 框架中的属性副本是什么意思?(如 UITabBar 的 items 属性))
                  Can`t copy file from bundle to documents directory in iOS(无法将文件从捆绑包复制到 iOS 中的文档目录)
                  How to copy a quot;Dictionaryquot; in Swift?(如何复制“字典在斯威夫特?)
                  Android file copy(安卓文件拷贝)
                  Automatically copy property values from one object to another of a different type but the same protocol (Objective-C)(自动将属性值从一个对象复制到另一个类型不同但协议相同的对象 (Objective-C))
                  Android how to detect Copy event of Edittext in android(Android如何在android中检测Edittext的Copy事件)
                • <legend id='7pfkq'><style id='7pfkq'><dir id='7pfkq'><q id='7pfkq'></q></dir></style></legend>

                    1. <small id='7pfkq'></small><noframes id='7pfkq'>

                            <bdo id='7pfkq'></bdo><ul id='7pfkq'></ul>
                            <i id='7pfkq'><tr id='7pfkq'><dt id='7pfkq'><q id='7pfkq'><span id='7pfkq'><b id='7pfkq'><form id='7pfkq'><ins id='7pfkq'></ins><ul id='7pfkq'></ul><sub id='7pfkq'></sub></form><legend id='7pfkq'></legend><bdo id='7pfkq'><pre id='7pfkq'><center id='7pfkq'></center></pre></bdo></b><th id='7pfkq'></th></span></q></dt></tr></i><div id='7pfkq'><tfoot id='7pfkq'></tfoot><dl id='7pfkq'><fieldset id='7pfkq'></fieldset></dl></div>

                              <tbody id='7pfkq'></tbody>
                            <tfoot id='7pfkq'></tfoot>