James Thomson on Nostr: If you are still targeting macOS 11 on Apple Silicon with your apps, building with ...
If you are still targeting macOS 11 on Apple Silicon with your apps, building with Xcode 15, and are seeing reports of a crash at startup, make sure to pass -Wl,-ld_classic (exactly that string) in the “Other Linker Flags" build setting, particularly if you are using C++.
That will force the use of the old linker, which doesn't have this issue with macOS 11. It's documented as a known issue in the Xcode release notes, but I know many developers who missed it, including myself!
Published at
2023-09-20 15:34:51Event JSON
{
"id": "854faeb61af7ec1558a14c02ce2a3ad12b292699ad153f8f7518803cc548943f",
"pubkey": "b612eaaf8816e9bf26f40e07104836e54d9bb4bfdb0ef306c3515ff72e18ba76",
"created_at": 1695224091,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/jamesthomson/statuses/111098206089191122",
"activitypub"
]
],
"content": "If you are still targeting macOS 11 on Apple Silicon with your apps, building with Xcode 15, and are seeing reports of a crash at startup, make sure to pass -Wl,-ld_classic (exactly that string) in the “Other Linker Flags\" build setting, particularly if you are using C++.\n\nThat will force the use of the old linker, which doesn't have this issue with macOS 11. It's documented as a known issue in the Xcode release notes, but I know many developers who missed it, including myself!",
"sig": "eff18365a92f93dd69bd6c85b80810caa83f07c7f7a4e742a57f318b3e0a3aae9c121624d1ddae164eb0d5e0941ccd127e597059177f38be59e86c06951362c6"
}