2016-09-02 4 views
-2

私は今iOSを学んでいます。 私はhttps://github.com/huyouare/SwiftParseChat.git からクローンを作成しましたが、エラーになります。CocoaPodsでエラーを修正するには?

diff: /../Podfile.lock: No such file or directory 
diff: Manifest.lock: No such file or directory error: 
The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.` 

したがって、ワークスペースファイルとpodを削除します。

rm -rf MyProject.xcworkspace 
pod install 

エラーが発生しました。

Re-creating CocoaPods due to major version update. 
Analyzing dependencies 
[!] The dependency `Alamofire (~> 1.3)` is not used in any concrete target. 
The dependency `APAddressBook` is not used in any concrete target. 
The dependency `Bolts` is not used in any concrete target. 
The dependency `JSQMessagesViewController (from `https://github.com/galambalazs/JSQMessagesViewController.git`, branch `smooth-scrolling`)` is not used in any concrete target. 
The dependency `JSQSystemSoundPlayer` is not used in any concrete target. 
The dependency `FBSDKCoreKit` is not used in any concrete target. 
The dependency `FBSDKLoginKit` is not used in any concrete target. 
The dependency `FBSDKShareKit` is not used in any concrete target. 
The dependency `FBAudienceNetwork` is not used in any concrete target. 
The dependency `Parse` is not used in any concrete target. 
The dependency `ParseUI` is not used in any concrete target. 
The dependency `ParseCrashReporting` is not used in any concrete target. 
The dependency `ParseFacebookUtils` is not used in any concrete target. 

[!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice. 

Podfileは次のとおりです。

source 'https://github.com/CocoaPods/Specs.git' 
platform :ios, ‘8.0’ 
use_frameworks! 

pod 'Alamofire', '~> 1.3’ 
pod 'APAddressBook' 
pod 'Bolts' 
pod 'JSQMessagesViewController', :git => 'https://github.com/galambalazs/JSQMessagesViewController.git', :branch => 'smooth-scrolling' 
pod 'JSQSystemSoundPlayer' 

pod 'FBSDKCoreKit' 
pod 'FBSDKLoginKit' 
pod 'FBSDKShareKit' 
pod 'FBAudienceNetwork' 

pod 'Parse' 
pod 'ParseUI' 
pod 'ParseCrashReporting' 
pod 'ParseFacebookUtils' 

私はこのエラーを解決することができますか?あなたはこのようなpodfile変更することができます

+1

なぜこれが3つのアップボントを取得しましたか?あなたは新しいココアポッド指定にしたがって 'use target'' do'を使う必要があります – Shubhank

+1

素人、依存関係の定義には常にバージョンが含まれていなければなりません。 – Sulthan

+0

私はこれについて知らない。私はちょうど今iOSを学んでいます。このエラーについて親切に説明できますか?私はあなたの助けに感謝すると思います。 –

答えて

1

# Uncomment this line to define a global platform for your project 
# platform :ios, '9.0' 

target 'SwiftParseChat' do 
    # Comment this line if you're not using Swift and don't want to use dynamic frameworks 
    use_frameworks! 
    pod 'Alamofire', '~> 1.3’ 
    pod 'APAddressBook' 
    pod 'Bolts' 
    pod 'JSQMessagesViewController', :git => 'https://github.com/galambalazs/JSQMessagesViewController.git', :branch => 'smooth-scrolling' 
    pod 'JSQSystemSoundPlayer' 

    pod 'FBSDKCoreKit' 
    pod 'FBSDKLoginKit' 
    pod 'FBSDKShareKit' 
    pod 'FBAudienceNetwork' 

    pod 'Parse' 
    pod 'ParseUI' 
    pod 'ParseCrashReporting' 
    pod 'ParseFacebookUtils' 
    # Pods for SwiftParseChat 

end 
1

は次に、新しいPodfileが作成され、この

rm Podfile 
pod init 

のように試してみてください。 その後、新しいPodfileに必要なAPIを挿入できます。

関連する問題