小编use*_*301的帖子

选择具有受支持体系结构的目标,以便在此设备上运行

在此输入图像描述

我的Xcode是4.4.1版

该项目在更新到这个较新版本之前工作得很好,但现在它停止了工作

objective-c xcodebuild cocos2d-iphone

56
推荐指数
3
解决办法
4万
查看次数

内联函数"未定义符号"错误

我想写一个内联函数,但是我收到一个错误.我该如何解决?

错误信息:

Undefined symbols for architecture i386:
  "_XYInRect", referenced from:
      -[BeginAnimation ccTouchesEnded:withEvent:] in BeginAnimation.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)

码:

CGPoint location = CGPointMake(60, 350);

if (XYInRect(location, 53, 338, 263, 369)) {

}

inline BOOL XYInRect(CGPoint location, float MixX, float MixY, float MaxX ,float MaxY){
    if (location.x >MixX && location.y >MixY && location.x <MaxX && location.y <MaxY) {
        return YES;
    } else {
        return …
Run Code Online (Sandbox Code Playgroud)

c compiler-errors inline objective-c linker-errors

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