2017-09-11 95 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博客文章中所述。