Skip to content

Fix iOS build#200

Open
teancom wants to merge 2 commits intomusic-assistant:devfrom
teancom:fix/ios-build
Open

Fix iOS build#200
teancom wants to merge 2 commits intomusic-assistant:devfrom
teancom:fix/ios-build

Conversation

@teancom
Copy link
Copy Markdown

@teancom teancom commented Apr 5, 2026

  • Add @file:OptIn(ExperimentalForeignApi::class) to MainViewController.kt and LogSharer.ios.kt for cinterop API access
  • Use staticCFunction for NSSetUncaughtExceptionHandler (C function pointer required instead of Kotlin lambda in newer Kotlin/Native)
  • Add explicit Unit return to satisfy Function1<NSException?, Unit> signature
  • Cast UIWindowScene.windows list via filterIsInstance() to resolve untyped collection access to isKeyWindow/rootViewController
  • Set TEAM_ID in Config.xcconfig for code signing

Also add .claude/settings.local.json to .gitignore so we can each have our own (mine immediately started adding stuff like my local MCP proxy, etc 😅) Note that pulling it down will - if you had this checked out before - clear out the file. But going forward it will be safe/truly local.

teancom and others added 2 commits April 5, 2026 10:16
- Add @file:OptIn(ExperimentalForeignApi::class) to MainViewController.kt
  and LogSharer.ios.kt for cinterop API access
- Use staticCFunction for NSSetUncaughtExceptionHandler (C function pointer
  required instead of Kotlin lambda in newer Kotlin/Native)
- Add explicit Unit return to satisfy Function1<NSException?, Unit> signature
- Cast UIWindowScene.windows list via filterIsInstance<UIWindow>() to resolve
  untyped collection access to isKeyWindow/rootViewController
- Set TEAM_ID in Config.xcconfig for code signing

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Stop tracking .claude/settings.local.json (developer-specific)
- Ignore iosApp/Frameworks/ (large binaries, downloaded per build instructions)

Note: merging this will delete .claude/settings.local.json from your
working tree. Claude Code will recreate it on next run.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@teancom teancom added bug Something isn't working ios iOS platform labels Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ios iOS platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant