CocoaPodsで pod install すると、
[!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master-1`. You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.
というエラーが出てしまいます。
######PodFile
RealmSwiftはSwift2で実行するので、ver1.0.0となっています。
PodFile
1# Uncomment this line to define a global platform for your project 2# platform :ios, '9.0' 3 4target 'TreeMedicine' do 5 # Comment this line if you're not using Swift and don't want to use dynamic frameworks 6 use_frameworks! 7 8 # Pods for MedicineChecker 9 10 pod 'RealmSwift', '~> 1.0.0' 11 12end 13
###試したこと
一度podfile内の pod 'RealmSwift', '~> 1.0.0' をコメントアウトしてpod installした時は、エラーは出ずRealmSwiftがアンインストールされました。
また、調べて出た解決法を実行した場合、それぞれ以下の通りになりました。
cd ~/.cocoapods/repos git clone https://github.com/CocoaPods/Specs.git master xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
pod init [!] Existing Podfile found in directory
ご回答宜しくお願いします。