I'am trying to update my package for using swift 5.9. I used to build an universal executable binary via:
/usr/bin/swift build -c debug --package-path ~/work/MyLibrary --cache-path ~/.derived-tools/cache --scratch-path ~/.derived-tools/scratch --arch x86_64 --arch arm64
After migrating to
swift-driver version: 1.87.1 Apple Swift version 5.9 (swiftlang-220.127.116.11.2 clang-1500.0.40.1) Target: arm64-apple-macosx13.0
That command started to fail with following error:
/Users/asevko/work/MyLibrary/Sources/MyLibrary/MyLibrary.swift:6:18: error: type 'Bundle' has no member 'module' print(Bundle.module.bundlePath) ~~~~~~ ^~~~~~ Build cancelled
Despite this, build command succeeds, when building separately for
The structure of my sample project to reproduce that behaviour:
Archive of that project
Is that expected behaviour in swift 5.9?
Should i build two binaries and then merge them to get an universal executable binary?