无法使用 cocoapods 安装 IBMMobileFirstPlatformFoundation 7.1
Unable to install IBMMobileFirstPlatformFoundation 7.1 using cocoapods
我们正在尝试使用 cocoapods 将我们的原生 iOS 应用程序配置为 MFP 7.1。但是,当我们在 podfile 中定义 IBMMobileFirstPlatformFoundation 并尝试 pod install
时,我们会收到以下错误:
[!] Error installing IBMMobileFirstPlatformFoundation
[!] /usr/bin/git clone https://hub.jazz.net/git/imflocalsdk/imf-client-sdks /var/folders/94/h6b7y6wx5k1dc_4q2xj5_8hw0000gn/T/d20170911-59452-jm2y5r --template= --single-branch --depth 1 --branch IBMMobileFirstPlatformFoundation_7.1.11
Cloning into '/var/folders/94/h6b7y6wx5k1dc_4q2xj5_8hw0000gn/T/d20170911-59452-jm2y5r'...
fatal: Remote branch IBMMobileFirstPlatformFoundation_7.1.11 not found in upstream origin
我们已按照以下文档进行操作,但无法使其正常工作。
Adding the IBM MobileFirst Platform Foundation iOS SDK to a new application with CocoaPods
播客文件:
# platform :ios, '10.0'
target 'test' do
use_frameworks!
pod 'Alamofire', '4.5.0'
pod 'AlamofireObjectMapper', '4.1.0'
pod 'DatePickerCell', '1.0.5'
pod 'ObjectMapper', '2.2.8'
pod 'OHHTTPStubs/Swift'
pod 'SkyFloatingLabelTextField', '3.1.0'
pod 'SwiftyJSON', '3.1.4'
pod 'Toast-Swift', '2.0.0'
pod 'Pulley', '1.3.1'
pod 'GooglePlaces'
pod 'IBMMobileFirstPlatformFoundation', '~> 7.1'
target 'test' do
inherit! :search_paths
end
target 'test' do
inherit! :search_paths
end
end
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
#target :name-of-the-target-in-xcode-project do
platform :ios, 10.0
pod 'IBMMobileFirstPlatformFoundation', '~> 7.1'
此问题是由于最近 git 从 hub.jazz.net 迁移到 git.ng.bluemix.net 造成的,其中所有 Mobilefirst SDK 源都托管在 hub.jazz.net 存储库上,现在是不可用。这反过来导致 pod install
失败。
注意:您还可以使用 this 博客 post 中提到的 MFP 7.1 Studio 插件获取 MFP 7.1 iOS SDK。
我们正在尝试使用 cocoapods 将我们的原生 iOS 应用程序配置为 MFP 7.1。但是,当我们在 podfile 中定义 IBMMobileFirstPlatformFoundation 并尝试 pod install
时,我们会收到以下错误:
[!] Error installing IBMMobileFirstPlatformFoundation
[!] /usr/bin/git clone https://hub.jazz.net/git/imflocalsdk/imf-client-sdks /var/folders/94/h6b7y6wx5k1dc_4q2xj5_8hw0000gn/T/d20170911-59452-jm2y5r --template= --single-branch --depth 1 --branch IBMMobileFirstPlatformFoundation_7.1.11
Cloning into '/var/folders/94/h6b7y6wx5k1dc_4q2xj5_8hw0000gn/T/d20170911-59452-jm2y5r'...
fatal: Remote branch IBMMobileFirstPlatformFoundation_7.1.11 not found in upstream origin
我们已按照以下文档进行操作,但无法使其正常工作。
Adding the IBM MobileFirst Platform Foundation iOS SDK to a new application with CocoaPods
播客文件:
# platform :ios, '10.0'
target 'test' do
use_frameworks!
pod 'Alamofire', '4.5.0'
pod 'AlamofireObjectMapper', '4.1.0'
pod 'DatePickerCell', '1.0.5'
pod 'ObjectMapper', '2.2.8'
pod 'OHHTTPStubs/Swift'
pod 'SkyFloatingLabelTextField', '3.1.0'
pod 'SwiftyJSON', '3.1.4'
pod 'Toast-Swift', '2.0.0'
pod 'Pulley', '1.3.1'
pod 'GooglePlaces'
pod 'IBMMobileFirstPlatformFoundation', '~> 7.1'
target 'test' do
inherit! :search_paths
end
target 'test' do
inherit! :search_paths
end
end
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
#target :name-of-the-target-in-xcode-project do
platform :ios, 10.0
pod 'IBMMobileFirstPlatformFoundation', '~> 7.1'
此问题是由于最近 git 从 hub.jazz.net 迁移到 git.ng.bluemix.net 造成的,其中所有 Mobilefirst SDK 源都托管在 hub.jazz.net 存储库上,现在是不可用。这反过来导致 pod install
失败。
注意:您还可以使用 this 博客 post 中提到的 MFP 7.1 Studio 插件获取 MFP 7.1 iOS SDK。