简体   繁体   English

无法使用cocoapods安装IBMMobileFirstPlatformFoundation 7.1

[英]Unable to install IBMMobileFirstPlatformFoundation 7.1 using cocoapods

We are trying to configure our native iOS app to MFP 7.1 using cocoapods. 我们正在尝试使用cocoapods将本机iOS应用配置为MFP 7.1。 However, when we define the IBMMobileFirstPlatformFoundation in our podfile and try pod install , we are getting the below error: 但是,当我们在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

We have followed the below Doc but we couldn't get it to work. 我们遵循了以下文档,但无法使其正常工作。

Adding the IBM MobileFirst Platform Foundation iOS SDK to a new application with CocoaPods 使用CocoaPods将IBM MobileFirst Platform Foundation iOS SDK添加到新应用程序中

PodFile: PodFile:

# 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'

This issue is caused due to recent git migration from hub.jazz.net to git.ng.bluemix.net where all of the Mobilefirst SDKs source were hosted on hub.jazz.net repo and now it is unavailable. 此问题是由于最近git从hub.jazz.net迁移到git.ng.bluemix.net而导致的,其中所有Mobilefirst SDK源都托管在hub.jazz.net存储库上,现在不可用。 This in-turn caused pod install failure. 这进而导致pod install失败。

Note: You can also get MFP 7.1 iOS SDKs using MFP 7.1 Studio Plugin as mentioned in this blog post. 注意:您也可以使用博客文章中提到的使用MFP 7.1 Studio插件获取MFP 7.1 iOS SDK。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM