Closed musatarosu335 closed 4 months ago
I am receiving the same issue today.
Running thru the logs it looks like FirebaseFirestore and FireBaseFirestoreBinary are both producing the FirebaseFirestore_Privacy.bundle file causing the build to fail
Same:
Error (Xcode): Multiple commands produce '/Users/UserName/Library/Developer/Xcode/DerivedData/AppName/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseFirestore_Privacy.bundle'
After update to 10.24
Hey everyone, assuming you're running a Flutter project. Please run:
flutter clean
cd ios && rm -rf Pods && rm Podfile.lock
pod cache clean --all
and try your normal build process. It should work now.
Closing as this is fixed 👍
With the following Podfile, the cleanup steps don't fix it:
# Override Firebase SDK Version
$FirebaseSDKVersion = '10.23.0'
# Uncomment this line to define a global platform for your project
platform :ios, '13'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
target 'Runner' do
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => $FirebaseSDKVersion
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
# Using the un-qualified names means you can swap in different implementations, for example ccache
# https://reactnative.dev/docs/0.69/build-speed#xcode-specific-setup
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
config.build_settings["CC"] = "clang"
config.build_settings["LD"] = "clang"
config.build_settings["CXX"] = "clang++"
config.build_settings["LDPLUSPLUS"] = "clang++"
end
flutter_additional_ios_build_settings(target)
end
end
UPDATE
The problem for me was only in version 10.23.0
, updating to 10.24.0
fixed the problem
I have updated the Podfile as shown below.
However, when I tried to execute "Product > Archive" in Xcode, an error occurred that prevented the archiving process.
Do you have any solutions to this issue?
Thanks