This is a minimal Swift Package that reproduces a linker warning in Xcode 27 beta.
- Xcode 27 beta 3
- iOS Simulator generic destination
- Dynamic Swift Package library product
DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer \
xcodebuild -scheme Foo \
-configuration Debug \
-destination "generic/platform=iOS Simulator" \
buildExpected warning:
Foo-product: ld: warning: address=0x... points before section(...) start and the target atom is ambiguous
The warning appears during the x86_64 simulator dynamic product/framework link step.
- Building for a concrete Apple Silicon simulator may only build the
arm64simulator slice, which does not show the warning. - Changing the library product from
.dynamicto.staticavoids the warning. - The source code is intentionally tiny: two distinct
@objcprotocols, one Swift protocol inheriting from one of them, and one function referencing the other.