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

没有这样的模块 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" 添加到路径列表中。

    【讨论】:

      猜你喜欢
      • 2016-10-06
      • 2018-10-23
      • 2018-01-17
      • 2021-07-08
      • 2017-09-28
      • 2016-10-23
      • 1970-01-01
      • 2016-09-19
      • 2017-08-04
      相关资源
      最近更新 更多