Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 如何修复架构arm64错误的未定义符号?_Ios_Xcode8 - Fatal编程技术网

Ios 如何修复架构arm64错误的未定义符号?

Ios 如何修复架构arm64错误的未定义符号?,ios,xcode8,Ios,Xcode8,我得到了这个建筑问题 Undefined symbols for architecture arm64: "_CGImageGetWidth", referenced from: GetBytesFromCGImage(CGImage*, int*, int*, int*) in OSInference.o "_CGColorSpaceCreateDeviceRGB", referenced from: GetBytesFro

我得到了这个建筑问题

   Undefined symbols for architecture arm64:
      "_CGImageGetWidth", referenced from:
          GetBytesFromCGImage(CGImage*, int*, int*, int*) in OSInference.o
      "_CGColorSpaceCreateDeviceRGB", referenced from:
          GetBytesFromCGImage(CGImage*, int*, int*, int*) in OSInference.o
      "_CGBitmapContextCreate", referenced from:
          GetBytesFromCGImage(CGImage*, int*, int*, int*) in OSInference.o
      "_CGImageGetHeight", referenced from:
          GetBytesFromCGImage(CGImage*, int*, int*, int*) in OSInference.o
      "_CGColorSpaceRelease", referenced from:
          GetBytesFromCGImage(CGImage*, int*, int*, int*) in OSInference.o
      "_CGContextDrawImage", referenced from:
          GetBytesFromCGImage(CGImage*, int*, int*, int*) in OSInference.o
      "_CGContextRelease", referenced from:
          GetBytesFromCGImage(CGImage*, int*, int*, int*) in OSInference.o
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
我所做的

  • 在构建阶段-使用我添加的库链接二进制文件 AVKit、CoreGraphics、QuartzCore
  • 2.仅构建架构-无


    有什么办法可以解决这个问题吗?

    1-
    CoreGraphics
    框架添加到您的项目中

    2-导入
    CoreGraphics

    3-清理您的项目


    4-再次尝试构建

    尝试更改“仅构建活动体系结构”为“是”,谢谢,但会出现这样的错误------没有要编译的体系结构(仅活动体系结构=是,活动体系结构=arm64,有效体系结构=armv7 armv7s)。我同意。请确保您正在相关源文件中导入它并将其添加到项目中(在构建阶段,正如您正在做的那样)。