繁体   English   中英

XCode 7.3和Swift 2.2中没有这样的模块“ Alamofire”

[英]No such module 'Alamofire' in XCode 7.3 & Swift 2.2

我正在通过cocoapods将Almofire集成到我的新快速项目中。 成功安装Alamofire吊舱后,我无法将其导入到我的swift文件中。 Xcode显示以下错误。

没有这样的模块“ Alamofire”

以下是我的Podfile供参考

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

# Uncomment this line to define a global platform for your project
 platform :ios, '9.0'
# Uncomment this line if you're using Swift
 use_frameworks!

target 'CoreDataSample' do
    pod 'Alamofire', '~> '3.4'
end

target 'CoreDataSampleUITests' do

end

我已经在github上的Almofire中提到了以下问题

  1. 问题#551
  2. 第1130期

还尝试了以下事情

  1. 项目清理
  2. 项目建设
  3. 删除衍生数据

任何建议将不胜感激。

在您的Pod文件中尝试

# Uncomment this line to define a global platform for your project
 platform :ios, '9.0'

target 'demoAlamofire' do
  # Comment this line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for demoAlamofire

  pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire'

  target 'demoAlamofireTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'demoAlamofireUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end

我希望这能帮到您。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM