Multiple commands produce framework 에러 해결

apwierk·2023년 11월 17일
0

오류 해결

목록 보기
5/9

CocoaPods를 이용하여 Notification Image를 추가할 경우
Podfile에 해당 코드를 추가하여 fcm 푸시메시지에 이미지를 추가하도록 구현했다.

target 'notificationServiceExtension' do
  use_frameworks!
  platform :ios, '13.0'
  
  pod 'Firebase/Messaging'
end

기기에 빌드하여 테스트할 경우에는 문제가 없었지만, 테스트 플라이스 배포를 하기위해 Archive하는 과정에서 문제가 발생.

Multiple commands produce '/Users/...appgPath.../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework'

GoogleUtilities..어쩌고 파일이 여러 개 있는 것을 확인.

아마 podfile 두 개의 target에서 GoogleUtilites를 따로 저장하는 것으로 이해했다.

그래서 두 target에 모두 GoogleUtilites를 추가해주니 해결되었다.


target 'appName' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!
  platform :ios, '13.0'
  
  # Pods for appName
  pod 'RxSwift', '6.1.0'
  pod 'RxCocoa', '6.1.0'
  pod 'Firebase/Analytics'
  pod 'Firebase/Messaging'
  pod 'FirebaseDynamicLinks'
  pod 'Alamofire', '~> 5.2'
  pod 'KakaoSDKAuth'
  pod 'KakaoSDKUser'
  pod 'KakaoSDKCommon'
  pod 'GoogleSignIn'
  pod 'FBSDKLoginKit'
  pod 'GoogleUtilities'
end

target 'notificationServiceExtension' do
  use_frameworks!
  platform :ios, '13.0'
  
  pod 'GoogleUtilities'
  pod 'Firebase/Messaging'
end

출처

profile
iOS 꿈나무 개발자

0개의 댓글