Using Xcode 11.x the app compile with this warning on my target:
Multiple targets match implicit dependency for linker flags '-framework GoogleUtilities'. Consider adding an explicit dependency on the intended target to resolve this ambiguity. (in target 'Lepaya-Dev' from project 'Lepaya')
Target 'GoogleUtilities-00567490' (in project 'Pods')
Target 'GoogleUtilities-ac14cd06' (in project 'Pods')
But is impossible to archive it because of this error:
Multiple commands produce '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework':
1) Target 'GoogleUtilities-00567490' has create directory command with output '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework'
2) Target 'GoogleUtilities-ac14cd06' has create directory command with output '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework'
During archiving the following warnings show up on GoogleUtilities:
Warning Group GoogleUtilities-00567490 Group:
unexpected mutating task ('SetOwnerAndGroup alessio:staff ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework') with no relation to prior mutator ('SetOwnerAndGroup alessio:staff ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework')
unexpected mutating task ('SetMode u+w,go-w,a+rX ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework') with no relation to prior mutator ('SetMode u+w,go-w,a+rX ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework')
Warning Group GoogleUtilities-ac14cd06 Group:
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULAppDelegateSwizzler.h' on task: CpHeader ~/Workspace/iOS/Lepaya/Pods/GoogleUtilities/GoogleUtilities/AppDelegateSwizzler/Private/GULAppDelegateSwizzler.h ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULAppDelegateSwizzler.h
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULApplication.h' on task: CpHeader ~/Workspace/iOS/Lepaya/Pods/GoogleUtilities/GoogleUtilities/AppDelegateSwizzler/Private/GULApplication.h ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULApplication.h
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/Headers/GULLoggerCodes.h' on task: CpHeader ~/Workspace/iOS/Lepaya/Pods/GoogleUtilities/GoogleUtilities/Common/GULLoggerCodes.h ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/Headers/GULLoggerCodes.h
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULAppEnvironmentUtil.h' on task: CpHeader ~/Workspace/iOS/Lepaya/Pods/GoogleUtilities/GoogleUtilities/Environment/third_party/GULAppEnvironmentUtil.h ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULAppEnvironmentUtil.h
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULLogger.h' on task: CpHeader ~/Workspace/iOS/Lepaya/Pods/GoogleUtilities/GoogleUtilities/Logger/Private/GULLogger.h ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULLogger.h
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/Headers/GULLoggerLevel.h' on task: CpHeader ~/Workspace/iOS/Lepaya/Pods/GoogleUtilities/GoogleUtilities/Logger/Public/GULLoggerLevel.h ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/Headers/GULLoggerLevel.h
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULOriginalIMPConvenienceMacros.h' on task: CpHeader ~/Workspace/iOS/Lepaya/Pods/GoogleUtilities/GoogleUtilities/MethodSwizzler/Private/GULOriginalIMPConvenienceMacros.h ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULOriginalIMPConvenienceMacros.h
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULSwizzler.h' on task: CpHeader ~/Workspace/iOS/Lepaya/Pods/GoogleUtilities/GoogleUtilities/MethodSwizzler/Private/GULSwizzler.h ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULSwizzler.h
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/Headers/GULNSData+zlib.h' on task: CpHeader ~/Workspace/iOS/Lepaya/Pods/GoogleUtilities/GoogleUtilities/NSData+zlib/GULNSData+zlib.h ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/Headers/GULNSData+zlib.h
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULMutableDictionary.h' on task: CpHeader ~/Workspace/iOS/Lepaya/Pods/GoogleUtilities/GoogleUtilities/Network/Private/GULMutableDictionary.h ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULMutableDictionary.h
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULNetwork.h' on task: CpHeader ~/Workspace/iOS/Lepaya/Pods/GoogleUtilities/GoogleUtilities/Network/Private/GULNetwork.h ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULNetwork.h
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULNetworkConstants.h' on task: CpHeader ~/Workspace/iOS/Lepaya/Pods/GoogleUtilities/GoogleUtilities/Network/Private/GULNetworkConstants.h ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULNetworkConstants.h
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULNetworkLoggerProtocol.h' on task: CpHeader ~/Workspace/iOS/Lepaya/Pods/GoogleUtilities/GoogleUtilities/Network/Private/GULNetworkLoggerProtocol.h ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULNetworkLoggerProtocol.h
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULNetworkMessageCode.h' on task: CpHeader ~/Workspace/iOS/Lepaya/Pods/GoogleUtilities/GoogleUtilities/Network/Private/GULNetworkMessageCode.h ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULNetworkMessageCode.h
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULNetworkURLSession.h' on task: CpHeader ~/Workspace/iOS/Lepaya/Pods/GoogleUtilities/GoogleUtilities/Network/Private/GULNetworkURLSession.h ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULNetworkURLSession.h
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULReachabilityChecker.h' on task: CpHeader ~/Workspace/iOS/Lepaya/Pods/GoogleUtilities/GoogleUtilities/Reachability/Private/GULReachabilityChecker.h ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULReachabilityChecker.h
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULReachabilityMessageCode.h' on task: CpHeader ~/Workspace/iOS/Lepaya/Pods/GoogleUtilities/GoogleUtilities/Reachability/Private/GULReachabilityMessageCode.h ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULReachabilityMessageCode.h
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULUserDefaults.h' on task: CpHeader ~/Workspace/iOS/Lepaya/Pods/GoogleUtilities/GoogleUtilities/UserDefaults/Private/GULUserDefaults.h ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders/GULUserDefaults.h
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/GoogleUtilities' on task: CreateUniversalBinary ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/GoogleUtilities normal armv7 arm64
duplicate output file '' on task: CreateUniversalBinary ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/GoogleUtilities normal armv7 arm64
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/Modules/module.modulemap' on task: Ditto ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/GoogleUtilities-ac14cd06.build/module.modulemap ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/Modules/module.modulemap
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework' on task: MkDir ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework
duplicate output file '' on task: MkDir ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/Headers' on task: MkDir ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/Headers
duplicate output file '' on task: MkDir ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/Headers
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders' on task: MkDir ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders
duplicate output file '' on task: MkDir ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/PrivateHeaders
duplicate output file '~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/Info.plist' on task: ProcessInfoPlistFile ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework/Info.plist ~/Workspace/iOS/Lepaya/Pods/Target Support Files/GoogleUtilities-ac14cd06/GoogleUtilities-ac14cd06-Info.plist
duplicate output file '' on task: SetMode u+w,go-w,a+rX ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework
duplicate output file '' on task: SetOwnerAndGroup alessio:staff ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework
duplicate output file '' on task: Touch ~/Library/Developer/Xcode/DerivedData/Lepaya-eznvodpnltjakhfwbructrxxmknw/Build/Intermediates.noindex/ArchiveIntermediates/Lepaya-Dev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework
By removing FirebasePerformance (that remove also GTMSessionFetcher and GoogleToolboxForMac) the error is gone and everything works perfectly.
Thank you for your help!
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Looks like a duplicate of #2166. See that issue and CocoaPods/CocoaPods#8206 for workarounds.
As a workaround, I put the GoogleUtilities dependencies as separate pods in my Podfile, before the Firebase pods are resolved and it fixed the issue. These were based off my current Podfile.lock:
pod 'GoogleUtilities/AppDelegateSwizzler'
pod 'GoogleUtilities/MethodSwizzler'
pod 'GoogleUtilities/Network'
pod 'GoogleUtilities/NSData+zlib'
pod 'GoogleUtilities/AppDelegateSwizzler'
pod 'GoogleUtilities/Environment'
pod 'GoogleUtilities/Logger'
pod 'GoogleUtilities/UserDefaults'
pod 'GoogleUtilities/Reachability'
I'm having the same issue.
I have 2 targets as follows:
platform :ios, '13'
target 'SarahClass' do
use_frameworks!
pod 'PromisesSwift'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Storage'
pod 'Firebase/Firestore'
end
target 'SarahClassMac' do
use_frameworks!
pod 'PromisesSwift'
pod 'FirebaseCore'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Storage'
pod 'Firebase/Firestore'
end
Note I dont have FirebasePerformance.
I tried putting the GoogleUtilities dependencies as separate pods, but that
did not work. I still get the same warning.
I noticed that the Podfile.lock has entries like:
FirebaseAuth (6.3.0)
FirebaseAnalytics (6.1.3):
@workingDog Does @ibuprofane's workaround work for you?
no it doesn't. I've tried putting the GoogleUtilities dependencies in my SarahClass target, then in the SarahClassMac target, without success. I get the same warning message. Each time I did a DerivedData purge and recompile. I also tried the pod script solution proposed in
https://medium.com/@GalvinLi/tinysolution-fix-cocoapods-duplicate-implement-warning-5a2e1a505ea8
That did not work either.
Just to be certain, did you put the dependency pods BEFORE the Firebase pods? Mine looks like:
pod 'GoogleUtilities/AppDelegateSwizzler'
pod 'GoogleUtilities/MethodSwizzler'
pod 'GoogleUtilities/Network'
pod 'GoogleUtilities/NSData+zlib'
pod 'GoogleUtilities/AppDelegateSwizzler'
pod 'GoogleUtilities/Environment'
pod 'GoogleUtilities/Logger'
pod 'GoogleUtilities/UserDefaults'
pod 'GoogleUtilities/Reachability'
pod 'FacebookSDK/LoginKit'
pod 'GoogleSignIn'
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
pod 'Firebase/Core'
pod 'Firebase/RemoteConfig'
yes
@workingDog That medium post is about a different issue than the archive problem with GoogleUtility subspec combinations discussed here.
Update on my experiments on making GoogleUtilities archive with my 2 targets.
I have put the GoogleUtilities dependencies in my second target "SarahClassMac".
This removes the duplicate warning message and my app runs well on ios and macos.
But when I try to archive I now get this error:
.../sarahclass/Pods/gRPC-Core/src/core/tsi/ssl_transport_security.cc:45:10:
Did not find header 'bio.h' in framework 'openssl_grpc'
(loaded from '/Users/ringo/Library/Developer/Xcode/
DerivedData/SarahClass-bjosgljdtqrzwnfajsvlvcmzrftf/
Build/Intermediates.noindex/ArchiveIntermediates/
SarahClassMac/BuildProductsPath/Release-maccatalyst/BoringSSL-GRPC')
Did a clean DerivedData, clean build ... and now archive is working.
Thanks all for putting up with my comments.
Looks like a duplicate of #2166. See that issue and CocoaPods/CocoaPods#8206 for workarounds.
This one solved my issue, thank you @paulb777
It looks like the issue here is resolved, so I'll be closing it now. Otherwise, if you're still experiencing this problem and want to continue the discussion, just leave a comment here and we're happy to re-open this.
I have the same problem and can't find any solution or workaround.
I've been modularizing my app and faced with this problem after I've moved some code in separate module inside separate project in common workspace:
+---+MyApp Project
+--------MyApp Target
+---Analytics Project
+--------Analytics Target (Framework)
Analytics framework connected with the app as regular framework (not through Cocoapods)
I had en warning and can't archive the project.
Multiple targets match implicit dependency for linker flags '-framework GoogleUtilities'. Consider adding an explicit dependency on the intended target to resolve this ambiguity. (in target 'MyApp' from project 'MyApp')
Target 'GoogleUtilities-00567490' (in project 'Pods')
Target 'GoogleUtilities-ac14cd06' (in project 'Pods')
Multiple targets match implicit dependency for linker flags '-framework GoogleUtilities'. Consider adding an explicit dependency on the intended target to resolve this ambiguity. (in target 'Analytics' from project 'Analytics')
Target 'GoogleUtilities-00567490' (in project 'Pods')
Target 'GoogleUtilities-ac14cd06' (in project 'Pods')
My Podfile:
workspace 'MyWorkspace.xcworkspace'
platform :ios, '10.0'
def google_utilites
pod 'GoogleUtilities/AppDelegateSwizzler'
pod 'GoogleUtilities/MethodSwizzler'
pod 'GoogleUtilities/Network'
pod 'GoogleUtilities/NSData+zlib'
pod 'GoogleUtilities/AppDelegateSwizzler'
pod 'GoogleUtilities/Environment'
pod 'GoogleUtilities/Logger'
pod 'GoogleUtilities/UserDefaults'
pod 'GoogleUtilities/Reachability'
end
target 'MyApp' do
project 'MyApp'
use_frameworks!
inhibit_all_warnings!
# Google Utilites (I've tried this workaround)
google_utilites
# App's pods
pod 'Crashlytics'
pod 'Firebase/Core'
pod 'Firebase/Performance'
pod 'Firebase/Messaging'
pod 'Firebase/RemoteConfig'
end
target 'Analytics' do
project 'Analytics/Analytics'
use_frameworks!
inhibit_all_warnings!
google_utilites
pod 'Firebase/Core'
end
Xcode 11.1 / Cocoapods 1.8.4
Have anybody thoughts how solve it?
I suggest investigating and resolving the difference between GoogleUtilities-ac14cd06 and GoogleUtilities-00567490
I've solved the issue. It was a lot of fun!
First, I've compared main app target (MyApp) and module target's build settings to be sure that two targets are using the same swift version / c/c++ compiler and its options thanks to @paulb777. Some was different, but setting up the same value in both targets didn't help.
Then I've continued searching the difference and have dove into CocoaPods sources. I've figured out that CP uses deduplication mechanism while it generating targets for Pod project. CP calculates hash using specs, platform and build type for each target. I've added additional logging to PodVariant constructor:
...
! Resolving specs:
- GoogleUtilities/AppDelegateSwizzler
- GoogleUtilities/Environment
- GoogleUtilities/ISASwizzler
- GoogleUtilities/Logger
- GoogleUtilities/MethodSwizzler
- GoogleUtilities/NSData+zlib
- GoogleUtilities/Network
- GoogleUtilities/Reachability
- GoogleUtilities/UserDefaults
platform iOS 10.0, type: dynamic framework
hash: 4227189965566402153
...
! Resolving specs:
- GoogleUtilities/AppDelegateSwizzler
- GoogleUtilities/Environment
- GoogleUtilities/ISASwizzler
- GoogleUtilities/Logger
- GoogleUtilities/MethodSwizzler
- GoogleUtilities/NSData+zlib
- GoogleUtilities/Network
- GoogleUtilities/Reachability
platform iOS 10.0, type: dynamic framework
hash: 98148339442766402153
...
and figured out that platform and build type was the same, but specs included different set of pieces of GoogleUtilites. That was a point! Main target was depend additionally on GoogleUtilites/UserDefaults because of dependency on other Firebase parts.
So, solution was to create full single set of GoogleUtilities parts:
def google_utilites
pod 'GoogleUtilities/AppDelegateSwizzler'
pod 'GoogleUtilities/Environment'
pod 'GoogleUtilities/ISASwizzler'
pod 'GoogleUtilities/Logger'
pod 'GoogleUtilities/MethodSwizzler'
pod 'GoogleUtilities/NSData+zlib'
pod 'GoogleUtilities/Network'
pod 'GoogleUtilities/Reachability'
pod 'GoogleUtilities/UserDefaults'
end
and use it definition in both targets in Podfile. Now I have only one GoogleUtilities target in Pod project and all warnings gone.
If you faced with similar problem:
Hope it help to somebody.
Most helpful comment
I've solved the issue. It was a lot of fun!
First, I've compared main app target (MyApp) and module target's build settings to be sure that two targets are using the same swift version / c/c++ compiler and its options thanks to @paulb777. Some was different, but setting up the same value in both targets didn't help.
Then I've continued searching the difference and have dove into CocoaPods sources. I've figured out that CP uses deduplication mechanism while it generating targets for Pod project. CP calculates hash using specs, platform and build type for each target. I've added additional logging to PodVariant constructor:
and figured out that platform and build type was the same, but specs included different set of pieces of GoogleUtilites. That was a point! Main target was depend additionally on GoogleUtilites/UserDefaults because of dependency on other Firebase parts.
So, solution was to create full single set of GoogleUtilities parts:
and use it definition in both targets in Podfile. Now I have only one GoogleUtilities target in Pod project and all warnings gone.
If you faced with similar problem:
Hope it help to somebody.