Skip to content

Fix iOS 26.2 launch crash from Logger.isEnabled - #494

Merged
davidkoski merged 2 commits into
ml-explore:mainfrom
pmanot:fix/ios26.2-log-crash
Oct 19, 2026
Merged

davidkoski merged 2 commits into
ml-explore:mainfrom
pmanot:fix/ios26.2-log-crash

Conversation

@pmanot

@pmanot pmanot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Proposed changes

Fixes #491. OSLogHandler now uses OSLog.isEnabled(type:) for level checks, avoiding the absent Logger.isEnabled(type:) symbol on iOS 26.2.

Tested with the iOS 26.2 simulator.

Checklist

  • I have read the CONTRIBUTING document
  • I have run pre-commit run --all-files to format my code / installed pre-commit prior to committing changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the necessary documentation (if needed)

@davidkoski

Copy link
Copy Markdown
Member

I like this approach -- better than what I ended up with in #494. Once #495 is merged, I will rebase this on main and remove the 494 (+ pieces of 495) code.

@davidkoski
davidkoski self-requested a review September 30, 2026 20:35
@pmanot

pmanot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

better than what I ended up with in #494

I think this may be a typo, did you mean #493?

@davidkoski

Copy link
Copy Markdown
Member

Yeah, typo :-)

@davidkoski davidkoski mentioned this pull request Oct 5, 2026
7 tasks done
@davidkoski
davidkoski force-pushed the fix/ios26.2-log-crash branch from d1c3f04 to 98a29cb Compare October 16, 2026 21:15
@davidkoski

Copy link
Copy Markdown
Member

OK, rebased and removed my old implementation. I will test this next week (I don't have my 26.2 device with me) before merging.

@pmanot

pmanot commented Oct 18, 2026

Copy link
Copy Markdown
Contributor Author

hope it survives the real device :D

@davidkoski

Copy link
Copy Markdown
Member

OK, works as expected on iOS26.2, let's go!

@davidkoski davidkoski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this approach -- much cleaner/simpler than what was shipped :-)

@davidkoski
davidkoski merged commit 17f6470 into ml-explore:main Oct 19, 2026
7 checks passed
tsnAnh pushed a commit to TitoniumLab/mlx-swift that referenced this pull request Nov 7, 2026
Brings in the seven upstream commits after 35c10b4: ml-explore#481 (Sendable closures and
3-parameter VJP for MLXCustomFunction), ml-explore#503 (shardedToAllPredicate), ml-explore#494 (iOS
26.2 launch crash from Logger.isEnabled), ml-explore#498 (GPU.deviceInfo device selection),
ml-explore#418 (MaterializedArray is Sendable), ml-explore#505 (tripletLoss fix). The cLogSupport
removal in release.yml comes in with the merge; no fork-side edit was needed.
No conflicts.

Co-Authored-By: Claude Haiku 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] 0.32.2 causes iOS app to crash at launch on a physical iPhone running iOS 26.2

2 participants