Gle*_*wes 5 xcode ios cocoapods tvos
我有一个包含多个目标的 Xcode 项目。其中一个目标针对 tvOS 平台。我的其他目标使用不支持 tvOS 的“youtube-iso-player-helper”框架。我想要一个 Cocoapod Podfile,它只包含 iOS 上的播放器框架。
这是我当前的 Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
platform :tvos, '9.0'
use_frameworks!
pod 'SVGgh'
pod "youtube-ios-player-helper", "~> 0.1"
xcodeproj 'MyProject.xcodeproj'
Run Code Online (Sandbox Code Playgroud)
当我尝试更新 Pod 时,出现以下错误:
[!] 目标平台
Pods(tvOS 9.0)不兼容youtube-ios-player-helper (0.1.4),不支持tvos.
显然,这是使用当前版本的 Cocoapods。
所以,我需要知道我的 Podfile 所需的语法。
Dim*_*rda -1
我也有类似的问题,但是是框架问题。尝试为特定目标使用target和link_with安装 pod:
target :tvos, :exclusive => true do
use_frameworks!
link_with 'AppName'
pod "youtube-ios-player-helper", "~> 0.1"
end
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6452 次 |
| 最近记录: |