小编use*_*102的帖子

Xcode4.5汇编程序无法编译Xcode4.4完美处理的文件

更新xcode到4.5版本后我有一个错误

命令/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang失败,退出代码为1

我在更新后读到了这样的错误,但在目标的构建设置中更改架构没有帮助.它适用于模拟器但不适用于设备.

整个错误

CompileC /Users/psitkowski/Library/Developer/Xcode/DerivedData/Jasiu2-gskaidiujznurtdqnebvtogjtdnd/Build/Intermediates/Jasiu2.build/Debug-iphoneos/Jasiu2.build/Objects-normal/armv7/maxvid_decode_arm.o Classes/AVAnimator/maxvid_decode_arm.s normal armv7 assembler-with-cpp com.apple.compilers.llvm.clang.1_0.compiler cd/Users/psitkowski/Xcode/ksiazki/kopie/Jasiu2 setenv LANG en_US.US-ASCII setenv PATH"/Applications/Xcode.app/内容/开发/平台/ iPhoneOS.platform /开发人员的/ usr/bin中:/Applications/Xcode.app/Contents/Developer/usr/bin:在/ usr/bin中:/ bin中:/ usr/sbin目录:/ sbin目录"

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x assembler-with-cpp -arch armv7 -fmessage-length = 0 -Wno-trigraphs -fpascal-strings -O0 -Wno -missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wmpty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -DDEBUG = 1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -Wdeprecated-declarations -g -Wno-sign-conversion -miphoneos-version-min = 5.1 -iquote /Users/psitkowski/Library/Developer/Xcode/DerivedData/Jasiu2-gskaidiujznurtdqnebvtogjtdnd/Build/Intermediates/Jasiu2.build/Debug-iphoneos/Jasiu2.build/Jasiu2-generated-files.hmap -I/Users/psitkowski/Library /开发商/ Xcode中/ DerivedData/Jasiu2-gskaidiujzn urtdqnebvtogjtdnd/Build/Intermediates/Jasiu2.build/Debug-iphoneos/Jasiu2.build/Jasiu2-own-target-headers.hmap -I/Users/psitkowski/Library/Developer/Xcode/DerivedData/Jasiu2-gskaidiujznurtdqnebvtogjtdnd/Build/Intermediates/Jasiu2.build/Debug-iphoneos/Jasiu2.build/Jasiu2-all-target-headers.hmap -iquote /Users/psitkowski/Library/Developer/Xcode/DerivedData/Jasiu2-gskaidiujznurtdqnebvtogjtdnd/Build/Intermediates/Jasiu2.build/Debug- iphoneos/Jasiu2.build/Jasiu2-project-headers.hmap -I/Users/psitkowski/Library/Developer/Xcode/DerivedData/Jasiu2-gskaidiujznurtdqnebvtogjtdnd/Build/Products/Debug-iphoneos/include -I/Applications/Xcode.app …

xcode simulator objective-c ios xcode4.5

7
推荐指数
1
解决办法
4528
查看次数

Cocos2d-x setAnimationInterval在Android上不起作用

我尝试使用以下代码在Cocos2d-x中设置应用程序中的最大FPS:

CCDirector::sharedDirector()->setAnimationInterval(1.0 / 30);
Run Code Online (Sandbox Code Playgroud)

它适用于iOS,但是当我在三个Android设备上测试它时,它会被忽略,并以标准间隔(1/60)呈现帧.

如何使用cocos2d-x在Android上正确设置最大FPS?

c++ eclipse android frame-rate cocos2d-x

4
推荐指数
1
解决办法
3385
查看次数

核心动画在设备上访问不良

我正在尝试使用CAlayers进行逐帧动画.我正在使用本教程http://mysterycoconut.com/blog/2011/01/cag1/进行此操作,但一切都适用于禁用ARC,当我尝试用ARC重写代码时,它可以在模拟器上完美地工作但在设备上我的访问内存不好.

Layer Class接口

#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>

@interface MCSpriteLayer : CALayer {
    unsigned int sampleIndex;
}

// SampleIndex needs to be > 0
@property (readwrite, nonatomic) unsigned int sampleIndex; 

// For use with sample rects set by the delegate
+ (id)layerWithImage:(CGImageRef)img;
- (id)initWithImage:(CGImageRef)img;

// If all samples are the same size 
+ (id)layerWithImage:(CGImageRef)img sampleSize:(CGSize)size;
- (id)initWithImage:(CGImageRef)img sampleSize:(CGSize)size;

// Use this method instead of sprite.sampleIndex to obtain the index currently displayed on screen
- (unsigned int)currentSampleIndex; 


@end
Run Code Online (Sandbox Code Playgroud)

图层类实现

@implementation …
Run Code Online (Sandbox Code Playgroud)

xcode core-animation exc-bad-access objective-c automatic-ref-counting

1
推荐指数
1
解决办法
526
查看次数