随笔分类 - Debug
摘要:用UIImageView 创建的九宫图变白,直接用CCScale9Sprite创建的也是变白,找了半天原来是自己为了调整UI方便,开启了CCSprite边缘画线导致的,在ccConfig.h下 宏CC_SPRITE_DEBUG_DRAW 。
阅读全文
摘要:上周上传app到appstore在validation完后有警告提示"The app references non-public selectors in Payload/wacao.app/wacao: id”.是facebook接入时引起:id user修改获取方式user.id为[user objectForKey:@"id"]
阅读全文
摘要:最近几周发现打开xcode非常卡,一看任务管理器,xcode占内存接近3个G,cpu占用率可以达到700%, 卡的不能操作。按照网上各种办法也没解决,今天把系统升级了下,也升级了xcode,就这样问题解决了,xcode不再卡了。
阅读全文
摘要:客户端按照ios上给的demo修改接入游戏,出现以下3个问题:1. “CreateRSADataSigner(NSString*)", referenced from: xxxx”。解决:在自己游戏里的.mm文件调用了CreateRSADataSigner,CreateRSADataVerifier方法,所以把RSADataSigner.m和RSADataVerifier.m 都改为.mm后缀。2. “订单签名错误,请检查partner对应的密钥是否正确”。解决:productDescription 商品描述不能为空撒。3. “支付成功后,无提示,result.statusMessa
阅读全文
摘要:终端进入工程目录,执行 find . | grep ".svn/lock" | xargs rm
阅读全文
摘要:早上打开360要卸载软件,跳出说系统修复,习惯性的点击修复,结果修复后发现打开vs2012提示“未能正确加载“visual C++ package”包……..”, 重启也一样,google了下,是因为 .NET framework 更新导致,下载Microsoft提供的补丁安装即可。http://www.microsoft.com/en-us/download/details.aspx?id=36020papapa…
阅读全文
摘要:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN] @="Delete SVN Folders"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command] @="cmd.exe /c \"TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \&quo
阅读全文
摘要:xcode下编译报错:ISO C++ forbids declaration of 'iterator' with no type出错点:template<class T>class MyVector: public std::vector<T>{public: typedef std::vector<T> vecType; typedef vecType::iterator vecIterator; //报错 MyVector(){}; MyVector(const vecType& _vec); //....... //.....
阅读全文
摘要:xcode编译出现如下出错:Command /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp failed with exit code 1stackoverflow上别人的回答,http://stackoverflow.com/questions/5796213/command-developer-library-privateframeworks-devtoolscore-framework-resources-pbi had the same problem ..i have remov
阅读全文
摘要:1. 编译报错: "LayerWebView::LayerWebView()", referenced from:VipFunc::rechargeCallback(cocos2d::CCObject*) in VipFuncModel.o原因:在新建targets时用到的文件没有add to targets。(该文件已经加到了别的target,但是新建target时忘记add到新建的target了)。解决:delete references 重新 add to targets。2. 编译ok,运行失败,提示如下:iPhone: Failed to launch simul
阅读全文
摘要:xocde编译出现如下错误:Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 failed with exit code 1原来是自己使用了相同名的 static全局变量。小心啊 小心,如果非必要还是定义成 成员变量好了。
阅读全文
摘要:#ifndef _TYPE_H_#define _TYPE_H_#include <string>#include <map>#include <vector>#include <stdlib.h>//颜色typedef struct Color{ int r; int g; int b;}mColor;//位置typedef struct point{ float x; float y;}mPoint;//范围typedef struct area{ float w; float h;}mArea;//BMFonttypedef struct
阅读全文
摘要:前几天把cocosd-x生成的游戏模块发给同学,他说打开报错。错误如下: PVR: VFrame attempted to use one of these functions: PVR: wglChossePixelFormatARB PVR: but they are not present on your machine."奇怪了,我自己电脑运行都没问题,再试了5台别人的电脑xp or win7都正常运行。google,原来是显卡驱动问题,升级显卡驱动。http://cn.cocos2d-x.org/bbs/forum.php?mod=viewthread&tid=44
阅读全文

浙公网安备 33010602011771号