Search code examples
iosxcodecompiler-errorsarchivegpuimage

Compile error while archiving ios app with GPUImage


Help! I got this error while archiving my ios app using GPUImage made by Brad Larson in github.

ld: warning: ignoring file libGPUImage.a, missing required architecture arm64 in file libGPUImage.a (3 slices)
    Undefined symbols for architecture arm64:
      "_OBJC_CLASS_$_GPUImageBrightnessFilter", referenced from:
          objc-class-ref in ProcessViewController.o
      "_OBJC_CLASS_$_GPUImageContrastFilter", referenced from:
          objc-class-ref in ProcessViewController.o
      "_OBJC_CLASS_$_GPUImagePicture", referenced from:
          objc-class-ref in ProcessViewController.o

My app ran fine when I run it with device or simulator but when I tried to archive it, this error popped out. How do I resolve it?


Solution

  • Based on my chat with rajesh, the answer to my question is that I need to change my architectures in build settings to Standard architectures (no arm64) which is previously the one including 64-bit