2016-11-16 2 views
4

내 Mac을 포맷 할 때까지 모든 것이 잘 작동했습니다. 포맷 후 (El Capitan에서 Sierra로 이동), Cocoapods이 설치된 저장소를 복제했습니다. pod update을 작성했습니다. 그리고 모든 것이 pods으로 엉망이되었습니다. 응용 프로그램을 빌드 할 수 없습니다. 오류는 Cocoapods (나는 그렇게 생각합니다)입니다. 내가 Cocoapods 1.1.1으로, Xcode 8.0Swift 2.3을 사용하고ld : 프레임 워크를 찾을 수 없음 GTMOAuth2

ld: framework not found GTMOAuth2 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

다음과 같이 오류입니다.

Podfile은 다음과 같습니다

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

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

    # Firebase Pods 
    pod 'Firebase' 
    pod 'Firebase/Messaging' 
    pod 'Firebase/Auth' 
    pod 'Firebase/Crash' 

    # Google Pods 
    pod 'Google/SignIn' 
    pod 'Google/Analytics' 

    # Crashlytics 
    pod 'Fabric' 
    pod 'Crashlytics' 

    # Facebook 
    # pod 'FacebookCore' 

    # Pods for ProjectName 

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

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

또한 수신 경고에 대한 프레임 워크 경로. 다음과 같이됩니다 :

ld: warning: directory not found for option '-F/Users/<user>/Library/Developer/Xcode/DerivedData/<project-name>-ftvbhpamiyfzmwdfpxknyvpcypde/Build/Products/Debug-iphonesimulator/GTMOAuth2' 

ld: warning: directory not found for option '-F/Users/<user>/Library/Developer/Xcode/DerivedData/<project-name>-ftvbhpamiyfzmwdfpxknyvpcypde/Build/Products/Debug-iphonesimulator/GTMSessionFetcher' 

ld: warning: directory not found for option '-F/Users/<user>/Library/Developer/Xcode/DerivedData/<project-name>-ftvbhpamiyfzmwdfpxknyvpcypde/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac' 

답변

15

.xcworkspace (하지 .xcodeproj)을 선택하여 프로젝트를 다시 그 3 경고 및 1 오류는 사라질 것입니다.

0

이 문제를 해결하려면 프로젝트 빌드 설정에서 이 No으로 설정되어 있는지 확인하십시오. 첨부 된 캡쳐 화면에 표시된대로 모든 포드 타겟에서 Build Active Architecture Only에서 No으로 설정하십시오.

enter image description here

그리고 깨끗하고 프로젝트를 다시 빌드합니다.