8000 GitHub - gongzhang/Xcode27LinkerWarningRepro · GitHub
[go: up one dir, main page]

Skip to content

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Xcode 27 Linker Warning Repro

This is a minimal Swift Package that reproduces a linker warning in Xcode 27 beta.

Environment

  • Xcode 27 beta 3
  • iOS Simulator generic destination
  • Dynamic Swift Package library product

Reproduce

DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer \
xcodebuild -scheme Foo \
  -configuration Debug \
  -destination "generic/platform=iOS Simulator" \
  build

Expected 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.

Notes

  • Building for a concrete Apple Silicon simulator may only build the arm64 simulator slice, which does not show the warning.
  • Changing the library product from .dynamic to .static avoids the warning.
  • The source code is intentionally tiny: two distinct @objc protocols, one Swift protocol inheriting from one of them, and one function referencing the other.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0