gpt4 book ai didi

ios - 在我的 iOS 应用程序中,架构 x86_64 的 undefined symbol

转载 作者:可可西里 更新时间:2023-11-01 06:06:10 26 4
gpt4 key购买 nike

尝试让我的应用程序为 arm64 做好准备并更新我的所有 pod。我更新了所有 pod,但收到此错误,因此应用程序无法编译。

    Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AFHTTPClient", referenced from:
objc-class-ref in MYAPP.o
"_OBJC_CLASS_$_AFJSONRequestOperation", referenced from:
objc-class-ref in MYAPP.o
"_OBJC_CLASS_$_AFNetworkActivityIndicatorManager", referenced from:
objc-class-ref in MYAPP.o
"_OBJC_CLASS_$_RKAttributeMapping", referenced from:
objc-class-ref in MYAPP.o
"_OBJC_CLASS_$_RKEntityMapping", referenced from:
objc-class-ref in MYAPP.o
"_OBJC_CLASS_$_RKErrorMessage", referenced from:
objc-class-ref in MYAPP.o
"_OBJC_CLASS_$_RKManagedObjectStore", referenced from:
objc-class-ref in MYAPP.o
objc-class-ref in NSManagedObject+ActiveRecord.o
"_OBJC_CLASS_$_RKObjectManager", referenced from:
objc-class-ref in MYAPP.o
_OBJC_CLASS_$_STObjectManager in STObjectManager.o
objc-class-ref in NSManagedObject+EasyFetching.o
"_OBJC_CLASS_$_RKObjectMapping", referenced from:
objc-class-ref in MYAPP.o
"_OBJC_CLASS_$_RKRelationshipMapping", referenced from:
objc-class-ref in MYAPP.o
"_OBJC_CLASS_$_RKRequestDescriptor", referenced from:
objc-class-ref in MYAPP.o
"_OBJC_CLASS_$_RKResponseDescriptor", referenced from:
objc-class-ref in MYAPP.o
"_OBJC_CLASS_$_RKRoute", referenced from:
objc-class-ref in MYAPP.o

最佳答案

有几件事可以解决这个问题:

  1. 检查 Your-Workspace/Build Settings 和 Pod/Build Settings 的以下项目:Architectures、Build Active Architecture Only、Valid Architectures。这三个都应该在两个工作区之间匹配。

  2. 尝试清理 (CMD-Shift-K) 并清理构建文件夹 (CMD-Option-Shift-K)。

关于ios - 在我的 iOS 应用程序中,架构 x86_64 的 undefined symbol ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29574046/

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