Skip to content

Instantly share code, notes, and snippets.

@T1T4N
Created April 15, 2024 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save T1T4N/1038bc05d602cec48ff5802709aad7d1 to your computer and use it in GitHub Desktop.
Save T1T4N/1038bc05d602cec48ff5802709aad7d1 to your computer and use it in GitHub Desktop.
Swift flags to disable automatic linking
// https://milen.me/writings/auto-linking-on-ios-and-macos/
// This works
OTHER_SWIFT_FLAGS = $(inherited) -Xfrontend -disable-autolink-framework -Xfrontend TestFramework
// This doesn't work, even though it is referenced here:
// https://github.com/apple/swift/blob/main/include/swift/Option/FrontendOptions.td#L531C47-L531C74
//OTHER_SWIFT_FLAGS = $(inherited) -Xfrontend -disable-autolink-frameworks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment