web-dev-qa-db-ja.com

cocoapodsバージョン1.0.0.beta.1でポッドインストールでエラーが表示される

私のポッドファイルは動いていましたが、cocoapodsバージョン1.0.0.beta.1にアップデートした後

ポッドインストールでエラーが表示される

MacBook-Pro:iOS-TuneIn home$ pod install
Fully deintegrating due to major version update
Deleted 1 'Copy Pods Resources' build phases.
Deleted 1 'Check Pods Manifest.lock' build phases.
Deleted 1 'Embed Pods Frameworks' build phases.
- libPods.a
- Pods.debug.xcconfig
- Pods.release.xcconfig
Deleted 1 'Copy Pods Resources' build phases.
Deleted 1 'Check Pods Manifest.lock' build phases.
- libPods.a
Deleted 1 'Copy Pods Resources' build phases.
Deleted 1 'Check Pods Manifest.lock' build phases.
- libPods.a
Deleted 1 'Copy Pods Resources' build phases.
Deleted 1 'Check Pods Manifest.lock' build phases.
- libPods.a
Deleted 1 'Copy Pods Resources' build phases.
Deleted 1 'Check Pods Manifest.lock' build phases.
- libPods.a
- libPods.a
Deleted 1 empty `Pods` groups from project.
Removing `Pods` directory.

Project has been deintegrated. No traces of CocoaPods left in project.
Note: The workspace referencing the Pods project still remains.
Updating local specs repositories
Analyzing dependencies
[!] The dependency `AFNetworking (= 2.6.3)` is not used in any concrete target.
The dependency `MBProgressHUD (~> 0.9.1)` is not used in any concrete target.
The dependency `PDKeychainBindingsController (~> 0.0.1)` is not used in any concrete target.
The dependency `FMDB/SQLCipher` is not used in any concrete target.
The dependency `ZXingObjC (~> 3.1.0)` is not used in any concrete target.
The dependency `SDWebImage (~> 3.7.2)` is not used in any concrete target.
The dependency `SignalR-ObjC (~> 2.0.0.beta3)` is not used in any concrete target.
The dependency `CJPAdController (from `https://github.com/nabeelarif100/CJPAdController.git`)` is not used in any concrete target.
The dependency `ECSlidingViewController (~> 2.0.3)` is not used in any concrete target.
The dependency `VGParallaxHeader` is not used in any concrete target.
The dependency `EMString` is not used in any concrete target.
The dependency `Google/SignIn` is not used in any concrete target.
The dependency `VIPhotoView (~> 0.1)` is not used in any concrete target.
The dependency `EncryptedCoreData (from `https://github.com/project-imas/encrypted-core-data.git`)` is not used in any concrete target.
MacBook-Pro:iOS-TuneIn home$ 

ポッドファイル:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
pod 'AFNetworking', '2.6.3'
pod 'MBProgressHUD', '~> 0.9.1'
pod 'PDKeychainBindingsController', '~> 0.0.1'
pod 'FMDB/SQLCipher'
pod 'ZXingObjC', '~> 3.1.0'
pod 'SDWebImage', '~>3.7.2'
pod 'SignalR-ObjC','~>2.0.0.beta3'
pod 'CJPAdController', :git => 'https://github.com/nabeelarif100/CJPAdController.git'
pod 'ECSlidingViewController', '~> 2.0.3'
pod 'VGParallaxHeader'
pod 'EMString'
pod 'Google/SignIn'
pod 'VIPhotoView', '~> 0.1'
pod 'EncryptedCoreData', :git => 'https://github.com/project-imas/encrypted-core-data.git'
175

ポッドごとにターゲットを指定する必要があります。

例えば以前にPodfileを次のように書いていたとします。

pod 'Alamofire', '~> 3.1.4'
pod 'SwiftyJSON', '~> 2.3.2'

に変更するだけです

target "TargetName" do
    pod 'Alamofire', '~> 3.1.4'
    pod 'SwiftyJSON', '~> 2.3.2'
end
498
Gasper Kolenc

Cocoapodsを新しく変更した後は、podfileに次の行を追加する必要があります。

target "YOUR_PROJECT_NAME" do

     pod "YOUR_POD"

end
58

CocoaPods Webサイトから:

CocoaPodsはスマートデフォルトでPodfileを作成するためのpod initコマンドを提供します。あなたはそれを使うべきです。

19
Tr0yJ

以下のようにポッドの周りにtarget 'your target' doendを追加する必要があります。

