2

I ran my app on simulator and everything works fine but I keep getting this error on flutter build ipa. Pls anyone help with how to fix it?? I think this is caused by ImageNotification extension.

Error (Xcode): Multiple commands produce '/Users/hiidee/Library/Developer/Xcode/DerivedData/Runner-afelnukxgwdlvvdqgngpnpmsfmoc/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework':

  1. Target 'GoogleUtilities-00567490' has create directory command with output '/Users/hiidee/Library/Developer/Xcode/DerivedData/Runner-afelnukxgwdlvvdqgngpnpmsfmoc/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework'
  2. Target 'GoogleUtilities-54e75ca4' has create directory command with output '/Users/hiidee/Library/Developer/Xcode/DerivedData/Runner-afelnukxgwdlvvdqgngpnpmsfmoc/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework'

Encountered error while archiving for device.

  • Did you checked https://stackoverflow.com/questions/52398521/flutter-ios-build-failure-error-with-multiple-commands-after-the-xcode-upgrade#answer-66985464 ? – kakaiikaka Sep 18 '22 at 11:55
  • None of the issues worked for me. But i just found it that the line pod 'GoogleUtilities' is missing from my podfile in ios. I added that and the build is successful. – Hadharm Hiidee Sep 18 '22 at 14:55
  • Please post your solution as an answer here – Bilal Saeed Sep 19 '22 at 12:35

1 Answers1

4

I was able to solve it by adding below line to my podfile inside ios folder

pod 'GoogleUtilities'