Skip to content

On new build system, build failed for archive because of Multiple commands produce #2166

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

Closed
roothybrid7 opened this issue Dec 10, 2018 · 3 comments

Comments

@roothybrid7
Copy link

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

Yes.

[REQUIRED] Step 2: Describe your environment

  • Xcode version: 10.1 (10B61)
  • Firebase SDK version: 5.13.0
  • Firebase Component: Performance
  • Component version: 2.2.1

same as #2165

[REQUIRED] Step 3: Describe the problem

following log when building for archive:

error: Multiple commands produce '/Users/foo/.ghq/github.com/org/ios/DerivedData/App/Build/Intermediates.noindex/ArchiveIntermediates/App/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework':
1) Target 'GoogleUtilities-ac14cd06' has create directory command with output '/Users/foo/.ghq/github.com/org/ios/DerivedData/App/Build/Intermediates.noindex/ArchiveIntermediates/App/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework'
2) Target 'GoogleUtilities-00567490' has create directory command with output '/Users/foo/.ghq/github.com/org/ios/DerivedData/App/Build/Intermediates.noindex/ArchiveIntermediates/App/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework'

Steps to reproduce:

To run archive on new build system with the environment of #2165.

@paulb777
Copy link
Member

Remove pod 'Firebase' from the app extension target.

This is likely an instance of the CocoaPods issue - CocoaPods/CocoaPods#8206. Workarounds include using the old build system or making sure that requested subspecs match between extension and main targets.

However, to take a step back, I don't know of a reason to include pod 'Firebase' in an app extension target, so I recommend removing it and avoiding the CocoaPods bug completely.

@aceisScope
Copy link

In our case, this issue can be solved by removing Firebase from the pod subspec of the unit test target. But then it complains "fail to find Firebase module", the solution of which is described in issue #16.

@morganchen12
Copy link
Contributor

Closing this since it's not actionable here.

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

6 participants