2017-09-11 93 views
0

我們正在嘗試使用cocoapods將我們的本機iOS應用程序配置爲MFP 7.1。然而,當我們在podfile定義IBMMobileFirstPlatformFoundation,並嘗試pod install,我們得到以下錯誤:無法使用cocoapods安裝IBMMobileFirstPlatformFoundation 7.1

[!] 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

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' 
+0

您是否找到解決方案了? –

+0

我們必須手動使用(https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.1/hello-world/configuring-a-native-ios-application-with-the-mfp-sdk/# localMethod) –

回答

1

這個問題是由於從hub.jazz.net造成最近的git移植到git.ng.bluemix.net,所有的Mobilefirst的SDK源被託管在hub.jazz.net回購,現在它不可用。這反過來導致pod install失敗。

注意:您還可以使用MFP 7.1 Studio插件獲得MFP 7.1 iOS SDK,如this博客文章中所述。