2016-10-03 3 views
0

명령 pod install을 실행하는 중에 다음 오류가 발생합니다.'pod install'명령을 통해 라이브러리를 설치할 수 없습니다.

gsirn-021308:ApplePaySwag-Starter chandeln$ ls -l 
total 16 
[email protected] 16 chandeln staff 544 Oct 3 16:56 ApplePaySwag 
[email protected] 5 chandeln staff 170 Oct 3 16:56 ApplePaySwag.xcodeproj 
drwxr-xr-x 4 chandeln staff 136 Sep 15 15:38 ApplePaySwag.xcworkspace 
[email protected] 4 chandeln staff 136 Sep 15 14:21 ApplePaySwagTests 
[email protected] 1 chandeln staff 455 Oct 3 17:44 Podfile 
-rw-r--r-- 1 chandeln staff 209 Sep 19 11:12 Podfile.lock 
drwxr-xr-x 8 chandeln staff 272 Oct 3 17:44 Pods 


gsirn-021308:ApplePaySwag-Starter chandeln$ pod --version 
1.0.1 

Podfile

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

target 'ApplePaySwag' do 

    # Comment this line if you're not using Swift and don't want to use dynamic frameworks 
    use_frameworks! 

    # Pods for ApplePaySwag 
    pod 'SwiftyJSON' 
    pod 'SwiftyXMLParser', :git => 'https://github.com/yahoojapan/SwiftyXMLParser.git' 

    target 'ApplePaySwagTests' do 
    inherit! :search_paths 
    # Pods for testing 
    end 

end 

내가 여기에 놓친 거지 무엇 확실하지 :

gsirn-021308:ApplePaySwag-Starter chandeln$ pod install 
Analyzing dependencies 
[!] Unable to find a target named `ApplePaySwag`, did find ` ` and `ApplePaySwagTests`. 

여기 내 디렉토리 구조입니다. 안내해주십시오.

+0

'xcodebuild -list'의 출력은 무엇입니까? –

+0

여기에있는 대상은 파일이 아니며, xcodeproj에 설명 된 빌드 대상입니다. xcworkspace를 열고 ApplePaySwag.xcodeproj를 선택하고 "General", "Build settings"등의 막대 안쪽에서 왼쪽으로 파란색 xcodeproj 아이콘을 클릭하고 이름이 " ". –

+0

Podfile 코드를 게시 할 수 있습니까? – Aaron

답변

1

이 가능으로 표시하고 질문을 닫을 수 있도록 응답으로 추가 :

여기에 목표는 당신의 xcodeproj 내부 설명 빌드 대상의, 파일이 아닙니다. xcworkspace를 열고 ApplePaySwag.xcodeproj를 선택하고 "General", "Build settings"등의 막대 안쪽에서 왼쪽으로 파란색 xcodeproj 아이콘을 클릭하고 이름이 " ".

0

포드가 정확한 것처럼 보이지만 설치하려는 코코아 포드가 정확하지 않은 것처럼 보일 때 가장 좋은 방법은 두 번 클릭하여 코코아 포드의 정확한 이름을 입력하는 것입니다.

관련 문제