【问题标题】:Alamofire and cocoapodsAlamofire 和 cocoapods
【发布时间】:2015-09-06 03:33:22
【问题描述】:

我正在尝试使用 Alamofire 将我的代码链接到 OS 10.10.3 和 XCode 6.3。我的 podfile 看起来像这样:

platform :osx, '10.10'
use_frameworks!

target 'worth2' do
  pod 'Alamofire', '~> 1.2'
  pod 'SwiftyJSON', '~> 2.2'
end

当我去构建我的项目时,我最终得到了

dyld:库未加载: @rpath/Alamofire.framework/Versions/A/Alamofire 引用自: ~/Library/Developer/Xcode/DerivedData/worth2-bskxhwsefwbntgeikvunyfjphixk/Build/Products/Debug/[项目名称] 原因:找不到图片

我查看了what sounds like the same issue,但似乎这是针对旧版本的 XCode。在 Targets -> Build Phases -> Target Dependencies 下,我无法添加框架。 Apple 框架出现了,但我的两个库没有出现。

【问题讨论】:

    标签: xcode cocoapods osx-yosemite alamofire


    【解决方案1】:

    我认为您错过了将源设置为 cocoapods 规格。

    source 'https://github.com/CocoaPods/Specs.git'
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-11-20
      • 1970-01-01
      • 2016-02-12
      • 2016-07-11
      • 2015-12-04
      • 2016-02-18
      • 2017-01-27
      相关资源
      最近更新 更多