Description
Hey,
I saw that this issue was already raised before and then closed by the author here #221
We consistently get this error when archiving the project on CI, i.e. a command line build. I cannot reproduce the issue locally despite having a very similar setup to the CI runner.
Checklist
Expected behavior
The app should compile fine
Actual behavior
The build fails with errors like this
[11:36:26]: ▸ ::error file=/Users/XXX/Library/Developer/Xcode/DerivedData/Photoroom-fyzrycmbowqaufaazarkvrwffnvz/Build/Intermediates.noindex/ArchiveIntermediates/Photoroom/IntermediateBuildFilesPath/swift-sharing.build/Release-iphoneos/Sharing.build/DerivedSources/resource_bundle_accessor.swift,line=1,col=14::ambiguous implicit access level for import of 'Foundation'; it is imported as 'package' elsewhere
[11:36:26]: ▸ import class Foundation.Bundle
This seems to be coming from Deprecations.swift
Reproducing project
I unfortunately cannot share more than the description, but here's the build command that's run via fastlane
set -o pipefail && xcodebuild -workspace Photoroom.xcworkspace -scheme Photoroom -configuration Release -destination 'generic/platform=iOS' -archivePath /Users/XXX/Library/Developer/Xcode/Archives/2026-07-07/Photoroom\ 2026-07-07\ 11.34.27.xcarchive GCC_PREPROCESSOR_DEFINITIONS='$(inherited) BUILD_TYPE_ALPHA=1' OTHER_SWIFT_FLAGS='-D BUILD_TYPE_ALPHA' -skipMacroValidation archive | tee /Users/XXX/Library/Logs/gym/Photoroom-Photoroom.log | xcbeautify -q --is-ci
Sharing version information
2.9.1
Destination operating system
iOS 18
Xcode version information
Version 26.6 (17F113)
Swift Compiler version information
swift-driver version: 1.148.6 Apple Swift version 6.3.2 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
Target: arm64-apple-macosx26.0
Description
Hey,
I saw that this issue was already raised before and then closed by the author here #221
We consistently get this error when archiving the project on CI, i.e. a command line build. I cannot reproduce the issue locally despite having a very similar setup to the CI runner.
Checklist
mainbranch of this package.Expected behavior
The app should compile fine
Actual behavior
The build fails with errors like this
This seems to be coming from Deprecations.swift
Reproducing project
I unfortunately cannot share more than the description, but here's the build command that's run via fastlane
Sharing version information
2.9.1
Destination operating system
iOS 18
Xcode version information
Version 26.6 (17F113)
Swift Compiler version information