一. 编译运行

1. 运行时提示 identity 无效

The identity used to sign the executable is no longer valid.
Please verify that your device’s clock is properly set, and that your signing certificate is not expired. (0xE8008018).

解决方案:

  1. 打开 Preferences > Accounts
  2. 选中项目对应的 Apple ID > 点击右下角 View Details...
  3. 点击弹出框左下角的 Download All > 等待完成后点击 Done 关闭
  4. 再次运行项目, 等待弹出框, 点击 reset.

2. iPhone5 上获得的设备尺寸为 960x640

表现出来是竖屏游戏上线有黑边, 跟踪发现获得的设备尺寸为 960x640, 而非 1136x640.

解决方案:

添加一张尺寸为 1136x640 名为 `Default-568h@2x.png` 的启动图即可.

参考资料:
http://discuss.cocos2d-x.org/t/getframesize-get-wrong-screen-size/7657

3. XCode issue 页面只显示错误, 不显示警告

cocos2d-x 在 XCode 中编译 warning 太多, 出错后 error 会被淹没在一大堆的警告中, 得拖动半天才能找得到.

解决方案:

在页面最下方有一个感叹号型按钮, 点击选中即可.

二. 上传应用

1. 多任务支持

XCode 7 error: “A launch storyboard or xib must be provided unless the app requires full screen”

解决方案:

我们勾上全屏即可:


目前就这些, 后面会持续更新 !