5

포드를 통해 파이어베이스 설정을 구현 중입니다.ld : -lGoogleToolboxForMac에 라이브러리가 없습니다.

내 Pod 파일은 다음과 같습니다.

# Uncomment the next line to define a global platform for your project 
platform :ios, '8.0' 
# $(PROJECT_DIR)/build/Debug-iphoneos/GoogleToolboxForMac lib search path 
target 'ProductName' do 
    # Uncomment the next line if you're using Swift or would like to use dynamic frameworks 
    # use_frameworks! 

    # Pods for mCura 

pod 'Firebase/Core' 
pod 'Firebase/Messaging' 

end 

iPad 시뮬레이터로 모든 것이 잘됩니다. 그것의 달리기 그러나 나가 iDevice에있는 나의 신청을 달릴 때. 라이브러리를 찾을 수 없습니다. 이미이 오류 &을 제거하기 위해 이일 낭비

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

내가 인터넷에서 찾을 수있는 모든 것을 시도했다. firebase pod가 설치되면 GoogleToolboxForMac 라이브러리가 자동으로 설치됩니다.

답변

11

다음 코드로 내 pod 파일을 변경하고 pod를 다시 설치하십시오. GoogleToolboxForMac에 필요한 모든 파일을 설치했습니다.

# Uncomment the next line to define a global platform for your project 
platform :ios, '9.0' 
target 'ProductName' do 

    # Uncomment the next line if you're using Swift or would like to use dynamic frameworks 
    # use_frameworks! 

pod 'Firebase/Core' 
pod 'Firebase/Messaging' 
pod 'GoogleToolboxForMac', '~> 2.1' 

end 

변경 계획 일반 iOS 장비 및 구축)

1 포드

를 설치 한 후.

2) 빌드 성공 후 빨간색 대신 검은 색으로 libGoogleToolboxForMac.a 파일을 볼 수 있습니다.

3) 이제 Device를 선택하고 iDevice에서 빌드를 실행하십시오. 스크린 샷을 따르십시오.

enter image description here

또는 당신은 내가이 예외를 얻고 있었다 libGoogleToolboxForMac.a

+0

맞습니다. 감사! – chaunv

1

빌드 라이브러리를 가질 수 있습니다

enter image description here

그것은 엑스 코드에서/플랫폼/IOS 폴더를 여는 대신 후 고정 /platform/ios/MyApp.xcodeproj 파일.