Commit 58f1df5
committed
fix(bridge): defer dylib init off the constructor (macOS 26 dyld init-order)
Move all ObjC/Foundation/IMCore work out of the __attribute__((constructor))
into a bridgeBootstrap() dispatched on the main queue. macOS 26 tightened dyld
initializer ordering for platform apps; touching Foundation at constructor time
can run before libSystem finishes bootstrapping and abort Messages on launch.
The constructor now only enqueues (a libdispatch call, no synchronous ObjC).
Based on v0.11.0; constructor change only.1 parent c3205e1 commit 58f1df5
1 file changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4371 | 4371 | | |
4372 | 4372 | | |
4373 | 4373 | | |
4374 | | - | |
4375 | | - | |
| 4374 | + | |
| 4375 | + | |
| 4376 | + | |
| 4377 | + | |
| 4378 | + | |
| 4379 | + | |
| 4380 | + | |
4376 | 4381 | | |
4377 | 4382 | | |
4378 | 4383 | | |
| |||
4413 | 4418 | | |
4414 | 4419 | | |
4415 | 4420 | | |
| 4421 | + | |
| 4422 | + | |
| 4423 | + | |
| 4424 | + | |
| 4425 | + | |
| 4426 | + | |
| 4427 | + | |
| 4428 | + | |
| 4429 | + | |
4416 | 4430 | | |
4417 | 4431 | | |
4418 | 4432 | | |
| |||
0 commit comments