Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GoogleUtilities installed twice, impossible to archive app on Xcode 11.x #4087

Closed
Tokta opened this issue Oct 16, 2019 · 16 comments
Closed

GoogleUtilities installed twice, impossible to archive app on Xcode 11.x #4087

Tokta opened this issue Oct 16, 2019 · 16 comments

Comments

@Tokta
Copy link

Tokta commented Oct 16, 2019

[READ] Step 1: Are you in the right place?

  • For issues or feature requests related to the code in this repository
    file a Github issue.
    • If this is a feature request make sure the issue title starts with "FR:".
  • For general technical questions, post a question on StackOverflow
    with the firebase tag.
  • For general Firebase discussion, use the firebase-talk
    google group.
  • For help troubleshooting your application that does not fall under one
    of the above categories, reach out to the personalized
    Firebase support channel.

[REQUIRED] Step 2: Describe your environment

  • Xcode version: 11.0 and 11.1
  • Firebase SDK version: 6.10.0 installed via Cocoapods
  • Firebase Component and version:
    Using Auth0 (1.19.0)
    Using Crashlytics (3.14.0)
    Using Fabric (1.10.2)
    Using Firebase 6.10.0
    Using FirebaseABTesting (3.1.2)
    Using FirebaseAnalytics (6.1.3)
    Using FirebaseAnalyticsInterop (1.4.0)
    Using FirebaseCore (6.3.1)
    Using FirebaseCoreDiagnostics (1.1.1)
    Using FirebaseCoreDiagnosticsInterop (1.0.0)
    Using FirebaseDynamicLinks (4.0.5)
    Using FirebaseInAppMessaging (0.15.5)
    Using FirebaseInstanceID (4.2.5)
    Using FirebaseMessaging (4.1.6)
    Using FirebasePerformance (3.1.5)
    Using FirebaseRemoteConfig (4.4.2)
    Using GTMSessionFetcher (1.2.2)
    Using GoogleAppMeasurement (6.1.3)
    Using GoogleDataTransport (3.0.1)
    Using GoogleDataTransportCCTSupport (1.2.1)
    Using GoogleToolboxForMac (2.2.1)
    Using GoogleUtilities 6.3.1

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

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

Important:

By removing FirebasePerformance (that remove also GTMSessionFetcher and GoogleToolboxForMac) the error is gone and everything works perfectly.

Thank you for your help!

@google-oss-bot

This comment has been minimized.

@paulb777
Copy link
Member

Looks like a duplicate of #2166. See that issue and CocoaPods/CocoaPods#8206 for workarounds.

@ibuprofane
Copy link

ibuprofane commented Oct 18, 2019

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'

@workingDog
Copy link

workingDog commented Oct 19, 2019

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)

    • GoogleUtilities/AppDelegateSwizzler (~> 6.2)
      ....
  • FirebaseAnalytics (6.1.3):

    • GoogleUtilities/AppDelegateSwizzler (~> 6.0)
      ...

@paulb777
Copy link
Member

@workingDog Does @ibuprofane's workaround work for you?

@workingDog
Copy link

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.

@ibuprofane
Copy link

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'

@workingDog
Copy link

yes

@paulb777
Copy link
Member

@workingDog That medium post is about a different issue than the archive problem with GoogleUtility subspec combinations discussed here.

@workingDog
Copy link

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')

@workingDog
Copy link

Did a clean DerivedData, clean build ... and now archive is working.
Thanks all for putting up with my comments.

@Tokta
Copy link
Author

Tokta commented Oct 21, 2019

Looks like a duplicate of #2166. See that issue and CocoaPods/CocoaPods#8206 for workarounds.

This one solved my issue, thank you @paulb777

@rizafran
Copy link
Contributor

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.

@kei-sidorov
Copy link

kei-sidorov commented Oct 23, 2019

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:

+MyWorkaspce
+---+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?

@paulb777
Copy link
Member

I suggest investigating and resolving the difference between GoogleUtilities-ac14cd06 and GoogleUtilities-00567490

@kei-sidorov
Copy link

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:

  • Make sure platform and OS version are the same
  • Manually create sets of dependencies of problem pod and combine it into unique single set. Use in both targets.

Hope it help to somebody.

@firebase firebase locked and limited conversation to collaborators Nov 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants