【问题标题】:Build active architectures only no causing compile error仅构建活动架构不会导致编译错误
【发布时间】:2016-03-23 14:30:04
【问题描述】:

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

模块“Alamofire”没有成员“请求”

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

【问题讨论】:

    标签: xcode swift cocoapods xcode7


    【解决方案1】:

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

    解决问题的步骤:

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

    就是这样!

    【讨论】:

    • 对不起,我只有在将“构建活动架构”设置为“是”时才出现错误
    猜你喜欢
    • 1970-01-01
    • 2021-09-29
    • 1970-01-01
    • 1970-01-01
    • 2021-08-08
    • 1970-01-01
    • 1970-01-01
    • 2015-10-20
    • 2011-09-14
    相关资源
    最近更新 更多