I have the following Podfile for my project:
Conflict Between ios package(SDWebImageWebPCoder) and flutter package(flutter_image_compress) During making archive file
target 'WidgetGroupExtension' do
use_frameworks!
use_modular_headers!
pod 'GoogleUtilities'
pod 'Firebase'
# Add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
pod 'Firebase/RemoteConfig'
pod 'SDWebImageWebPCoder'
end
In my Flutter projectâs pubspec.yaml, the package flutter_image_compress: ^2.2.0 is included.
While the build works locally, I encounter an error during the build for deployment, suggesting a conflict with the iOS native package SDWebImageWebPCoder. Is there a way to resolve this issue?
I got the error like this:
Read webview_flutter_wkwebview scheme in 0s.
[04:26:21] Reading xcode project
Finding platform type
[04:26:21] Reading build settingsâŠ
[04:26:21] $ xcodebuild â-projectâ â/Users/[REDACTED]/git/ios/Runner.xcodeprojâ â-targetâ âRunnerâ â-configurationâ âRelease-stgâ â-showBuildSettingsâ
[04:26:22] Read target settings.
Platform type: iOS
[04:26:22] Reading main target
[04:26:22] Creating the Archive âŠ
Starting the Archive âŠ
[04:26:22] $ set -o pipefail && xcodebuild âarchiveâ â-workspaceâ â/Users/[REDACTED]/git/ios/Runner.xcworkspaceâ â-schemeâ âstgâ â-configurationâ âRelease-stgâ â-xcconfigâ â/var/folders/7l/rszmbrmd6tv4pg52z6ql_5rc0000gn/T/2162201188/temp.xcconfigâ â-archivePathâ â/var/folders/7l/rszmbrmd6tv4pg52z6ql_5rc0000gn/T/xcodeArchive2843604277/Runner.xcarchiveâ â-destinationâ âgeneric/platform=iOSâ | xcpretty
error: Multiple commands produce â/Users/[REDACTED]/Library/Developer/Xcode/DerivedData/Runner-fvdlvfvunbwmbcgkbjykdeexifra/Build/Intermediates.noindex/ArchiveIntermediates/stg/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/SDWebImage.frameworkâ
unexpected mutating task (âSetOwnerAndGroup [REDACTED]:staff /Users/[REDACTED]/Library/Developer/Xcode/DerivedData/Runner-fvdlvfvunbwmbcgkbjykdeexifra/Build/Intermediates.noindex/ArchiveIntermediates/stg/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/SDWebImage.frameworkâ) with no relation to prior mutator (âSetOwnerAndGroup [REDACTED]:staff /Users/[REDACTED]/Library/Developer/Xcode/DerivedData/Runner-fvdlvfvunbwmbcgkbjykdeexifra/Build/Intermediates.noindex/ArchiveIntermediates/stg/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/SDWebImage.frameworkâ) (in target âSDWebImageâ from project âPodsâ)
duplicate output file â/Users/[REDACTED]/Library/Developer/Xcode/DerivedData/Runner-fvdlvfvunbwmbcgkbjykdeexifra/Build/Intermediates.noindex/ArchiveIntermediates/stg/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/SDWebImage.frameworkâ on task: MkDir /Users/[REDACTED]/Library/Developer/Xcode/DerivedData/Runner-fvdlvfvunbwmbcgkbjykdeexifra/Build/Intermediates.noindex/ArchiveIntermediates/stg/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/SDWebImage.framework (in target âSDWebImage-Coreâ from project âPodsâ)
duplicate output file ââ on task: MkDir /Users/[REDACTED]/Library/Developer/Xcode/DerivedData/Runner-fvdlvfvunbwmbcgkbjykdeexifra/Build/Intermediates.noindex/ArchiveIntermediates/stg/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/SDWebImage.framework (in target âSDWebImage-Coreâ from project âPodsâ)
âŠ
warning: duplicate output file â/Users/[REDACTED]/Library/Developer/Xcode/DerivedData/Runner-fvdlvfvunbwmbcgkbjykdeexifra/Build/Intermediates.noindex/ArchiveIntermediates/stg/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/SDWebImage.framework/SDWebImageâ on task: Ld /Users/[REDACTED]/Library/Developer/Xcode/DerivedData/Runner-fvdlvfvunbwmbcgkbjykdeexifra/Build/Intermediates.noindex/ArchiveIntermediates/stg/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/SDWebImage.framework/SDWebImage normal (in target âSDWebImage-Coreâ from project âPodsâ)
âŠ
/Users/[REDACTED]/git/ios/Runner.xcodeproj: warning: Multiple targets match implicit dependency for linker flags â-framework SDWebImageâ. Consider adding an explicit dependency on the intended target to resolve this ambiguity. (in target âRunnerâ from project âRunnerâ)
note: Target âSDWebImageâ (in project âPodsâ)
note: Target âSDWebImage-Coreâ (in project âPodsâ)
warning: Run script build phase âFirebase Setupâ will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking âBased on dependency analysisâ in the script phase. (in target âRunnerâ from project âRunnerâ)
warning: Run script build phase âOverride InfoPlistâ will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking âBased on dependency analysisâ in the script phase. (in target âRunnerâ from project âRunnerâ)
note: Run script build phase âRun Scriptâ will be run during every build because the option to run the script phase âBased on dependency analysisâ is unchecked. (in target âRunnerâ from project âRunnerâ)
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/[REDACTED]/git/ios/Runner/GoogleService-Info.plist (in target âRunnerâ from project âRunnerâ)
note: Run script build phase âThin Binaryâ will be run during every build because the option to run the script phase âBased on dependency analysisâ is unchecked. (in target âRunnerâ from project âRunnerâ)
warning: Run script build phase â[firebase_crashlytics] Crashlytics Upload Symbolsâ will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking âBased on dependency analysisâ in the script phase. (in target âRunnerâ from project âRunnerâ)
note: Run script build phase â[CP] Copy Pods Resourcesâ will be run during every build because the option to run the script phase âBased on dependency analysisâ is unchecked. (in target âRunnerâ from project âRunnerâ)
âŠ
** ARCHIVE FAILED **
You can find the last couple of lines of Xcodeâs build log above, but the full log will be also available in the xcodebuild-archive.log
The log file will be stored in $BITRISE_DEPLOY_DIR, and its full path will be available in the $BITRISE_XCODEBUILD_ARCHIVE_LOG_PATH environment variable.
Failed to execute Step main logic:
failed to archive the project:
command failed with exit status 65 (set -o pipefail && xcodebuild âarchiveâ â-workspaceâ â/Users/[REDACTED]/git/ios/Runner.xcworkspaceâ â-schemeâ âstgâ â-configurationâ âRelease-stgâ â-xcconfigâ â/var/folders/7l/rszmbrmd6tv4pg52z6ql_5rc0000gn/T/2162201188/temp.xcconfigâ â-archivePathâ â/var/folders/7l/rszmbrmd6tv4pg52z6ql_5rc0000gn/T/xcodeArchive2843604277/Runner.xcarchiveâ â-destinationâ âgeneric/platform=iOSâ | xcpretty):
error: Multiple commands produce â/Users/[REDACTED]/Library/Developer/Xcode/DerivedData/Runner-fvdlvfvunbwmbcgkbjykdeexifra/Build/Intermediates.noindex/ArchiveIntermediates/stg/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/SDWebImage.frameworkâ
Exporting outputsâŠ
The xcodebuild archive log path is now available in the Environment Variable: BITRISE_XCODEBUILD_ARCHIVE_LOG_PATH (value: /Users/[REDACTED]/deploy/xcodebuild-archive.log)
Failed to execute Step main logic:
failed to archive the project:
command failed with exit status 65 (set -o pipefail && xcodebuild âarchiveâ â-workspaceâ â/Users/[REDACTED]/git/ios/Runner.xcworkspaceâ â-schemeâ âstgâ â-configurationâ âRelease-stgâ â-xcconfigâ â/var/folders/7l/rszmbrmd6tv4pg52z6ql_5rc0000gn/T/2162201188/temp.xcconfigâ â-archivePathâ â/var/folders/7l/rszmbrmd6tv4pg52z6ql_5rc0000gn/T/xcodeArchive2843604277/Runner.xcarchiveâ â-destinationâ âgeneric/platform=iOSâ | xcpretty):
error: Multiple commands produce â/Users/[REDACTED]/Library/Developer/Xcode/DerivedData/Runner-fvdlvfvunbwmbcgkbjykdeexifra/Build/Intermediates.noindex/ArchiveIntermediates/stg/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/SDWebImage.frameworkâ
| |
±â±--------------------------------------------------------------±---------+
| x | Xcode Archive & Export for iOS (Failed) | 21.76 sec |
±â±--------------------------------------------------------------±---------+
| Issue tracker: Issues · bitrise-steplib/steps-xcode-archive · GitHub |
| Source: GitHub - bitrise-steplib/steps-xcode-archive: Xcode Archive for iOS step |
±â±--------------------------------------------------------------±---------+