如何使用 GPUImage 启用 64 位支持

How to enable 64-bit support with GPUImage

使用 GPUImage 构建应用程序时,我遇到了这样的错误

ld: warning: directory not found for option '-L/Users/.../GPUImage'
ld: warning: ignoring file /Users/.../Libraries/GPUImage/libGPUImage.a, missing required architecture x86_64 in file /Users/.../Libraries/GPUImage/libGPUImage.a (3 slices)
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_GPUImageCrosshatchFilter", referenced from:
      objc-class-ref in AddPopViewController.o

我不知道这个错误是否相关,但我想做的是让我的应用程序支持 64 位处理器。我怎样才能做到这一点? 在这个 link 中,它表示

The framework supports 64-bit, but you'll have to enable this for your project in the framework and your application yourself

我该怎么做?谢谢

以下是 iOS documentation 中给出的步骤,以确保应用程序支持 64 位。检查您的环境中是否注意以下几点。

概括地说,以下是创建面向 32 位和 64 位运行时环境的应用程序的步骤:

  1. Install the latest Xcode.
  2. Open your project. Xcode prompts you to modernize your project. Modernizing the project adds new warnings and errors that are important when compiling your app for 64-bit.
  3. Update your project settings to support iOS 5.1.1 or later. You can’t build a 64-bit project if it targets an iOS version earlier than iOS 5.1.
  4. Change the Architectures build setting in your project to "Standard Architectures (including 64-bit)."
  5. Update your app to support the 64-bit runtime environment. The new compiler warnings and errors will help guide you through this process. However, the compiler doesn’t do all of the work for you; use the information in this document to help guide you through investigating your own code.
  6. Test your app on actual 64-bit hardware. iOS Simulator can also be helpful during development, but some changes, such as the function calling conventions, are visible only when your app is running on a device.