我正在用较大的项目(Swift)处理一些Pod并且一切都很好...... 现在我想添加一个tvos目标现在我的项目搞砸:(添加TVOS目标并更改Podfile结构后Xcode/Cocoapods项目搞砸了
而且有一个简单的方式重现:
1)在Xcode
2创建一个新的SingleView应用程序并将其命名为“荚测试”。 )打开它运行它
3.)运行pod init创建Podfile
4.)使用以下命令编辑Podfile: use_frameworks! 平台:IOS, '8.0'
pod 'Alamofire'
pod 'ObjectMapper'
pod 'AlamofireObjectMapper'
pod 'Fabric'
pod 'Crashlytics'
pod 'Nuke'
pod 'MGSwipeTableCell'
pod 'GradientCircularProgress', :git => 'https://github.com/keygx/GradientCircularProgress'
pod 'Reveal-iOS-SDK', :configurations => ['Debug']
5)运行吊舱安装
6)开放式工作区工程文件中运行应用程序
7)现在加上三三两两的目标和名称它“pod-test-tvos”
8.)运行iOS和tvos应用程序。一切都还是细
9)本编辑Podfile:
source 'https://github.com/CocoaPods/Specs.git'
target 'pod-test' do
use_frameworks!
platform :ios, '8.0'
pod 'Alamofire'
pod 'ObjectMapper'
pod 'AlamofireObjectMapper'
pod 'Fabric'
pod 'Crashlytics'
pod 'Nuke'
pod 'MGSwipeTableCell'
pod 'GradientCircularProgress', :git => 'https://github.com/keygx/GradientCircularProgress'
pod 'Reveal-iOS-SDK', :configurations => ['Debug']
end
target 'pod-test-tvos' do
use_frameworks!
platform :tvos, '9.0'
pod 'Fabric'
pod 'Crashlytics'
end
10)的吊舱测试和编辑配置荚测试tvos无人
10)接近的XCode
11.)运行吊舱安装再次
12)打开的Xcode再次
13)运行iOS和TVOS再应用程序...不过一切都很好
14)编辑“的AppDelegate”两个目标,并添加眼前这个进口:
import Fabric
15)运行iOS和TVOS再应用程序...和...咚的iOS运行良好TVOS说面料没有找到:(
这一切都只是碰巧,加入TVOS目标之后,因为我“变”的Podfile ...
用这个步骤一切都很好:
1)在Xcode中创建一个新的SingleView应用程序并将其命名为“荚测试”
2)现在加上三三两两的目标并将其命名为“荚测试tkos”
3)运行荚INIT创建Podfile
4)本编辑Podfile:
source 'https://github.com/CocoaPods/Specs.git'
target 'pod-test' do
use_frameworks!
platform :ios, '8.0'
pod 'Alamofire'
pod 'ObjectMapper'
pod 'AlamofireObjectMapper'
pod 'Fabric'
pod 'Crashlytics'
pod 'Nuke'
pod 'MGSwipeTableCell'
pod 'GradientCircularProgress', :git => 'https://github.com/keygx/GradientCircularProgress'
pod 'Reveal-iOS-SDK', :configurations => ['Debug']
end
target 'pod-test-tvos' do
use_frameworks!
platform :tvos, '9.0'
pod 'Fabric'
pod 'Crashlytics'
end
5。)运行荚安装
6)开放式工作区项目文件的运行两个目标的应用
7)编辑“的AppDelegate”,并添加只是此导入:
import Fabric
8)运行iOS和TVOS再应用程序...不过一切都很好
因此,似乎有与一个“老”项目改变Podfile一个问题...
我希望somebo DY可以帮助我这个:)
你是一个⭐️。经过数小时的努力,这救了我。 – zero0cool