Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
出于某种原因,cocos2d 的默认 Info.plist 包含accelerometer和opengles-1作为所需的设备功能。为什么会这样——当然所有的 iOS 设备都有这些功能,所以这是不必要的?
accelerometer
opengles-1
事实上,这些条目对于迄今为止所有 iOS 设备上基于 cocos2d 的应用程序都是可选的。
然而,从框架本身的角度来看,包含这两个似乎是个好主意。Cocos2d 内部期望设备具有加速度计和 OpenGL ES 1.1 支持,因为它使用这些框架而不检查它们的存在。
而且你永远不知道 Apple 什么时候会决定将 Apple TV 作为 iOS 应用程序的部署设备。Apple TV 肯定不支持加速度计框架。