2017-06-16 99 views

回答

4

我有同樣的問題。我結束了重新安裝,並更新到最新版本的CocoaPods的(1.2.1)

tensorflow/examples/ios/simple/ $ pod install 
Analyzing dependencies 
[!] Unable to find a specification for `TensorFlow-experimental` 

tensorflow/examples/ios/simple/ $ pod repo remove master 

Removing spec repo `master` 
tensorflow/examples/ios/simple/ $ pod setup 
Setting up CocoaPods master repo 
    $ /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --progress 
    Cloning into 'master'... 
    remote: Counting objects: 1342352, done. 
    remote: Compressing objects: 100% (2372/2372), done. 
    remote: Total 1342352 (delta 1560), reused 2050 (delta 796), pack-reused 1339018 
    Receiving objects: 100% (1342352/1342352), 405.31 MiB | 370.00 KiB/s, done. 
    Resolving deltas: 100% (673537/673537), done. 
    Checking out files: 100% (162776/162776), done. 

CocoaPods 1.3.0.beta.1 is available. 
To update use: `gem install cocoapods --pre` 
[!] This is a test version we'd love you to try. 

For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.3.0.beta.1 

Setup completed 
tensorflow/examples/ios/simple/ $ pod install 
Analyzing dependencies 
Downloading dependencies 
Installing TensorFlow-experimental (1.1.1) 
Generating Pods project 
Integrating client project 

[!] Please close any current Xcode sessions and use `tf_simple_example.xcworkspace` for this project from now on. 
Sending stats 
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed. 
tensorflow/examples/ios/simple/ $ pod --version 
1.2.1 
+0

非常感謝! @Jonathon –

0

可以回購搜索路徑添加到您的Podfile的頭。

source '[email protected]@github.com:CocoaPods/Specs.git' 

pod install再次。