我正在阅读Crysfel Villa的本地食谱,Stan Bershadskiy
我正在使用有关使用曲棍球应用程序的章节,不确定如何设置Podfile。这些是指示:
如何做... 首先,我们需要安装反应式HockeyApp 我们应用中的模块。打开终端,转到您的应用程序的 根项目目录并输入以下命令:$ npm install React-native-hockeyapp-保存进入您的iOS/目录, 初始化podfile:
$ pod init
打开podfile并添加吊舱 您的目标" Hockeysdk"。返回终端,安装podfile:$ pod install
我不是100%确定"将pod hockeysdk添加到您的目标"
我的podfile:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'MyApp' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for MyApp
target 'MyApp-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
target 'MyAppTests' do
inherit! :search_paths
# Pods for testing
end
end
target 'MyApp-tvOS' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for MyApp-tvOS
target 'MyApp-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
关于如何在此处正确修改POD文件的任何想法?
如果要在 MyApp
target中包含 HockeySDK
模块(这是您正在builidng的应用),则只需要像这样添加pod 'HockeySDK'
行:
target 'MyApp' do
(...)
pod 'HokeySDK'
(...)
end
然后运行pod install
打开.xcworkspace
文件而不是.xcproj
。您可以在官方Cocoapods指南中找到更多信息。