target 'your target' do
pod 'AFNetworking', '2.6.3'
pod 'MBProgressHUD', '~> 0.9.1'
pod 'PDKeychainBindingsController', '~> 0.0.1'
end

それに加えて、あなたはPods dir、Podfile.lockそしてxcworkspaceファイルを削除する必要があるかもしれません、もう一度pod installを実行してください。

9
Phillip

今日も同じ問題があります。軽減のために、私はcocoapodをアンインストールしてからバージョン0.39を再インストールします。

ここにアンインストールする方法のリンクです: https://superuser.com/questions/686317/how-to-fully-uninstall-the-cocoapods-from-the-mac-machine

この回答では根本的な原因は解決されませんが、ブロック解除されることがあります。私はコメントを残すほどの評判がないので、あなたをブロック解除するためにここに答えを入れます。

3
cooltch

私はポッドファイルでこの操作をしました:

source ' https://github.com/CocoaPods/Specs.git '

プラットフォーム:IOS、「8.0」

ターゲット "targetprojectname" do

ポッド "AFNetworking"

終わり

2
KBVSMJ

私のポッドファイルは正しくフォーマットされていたので、答えは私のために働かなかった。私がしたことは、次のすべてでした。

  1. 宝石アンインストールcocoapods
  2. rvm get stable --auto-dotfiles
  3. rvm use Ruby-2.1.2
  4. rvm osx-ssl-certsすべて更新
  5. rvm ruby​​gems最新
  6. Sudo gem sources -r https://rubygems.org/
  7. Sudo gem sources -a http://rubygems.org/
  8. gem install cocoapods -v 1.0.0.beta.1 --pre -V

SSLエラー、タイムアウトエラー、およびパスエラーがありました。これでこれらすべてが修正されました。私はそれが誰かに役立つことを願ってこの答えを付け加えています - この問題を抱えているほとんどの人はこれらのステップのすべてを経験する必要はないでしょう。これはhttpsを使用しないようにd/lリンクを変更していることに注意してください。この問題を解決したら必ず元に戻すようにしてください。 これこれこの スタックオーバーフローの質問は私がついにこれらの問題を解決するのを助けました。

1
jungledev

ポッドファイルは単なるRubyファイルです。すべてのターゲットに必要なポッドを指定する必要があります。利用可能な解決策の1つは、shared_posで必要なポッドをすべて定義し、それを各ターゲットに使用することです。

例:

ポッドファイル

platform :ios, '9.0'

use_frameworks!

def Shared_Pods
    pod 'Quick', '0.5.0'
    pod 'Nimble', '2.0.0-rc.1'
end

target 'MyMainTarget' do
    Shared_Pods
end

target 'MyUITests' do
    Shared_Pods
end
0
Darshana

1)TextEditや他のエディタの代わりにPodfileをXcodeに追加して開きます。 (ポッドファイルを表示中に構文を強調表示すると、構文エラーを見つけるプロセスが簡単になります

2)Podfileに次のようにプロジェクトの依存関係を追加します。

def pods
  pod 'AFNetworking', '~> 2.6'
  pod 'ORStackView', '~> 3.0'
  pod 'SwiftyJSON', '~> 2.3'
end

3)podsプロジェクトターゲットのように上記の定義を追加します。

target 'App_Target_Name' do
  pods
end
0
Sachin Nikumbh
platform :ios, '8.0'
target 'YourTargetName' do

  ALL PODS HERE

end

ターミナルを開き、プロジェクトフォルダに行き、コードを入力してください

pod update
0
alicanozkara

私も同じ問題を抱えています

target "TargetName"はPod 'Alamofire'を行い、 '〜> 3.1.4' pod 'SwiftyJSON'、 '〜> 2.3.2'は終了

キャッシュに問題があるようです。PodFileを削除しても、常に古いバージョンのPodFileが読み込まれます。同じエラーが表示されます。それは奇妙だ。

しかし、Pod installを実行しているときに新しい端末を開くと、うまくいきます。

0
Bruce Tsai

新しいバージョンのcocoapod i.i 1.0.1用

pod 'SlideMenuControllerSwift' pod 'SDWebImage' pod 'SearchTextField'

私はエラーを受けていました:

依存関係SlideMenuControllerSwiftは具体的なターゲットでは使用されません。依存関係SDWebImageは具体的なターゲットでは使用されません。依存関係SearchTextFieldは具体的なターゲットでは使用されません。

私がそれを変更したより

ターゲット「YOUR_PROJECT_NAME」を

 pod "YOUR_POD"

終わり

それが働いたより

0
Anil Gupta