[ios] cocoapods 버전 1.0.0.beta.1에서 포드 설치 표시 오류

내 podfile이 작동했지만 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'



답변

각 포드에 대한 대상을 지정해야합니다.

예를 들어 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


답변

cocoapods가 새로 변경된 후 podfile에 다음 줄을 추가해야합니다.

target "YOUR_PROJECT_NAME" do

     pod "YOUR_POD"

end


답변

CocoaPods 웹 사이트에서 :

CocoaPods는 pod init스마트 기본값으로 Podfile을 작성 하는 명령을 제공합니다 . 사용해야합니다.


답변

아래와 같이 포드를 추가 target 'your target' do하고 end주변을 둘러 봐야합니다 .

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다시 실행해야 할 수도 있습니다 .


답변

오늘도 같은 문제가 있습니다. 완화를 위해 Cocoapod를 분리 한 다음 버전 0.39를 다시 설치하십시오.

제거 방법은 다음과 같습니다. /superuser/686317/how-to-fully-uninstall-the-cocoapods-from-the-mac-machine

이 답변은 근본 원인을 해결하지는 않지만 차단을 해제 할 수 있습니다. 의견을 남길 평판이 충분하지 않으므로 차단을 해제하기 위해 여기에 답변을 드리겠습니다.


답변

podfile에서이 작업을 수행했습니다.

소스 ‘ https://github.com/CocoaPods/Specs.git

플랫폼 : ios, ‘8.0’

대상 “targetprojectname”은

포드 “AFNetworking”

종료


답변

내 podfile이 올바르게 포맷되었으므로 답이 효과가 없었습니다. 내가 해야 할 일은 다음과 같은 것이 었습니다. 첫째,

  1. 보석 제거 cocoapods
  2. rvm은 안정적입니다 –auto-dotfiles
  3. RVM 사용 루비 -2.1.2
  4. rvm osx-ssl-certs는 모두 업데이트
  5. rvm rubygems 최신
  6. sudo gem 소스 -r https://rubygems.org/
  7. sudo gem 소스 -a http://rubygems.org/
  8. gem install cocoapods -v 1.0.0.beta.1 –pre -V

SSL 오류, 시간 초과 오류 및 경로 오류가 발생했습니다. 이것은 이것들을 모두 고쳤다. 나는이 답변을 누군가에게 도움이되기를 희망 하여이 답변을 추가하고 있습니다.이 문제가있는 대부분의 사람들은이 모든 단계를 거칠 필요가 없으며 필요하지 않은 경우에는 수행하지 않아야합니다. 이는 https를 사용하지 않도록 d / l 링크를 변경하므로이 문제를 해결 한 후에는 다시 변경해야합니다. 이것 , 이것 , 그리고이 스택 오버플로 질문 마침내 이러한 문제를 해결하는 데 도움이되었습니다.