无法安装 Hypertrack 的 Pod
Unable to install Hypertrack's Pod
我正在将 Hypertrack SDK
集成到我的 iOS 应用程序中,并遵循了他们文档中的步骤。根据他们的文档,以下是需要在 podfile
:
中添加的代码
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
target 'AppName' do
pod 'HyperTrack'
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.3'
end
end
end
end
当我在终端中运行 pod install
命令时,它不会安装 hypertrack pod。我什至试过 pod update
但它不起作用。
谁能帮我解释一下这里出了什么问题?
日志 return 有什么吗?尝试更新你的 cocoapods,这可能有效。
我在 Slack 上联系了 Hypertrack 的支持团队并解决了这个问题。以下是我遵循的步骤:-
- 更新的 Pod 回购 -
pod repo update
- 删除了 hypertrack 的 pod 代码并执行了 pod 更新(根据支持团队的说法,这样做是为了删除任何旧版本,如果有的话)-
pod install
- 之后,我再次添加了 hypertrack 的 pod 代码并再次执行了 pod 更新 -
pod update
瞧,它成功了!
我不确定为什么我之前尝试过时无法安装它,但在执行这些步骤后我能够解决问题。
我正在将 Hypertrack SDK
集成到我的 iOS 应用程序中,并遵循了他们文档中的步骤。根据他们的文档,以下是需要在 podfile
:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
target 'AppName' do
pod 'HyperTrack'
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.3'
end
end
end
end
当我在终端中运行 pod install
命令时,它不会安装 hypertrack pod。我什至试过 pod update
但它不起作用。
谁能帮我解释一下这里出了什么问题?
日志 return 有什么吗?尝试更新你的 cocoapods,这可能有效。
我在 Slack 上联系了 Hypertrack 的支持团队并解决了这个问题。以下是我遵循的步骤:-
- 更新的 Pod 回购 -
pod repo update
- 删除了 hypertrack 的 pod 代码并执行了 pod 更新(根据支持团队的说法,这样做是为了删除任何旧版本,如果有的话)-
pod install
- 之后,我再次添加了 hypertrack 的 pod 代码并再次执行了 pod 更新 -
pod update
瞧,它成功了!
我不确定为什么我之前尝试过时无法安装它,但在执行这些步骤后我能够解决问题。