Ios 安装电视操作系统的AFO网络吊舱
我正试图通过cocoapod将afnetworkingsdk安装到我的TVOS项目中。我经常犯这样的错误Ios 安装电视操作系统的AFO网络吊舱,ios,afnetworking,tvos,Ios,Afnetworking,Tvos,我正试图通过cocoapod将afnetworkingsdk安装到我的TVOS项目中。我经常犯这样的错误 Updating local specs repositories Analyzing dependencies [!] Unable to satisfy the following requirements: - `AFNetworking (= 3.0)` required by `Podfile` 我的cocoapod版本是cocoapods-0.39.0,这里是pod文件 #
Updating local specs repositories
Analyzing dependencies
[!] Unable to satisfy the following requirements:
- `AFNetworking (= 3.0)` required by `Podfile`
我的cocoapod版本是cocoapods-0.39.0
,这里是pod文件
# Uncomment this line to define a global platform for your project
platform :tvos, '9.0'
source 'https://github.com/CocoaPods/Specs.git'
target 'testing' do
pod 'AFNetworking' , '3.0'
end
target 'testingTests' do
end
target 'testingUITests' do
end
有人能告诉我如何让它工作吗?或者,根据这个链接,它目前不受支持。这显示了一个解决AFN网络问题的多平台POD文件。最后,您必须指定不同的版本:
source 'https://github.com/CocoaPods/Specs.git'
inhibit_all_warnings!
xcodeproj 'MyAppSuite'
def common_pods
pod 'AFNetworking', '3.0.0-beta.2'
pod 'CocoaHTTPServer', :git => 'https://github.com/fkuehne/CocoaHTTPServer.git'
end
target :phoneApp do
link_with 'YourIOSTargetNameHere'
use_frameworks!
platform :ios, '8.1'
common_pods
end
target :tvApp do
link_with 'YourTVOSTargetNameHere'
use_frameworks!
platform :tvos, '9.0'
common_pods
end
将platform:tvos,“9.0”更改为platform:tvos,“8.0”,然后再试一次