내 Mac을 포맷 할 때까지 모든 것이 잘 작동했습니다. 포맷 후 (El Capitan
에서 Sierra
로 이동), Cocoapods
이 설치된 저장소를 복제했습니다. pod update
을 작성했습니다. 그리고 모든 것이 pods
으로 엉망이되었습니다. 응용 프로그램을 빌드 할 수 없습니다. 오류는 Cocoapods
(나는 그렇게 생각합니다)입니다. 내가 Cocoapods 1.1.1
으로, Xcode 8.0
및 Swift 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'