【问题标题】:No Such Module Alamofire in Xcode 8 and Swift 3Xcode 8 和 Swift 3 中没有这样的模块 Alamofire
【发布时间】:2026-01-07 02:10:02
【问题描述】:

没有这样的模块 Alamofire

从 cocoapods 安装 Alamofire 后,我尝试导入它。我还尝试将 Build Active Architecture Only 设置为 NO。然后构建项目并导入 Alamofire。即使这样,它也会说“没有这样的模块”。

【问题讨论】:

    标签: xcode swift3 xcode8 alamofire


    【解决方案1】:

    1- 确保您使用的是最新版本的 CocoaPods。

    要使用最新版本更新 CocoaPods,请打开终端并使用 以下命令:
    $ sudo gem install cocoapods

    2- 在您的项目设置中 -> 选择目标 -> 构建设置 -> 框架搜索路径 ->
    "$PODS_CONFIGURATION_BUILD_DIR/Alamofire" 添加到路径列表中。

    【讨论】:

      最近更新 更多