问题
Installing googleapis pod giving error "No podspec found for googleapis in ."
I am trying to installing pod 'googleapis', :path => '.' but, its getting following error Analyzing dependencies Fetching podspec for googleapis from . [!] No podspec found for googleapis in .
And my pod file is
Uncomment the next line to define a global platform for your project
platform :ios, '8.1'
target 'appName' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for AppSpeak
pod 'MBProgressHUD'
pod 'Fabric'
pod 'Crashlytics'
pod 'googleapis', :path => '.'
end
Can anyone help to fix this?
回答1:
- Download the sample from Google-SpeechToText sample in Git ,
- In podfile, do
pod 'googleapis', :path => '.'
- Copy 2 things from the sample's main folder named : a. googleapis.podspec b. google folder
- Paste these files inside your project folder
- Then in terminal, locate the project and do
pod install
To run your demo project, open the BUILDFIXES file inside the sample, and do the fixes as mentioned.
Now you can breathe, the project builds successfully.
Enjoy Coding ;)
回答2:
Issue: [!] No podspec found for googleapis in .
Solution: Step-1: You need to put "googleapis.podspec" file in same directory where your pod file is located.
Step-2: Open terminal and reach to the directory where your pod file located by using "cd" command
Step-3: Then run command "pod update" in terminal
Its done. Your googleapis pod installation begins!!! Hurray!!!
Download File "googleapis.podspec" from link: https://github.com/GoogleCloudPlatform/ios-docs-samples/files/1378295/googleapis.podspec.zip
来源:https://stackoverflow.com/questions/46703055/no-podspec-found-for-googleapis-in