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
plus : pods dir, Podfile.lock 및 xcworkspace 파일을 제거하고 pod install
다시 실행해야 할 수도 있습니다 .
오늘도 같은 문제가 있습니다. 완화를 위해 Cocoapod를 분리 한 다음 버전 0.39를 다시 설치하십시오.
here is the link how to uninstall: https://superuser.com/questions/686317/how-to-fully-uninstall-the-cocoapods-from-the-mac-machine
This answer does not fix the root cause, but can get you unblocked. I don't have enough reputation to leave comments, so I put an answer here to unblock you.
I was this operation in the podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
target "targetprojectname" do
pod "AFNetworking"
end
My podfile was formatted correctly, so the answer did not work for me. What I had to do was all of the following: First,
- gem uninstall cocoapods
- rvm get stable --auto-dotfiles
- rvm use ruby-2.1.2
- rvm osx-ssl-certs update all
- rvm rubygems latest
- sudo gem sources -r https://rubygems.org/
- sudo gem sources -a http://rubygems.org/
- gem install cocoapods -v 1.0.0.beta.1 --pre -V
I had SSL errors, timeout errors, and path errors. This fixed all of these. I am adding this answer in hopes that it will help someone - most people with this issue will NOT need to go through all of these steps, and should not do so if it is not neccesary. Keep in mind, that this is changing the d/l link to not use https, so be sure to change it back once you have resolved this issue. This, this, and this Stack Overflow question helped me finally resolve these issues.
I have the same problem, and even I changed to
target "TargetName" do pod 'Alamofire', '~> 3.1.4' pod 'SwiftyJSON', '~> 2.3.2' end
It seems has some cache problem, it always read old version of PodFile, even I remove PodFile, the same error show up. It's weird.
However, when I open a new terminal , running pod install, it works.
1) Add and Open Podfile in Xcode instead of TextEdit or any other editor. (Syntax highlighting while viewing a pod file will simplify the process of finding syntax errors)
2) Add project dependancies as follows in your Podfile
def pods
pod 'AFNetworking', '~> 2.6'
pod 'ORStackView', '~> 3.0'
pod 'SwiftyJSON', '~> 2.3'
end
3) Add above define pods in project target as follows
target 'App_Target_Name' do
pods
end
for New version of cocoapods i.i 1.0.1
pod 'SlideMenuControllerSwift' pod 'SDWebImage' pod 'SearchTextField'
I was getting error:
The dependency SlideMenuControllerSwift
is not used in any concrete target. The dependency SDWebImage
is not used in any concrete target. The dependency SearchTextField
is not used in any concrete target.
than i changed it to
target "YOUR_PROJECT_NAME" do
pod "YOUR_POD"
end
than it worked
Pod file is just a ruby file, you need to specify required pod for all target. one of the available solution is to define all required pods in shared_pos, and use that for each target.
For ex:
Podfile
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
platform :ios, '8.0'
target 'YourTargetName' do
ALL PODS HERE
end
open terminal, go to project folder and enter code
pod update
'Programming' 카테고리의 다른 글
각도 포트를 4200에서 다른 포트로 변경하는 방법 (0) | 2020.05.21 |
---|---|
버튼 모서리를 둥글게하는 방법 (0) | 2020.05.21 |
Docker에서 디렉토리 변경 명령? (0) | 2020.05.21 |
한 요소가 다른 요소에 포함되어 있는지 Javascript를 확인하는 방법 (0) | 2020.05.21 |
자바에서 소수점 이하 2 자리까지 반올림? (0) | 2020.05.21 |