invertase / firestore-ios-sdk-frameworks

⚡ Precompiled Firestore iOS SDKs extracted from the Firebase iOS SDK repository release downloads for faster build times.
Apache License 2.0
427 stars 48 forks source link

[Archiving failing] [XCode 14.3] Multiple commands produce GoogleUtilities #72

Closed RoyalCoder88 closed 7 months ago

RoyalCoder88 commented 1 year ago

Hi friends,

I have a problem suddenly by archiving my app in XCode 14.3 I'm getting this strange error:


Showing All Errors Only

Prepare build
note: Building targets in dependency order
error: Multiple commands produce '/Users/razvanu/Library/Developer/Xcode/DerivedData/Runner-aeiwqtydtcicmbcjpyzoxtfwhzig/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework'
    note: Target 'GoogleUtilities-00567490' (project 'Pods') has create directory command with output '/Users/razvanu/Library/Developer/Xcode/DerivedData/Runner-aeiwqtydtcicmbcjpyzoxtfwhzig/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework'
    note: Target 'GoogleUtilities-54e75ca4' (project 'Pods') has create directory command with output '/Users/razvanu/Library/Developer/Xcode/DerivedData/Runner-aeiwqtydtcicmbcjpyzoxtfwhzig/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework'

I tried all of the solutions from the web nothing works for me 😦 please help/guide me with this issue, thanks in advance!

P.S: I'm able to build but not archive the app!

iMrOwl commented 1 year ago

hi, did you manage to solve the problem?

vborbely commented 11 months ago

hi, did you manage to solve the problem?

I found that in some forum post that you have to add pod 'GoogleUtilities' into each of your target Pod file.

target 'Release' do
  pod 'GoogleUtilities'
  pod 'Firebase'
  use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']
...
end

I hope this helps to someone.

glonaldo70 commented 10 months ago

any solution?

mikehardy commented 10 months ago

I think we'll need a reproduction shared to troubleshoot this one Does it happen when you just use the native firebase-ios-sdk and compile it vs this precompiled repackaging? (if it works using firebase-ios-sdk instead of this repo, you can still enjoy fast builds with a compiler cache strategy like explained here https://reactnative.dev/docs/build-speed#use-a-compiler-cache )