Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Commit

Permalink
Update 2024-06-04-why-you-need-objc.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pepicrft authored Jun 5, 2024
1 parent ca3cca7 commit 4d65cb2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions priv/posts/2024-06-04-why-you-need-objc.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ the problem is that the linker **overoptimizes the binary removing symbols that
The linker's dead-stripping logic can't delete dynamically referenced symbols.
And this is something that happens not only when referencing Objective-C symbols, but [Swift too](https://forums.swift.org/t/linker-flag-objc-force-loads-swift-libraries/47466/3).
For example, when integrating Composable Architecture,
which [uses](https://github.com/pointfreeco/swift-composable-architecture/blob/7cbde3b07f193f732e256429e1351ff53cd31641/Sources/ComposableArchitecture/UIKit/NSObject%2BObservation.swift#L172) Objective-C runtime capabilities,
developers might need to add explicit references to those symbols or add the aforementioned flags to the build settings when using Tuist's default integration via Xcode targets.
when integrating it with Tuist via Xcode targets, developers might need to add explicit references to those symbols or the flags above to the build settings.

What's the solution? There are a few options:

Expand Down

0 comments on commit 4d65cb2

Please sign in to comment.