gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-29 02:11:18 24 4
gpt4 key购买 nike

在使用 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com