cocos2d-iphone 2.1开发之各种常见错误(持续更新。。。)

来源:互联网 发布:网络剧版权价值 编辑:程序博客网 时间:2024/05/23 14:45

1.cctexture2d. can't create texture. cgimage is nil

此类问题是没有工程添加图片文件,或图片文件已经损坏无法创建。


2.Signature not found for selector - does it have the following form? -(void) name: (ccTime) dt

此类问题说明@selector选择器找不到函数,或是函数后面没有加冒号。


3.Xcode cannot run using the selected device

此类问题是因为你是用新xcode版本运行旧xcode版本project出现的问题。解决办法看这个教程:http://www.smikeapps.com/xcode-cannot-run-using-the-selected-device/


4.ios 模拟器 未能安装此应用程序

这是升级到xcode5出现的问题,解决办法如下:

方法1)cd ~/Library/Application Support/iPhone Simulator进去,删除里面所有的文件夹。重启Xcode和模拟器即可。

方法2)打开模拟器,在菜单栏中 ios模拟器->还原内容和设置,操作即可。

方法3)xcode在菜单栏中 Product->Clean,操作即可。




0 0
原创粉丝点击