-
Notifications
You must be signed in to change notification settings - Fork 161
Description
Despite _NumericsShims
is NOT intended to be part of public API, attempt to archive any of the publicly exposed modules results into failure.
The command to execute in CLI:
xcodebuild archive -scheme Numerics -destination "generic/platform=iOS" -archivePath "build/ios-device" SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES
it fails with underlaying error being:
.../Library/Developer/Xcode/DerivedData/swift-numerics-dgyhdelhvghturdxbqtbuzsazzjo/Build/Intermediates.noindex/ArchiveIntermediates/Numerics/IntermediateBuildFilesPath/swift-numerics.build/Release-iphoneos/RealModule.build/Objects-normal/arm64/RealModule.swiftinterface:6:8: error: no such module '_NumericsShims'
Same happens when try to archive in similar fashion any framework (does not matter if it's a Swift Package or created via Xcode framework), WHERE swift-numerics
is in the dependencies list.
NOTE: in case of a framework that is built using Xcode, Archive
via Xcode GUI works fine with same settings set in Xcode build settings (SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES) - archive works fine. I'd resort to that option, but it does not allow to archive for iOS simulator and I really want to put it in a script for automated execution.
Is it expected/intended behaviour? Any clarifications/suggestions would be much appreciated!
Xcode version 14.3.1