ios - 如何使用 GPUImage 启用 64 位支持

标签 ios objective-c xcode 64-bit 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.

关于ios - 如何使用 GPUImage 启用 64 位支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29258964/

相关文章:

objective-c - 如何在 ios 中使用 graph api 对 facebook3.1 中的帖子发表评论

objective-c - 将 NSPredicate 与 Core Data 结合使用以建立深层关系

ios - 如何从 iOS 应用程序启动 Apple Pages 文档?

ios - 如何使用分钟数据过滤特定的一天时间作为 Swift 3 中多个索引中的单个索引存储到数组中

ios - Xcode6 USB 安装 - 设备上的策略禁止配对

ios - Playground : Use of unresolved identifier 'NSColor'

ios - 在 XCode 中导出文件中的所有警告

javascript - Cordova RSS 提要链接不会在外部浏览器中打开

ios - 不能调用带参数的类方法

swift - 归档项目卡了几个小时