Google AdMob Podfile - 手动还是自动版本更新?
Google AdMob Podfile - Manual vs Auto Version Update?
好的,如果这可能会被视为 'green' 问题,我们深表歉意...
我已经通过 CocoaPods 成功整合了 Google AdMob SDK。
我的 pod 文件如下所示:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
pod 'Google-Mobile-Ads-SDK', '~> 7.0'
所以我的 Podfile 应该自动 'grab' 任何版本 'newer' 比版本 7.0.
我仍在开发我的应用程序,当我 运行 在我的物理设备上进行测试时,我在控制台中看到了此类消息:
You are currently using version 7.8.0 of the SDK. Please
consider updating your SDK to the most recent SDK version to get the
latest features and bug fixes. The latest SDK can be downloaded from
....
所以我 运行 Podinstall
通过终端命令定位我的相关目录,该目录包含我的开发应用程序的最新 Xcode 项目,它会更新所有相关的 Google 移动广告当前版本的 SDK。
我想虽然我的应用程序不是 'live',但我的 Podfile 在自动更新方面基本上处于非活动状态。
问题:如果我今天将我的项目上传到 App Store,并将我的 Podfile 更新到最新的 Google AdMob SDK 版本,它会自动更新吗我的项目到最新版本之后?我的 Podfile 中的三 (3) 行代码是否足够?
非常感谢,如果这是一个非常基本的问题,请提前致歉;)
我自己对 Cocoa 还很陌生Pods 所以我不是 100% 理解你的意思
"I guess while my app is not 'live', my Podfile is essentially inactive in terms of updating itself automatically."
我相信要更新您的 Pods 您需要 运行 更新命令,它不会自动更新。
如果我今天将我的项目上传到 App Store,并将我的 Podfile 更新到最新的 Google AdMob SDK 版本,它会自动将我的项目更新到最新的版本吗之后呢?
我相信不行,你需要运行 podUpdate。
我的 Podfile 中的三 (3) 行代码是否足够?
应该是
这是我的 pod 文件的样子
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
target 'MyGame (iOS)' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'Google-Mobile-Ads-SDK', '~> 7.0'
pod 'ChartboostSDK'
# Pods for MyGame (iOS)
target 'MyGame (iOS) Tests' do
inherit! :search_paths
# Pods for testing
end
end
CocoaPods 实际上最近为 OSX 发布了一个应用程序,这使得它的使用变得更加容易
要阅读更多更新 pod 更新与安装,您应该阅读此内容。
https://guides.cocoapods.org/using/pod-install-vs-update.html
或者来自 ray wenderlich
的很棒的 swift 教程
https://www.raywenderlich.com/97014/use-cocoapods-with-swift
希望这对您有所帮助
好的,如果这可能会被视为 'green' 问题,我们深表歉意...
我已经通过 CocoaPods 成功整合了 Google AdMob SDK。
我的 pod 文件如下所示:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
pod 'Google-Mobile-Ads-SDK', '~> 7.0'
所以我的 Podfile 应该自动 'grab' 任何版本 'newer' 比版本 7.0.
我仍在开发我的应用程序,当我 运行 在我的物理设备上进行测试时,我在控制台中看到了此类消息:
You are currently using version 7.8.0 of the SDK. Please consider updating your SDK to the most recent SDK version to get the latest features and bug fixes. The latest SDK can be downloaded from ....
所以我 运行 Podinstall
通过终端命令定位我的相关目录,该目录包含我的开发应用程序的最新 Xcode 项目,它会更新所有相关的 Google 移动广告当前版本的 SDK。
我想虽然我的应用程序不是 'live',但我的 Podfile 在自动更新方面基本上处于非活动状态。
问题:如果我今天将我的项目上传到 App Store,并将我的 Podfile 更新到最新的 Google AdMob SDK 版本,它会自动更新吗我的项目到最新版本之后?我的 Podfile 中的三 (3) 行代码是否足够?
非常感谢,如果这是一个非常基本的问题,请提前致歉;)
我自己对 Cocoa 还很陌生Pods 所以我不是 100% 理解你的意思
"I guess while my app is not 'live', my Podfile is essentially inactive in terms of updating itself automatically."
我相信要更新您的 Pods 您需要 运行 更新命令,它不会自动更新。
如果我今天将我的项目上传到 App Store,并将我的 Podfile 更新到最新的 Google AdMob SDK 版本,它会自动将我的项目更新到最新的版本吗之后呢?
我相信不行,你需要运行 podUpdate。
我的 Podfile 中的三 (3) 行代码是否足够?
应该是
这是我的 pod 文件的样子
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
target 'MyGame (iOS)' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'Google-Mobile-Ads-SDK', '~> 7.0'
pod 'ChartboostSDK'
# Pods for MyGame (iOS)
target 'MyGame (iOS) Tests' do
inherit! :search_paths
# Pods for testing
end
end
CocoaPods 实际上最近为 OSX 发布了一个应用程序,这使得它的使用变得更加容易
要阅读更多更新 pod 更新与安装,您应该阅读此内容。
https://guides.cocoapods.org/using/pod-install-vs-update.html
或者来自 ray wenderlich
的很棒的 swift 教程https://www.raywenderlich.com/97014/use-cocoapods-with-swift
希望这对您有所帮助