時間:2013年01月30日18:06:36
錯誤一:
產生原因:C++ 其他類導入該類,該類不能改名。若改名出現該錯誤。
錯誤提示:Redefinition of 'Person' as different kind of symbol
解決方法:將引用的該類的注釋掉。運行后,將注釋改回來。
錯誤二:
產生原因:Build Phases-->Compile Sources缺少類。
錯誤提示:The selected destination does not support the architecture for which the selected software is built. Switch to a destination that supports that architecture in order to run the selected software.
解決方法:將總項目文件刪了引用。重新添加總項目文件。
錯誤三:
產生原因:不明,應該是錯誤二 弄不全遺留一些問題。
錯誤提示:The selected destination does not support the architecture for which the selected software is built. Switch to a destination that supports that architecture in order to run the selected software.
解決方法:
轉自:http://blog.csdn.net/sniffer12345/article/details/8016153
1、在命令行中cd到你的工程文件夾下。
2、cd進xcode 項目的文件夾,大致格式是:${PROJECT_NAME}.xcodeproj (注: 每一個xcode 項目其實是一個文件夾。。你如果右鍵點擊項目文件會發現一個屬性叫:show package content,其實就是瀏覽它的內容。。)(直接說cd XXX.xcodeproj就好了嘛-。-郁悶半天)
3、執行這個命令:find . -name ‘*yourUserName*’ (注:把yourUserName替換成你的用戶名就行啦)
4、刪除列出的文件。比如,我執行完find后出現如下文件:
./project.xcworkspace/xcuserdata/kevin.xcuserdatad
./xcuserdata/kevin.xcuserdatad
於是我用rm -rf ./project.xcworkspace/xcuserdata/kevin.xcuserdatad 一個個把它們干掉。
5、把xcode關掉(command+q徹底退出啊。。記得),然后重開。*希望*能運行吧。不行就只能再google了。。
6、真的不行的話,新建工程將代碼放進去,可能這樣更快。
錯誤四:
參考:http://blog.sina.com.cn/s/blog_5d26989301014s6m.html
產生原因:TitleMap 默認的壓縮方式和cocos2d的支持的壓縮方式不一樣,所以改一下壓縮方式就ok了。
錯誤提示:due to uncaught exception 'NSInternalInconsistencyException', reason: 'TMX: unsupported compression method'
解決方法:選擇tiled->preference,然后將壓縮選擇為Base64(gzip壓縮)