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'
각 포드에 대한 대상을 지정해야 합니다.
예를 들어 이전에 다음과 같이 Pod 파일을 작성한 경우:
pod 'Alamofire', '~> 3.1.4'
pod 'SwiftyJSON', '~> 2.3.2'
로만 바꿔주세요.
target "TargetName" do
pod 'Alamofire', '~> 3.1.4'
pod 'SwiftyJSON', '~> 2.3.2'
end
cocoa pods에 대한 새로운 변경 후, 당신은 당신의 podfile에 다음 행을 추가해야 합니다.
target "YOUR_PROJECT_NAME" do
pod "YOUR_POD"
end
코코아 포드 웹사이트에서:
코코아 포드는 다음을 제공합니다.
pod init스마트 기본값으로 Pod 파일을 만드는 명령입니다.사용하셔야 합니다.
추가해야 합니다.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
더하기: podsdir, Podfile.lock 및 xcworkspace 파일을 제거해야 할 수 있습니다.pod install다시.
저는 오늘 같은 문제를 받았습니다.완화를 위해 cocoapod를 설치하지 않고 버전 0.39를 다시 설치합니다.
제거 방법 링크는 다음과 같습니다. https://superuser.com/questions/686317/how-to-fully-uninstall-the-cocoapods-from-the-mac-machine
이 대답은 근본 원인을 해결하지는 않지만 차단을 해제할 수 있습니다.제가 댓글을 달만큼의 명성이 없기 때문에, 저는 당신의 차단을 해제하기 위해 여기에 답변을 올렸습니다.
나는 포드 파일에서 이 작업을 수행했습니다.
출처 'https://github.com/CocoaPods/Specs.git'
플랫폼:ios, '8.0'
대상 "target project name" 작업
포드 "AF 네트워킹"
끝.
포드 파일의 형식이 올바르게 지정되어 있어 응답이 제대로 작동하지 않았습니다.제가 해야 할 일은 다음과 같습니다.첫번째,
- 보석 제거 코코파드
- rvm 안정화 --자동 점 파일 가져오기
- rvm은 ruby-2.1.2를 사용합니다.
- rvmosx-ssl-certs 모두 업데이트
- rvm 루비젬 최신
- sudo gem sources -r https://rubygems.org/
- sudo gem 출처 -a http://rubygems.org/
- gem 설치 cocoapods -v 1.0.0.beta.1 --pre-V.
SSL 오류, 시간 초과 오류 및 경로 오류가 있었습니다.이것은 이 모든 것을 고쳤습니다.누군가에게 도움이 되기를 바라며 이 답변을 추가합니다. 이 문제를 가진 대부분의 사람들은 이러한 모든 단계를 거칠 필요가 없으며, 필요하지 않다면 그렇게 해서는 안 됩니다.이 경우 d/l 링크가 https를 사용하지 않도록 변경되므로 이 문제를 해결한 후 다시 변경해야 합니다.이 문제, 이 문제, 그리고 이 스택 오버플로 문제가 이러한 문제를 해결하는 데 도움이 되었습니다.
저도 같은 문제가 있고, 심지어 저도 변했어요.
대상 "TargetName" docod 'Alamofire', '~> 3.1.4' pod 'SwiftyJSON', '~> 2.3.2' 종료
캐시 문제가 있는 것 같습니다. 항상 이전 버전의 PodFile을 읽습니다. PodFile을 제거해도 동일한 오류가 나타납니다.이상해요.
하지만, 제가 새로운 터미널을 열었을 때, 포드 설치를 실행하면 됩니다.
TextEdit 또는 다른 편집기 대신 Xcode로 포드 파일을 추가하고 엽니다.(pod 파일을 보는 동안 구문 강조 표시를 하면 구문 오류를 찾는 프로세스가 간소화됩니다.)
Pod 파일에 다음과 같이 프로젝트 종속성 추가
def pods
pod 'AFNetworking', '~> 2.6'
pod 'ORStackView', '~> 3.0'
pod 'SwiftyJSON', '~> 2.3'
end
프로젝트 대상에 위의 정의 포드를 다음과 같이 추가합니다.
target 'App_Target_Name' do
pods
end
새로운 버전의 cocoapods i.i 1.0.1의 경우
pod 'SlideMenuControllerSwift' pod 'SDWebImage' pod 'SearchTextField'
오류가 발생했습니다.
종성SlideMenuControllerSwift구체적인 대상에는 사용되지 않습니다. 종성SDWebImage구체적인 대상에는 사용되지 않습니다. 종성SearchTextField구체적인 대상에는 사용되지 않습니다.
내가 바꾼 것보다
대상 "YOUR_PROJECT_NAME" 작업
pod "YOUR_POD"
끝.
효과가 있는 것보다
포드 파일은 루비 파일일 뿐이므로 모든 대상에 필요한 포드를 지정해야 합니다.사용 가능한 솔루션 중 하나는 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
platform :ios, '8.0'
target 'YourTargetName' do
ALL PODS HERE
end
터미널 열기, 프로젝트 폴더로 이동하여 코드 입력
pod update
언급URL : https://stackoverflow.com/questions/34556991/pod-install-displaying-error-in-cocoapods-version-1-0-0-beta-1
'programing' 카테고리의 다른 글
| C에서 서명되지 않은 int와 서명된 int의 차이점은 무엇입니까? (0) | 2023.06.18 |
|---|---|
| Angular 2의 JSON 파이프가 작동하지 않습니다. (0) | 2023.06.18 |
| Python Panda는 한 열의 NaN을 두 번째 열의 해당 행 값으로 바꿉니다. (0) | 2023.06.18 |
| Possible to create Oracle Database object types inside of PL/SQL? (0) | 2023.06.18 |
| 유형 스크립트: 인터페이스의 상수 (0) | 2023.06.18 |