如何使用cocoapods将alamofire安装到watchOS应用程序中

时间:2017-12-31 23:50:56

标签: cocoapods alamofire apple-watch

这是我的podfile:

source 'https://github.com/CocoaPods/Specs.git'
# Uncomment the next line to define a global platform for your project


target 'raceQs' do
 platform :ios, '11.1'
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for raceQs
  pod 'AppCenter'
pod 'Alamofire'
end

target 'raceQs WatchKit Extension' do
  platform :watchos, '4.1'
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for raceQs WatchKit Extension
pod 'Alamofire'
end

我正在打开我的项目的xcworkspace并收到编译错误:

Developer/Xcode/DerivedData/raceQs-cwycjawfwoosfubowtoymeizvfln/Build/Products/Debug-iphoneos/raceQs.app/Frameworks/Alamofire.framework'
/Users/mac/Library/Developer/Xcode/DerivedData/raceQs-cwycjawfwoosfubowtoymeizvfln/Build/Products/Debug-iphoneos/raceQs.app/Frameworks/Alamofire.framework: bundle format unrecognized, invalid, or unsuitable

在我的Xcode项目导航器中,Frameworks / Pods_raceQs_WatchKit_Extension以红色显示。

enter image description here

非常感谢任何协助。

0 个答案:

没有答案