gpt4 book ai didi

xcode - 仅构建事件架构不会导致编译错误

转载 作者:行者123 更新时间:2023-11-28 08:50:37 25 4
gpt4 key购买 nike

我正在使用 Cocoapods 作为我的依赖项管理器,但是,我当前的项目要求我有一个库,该库要求我关闭“仅构建事件架构”。但是在关闭它之后,我所有的依赖项都搞砸了,我得到了如下编译错误:

Module 'Alamofire' has no member 'request'

等等,这发生在我的每个 pod 上。有什么解决方法吗?我正在使用 Xcode 7。

最佳答案

这是很正常的问题。如果您使用的是 Pod,那么您需要选择 Build Active Architecture OnlyNO

Steps to resolve the issue:

1. Go to Pods
2. Select 'Alamofire target' or select 'All Pods' (skip Tests)
3. Go to Build Settings > Build Active Architecture Only > No

就是这样!

关于xcode - 仅构建事件架构不会导致编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34329215/

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