Skip to content

fix(ios): resolve prebuild failure with Swift AppDelegate (#93)#94

Merged
giolaq merged 1 commit into
AmazonAppDev:mainfrom
giolaq:fix/issue-93-ios-prebuild-swift-appdelegate
May 26, 2026
Merged

fix(ios): resolve prebuild failure with Swift AppDelegate (#93)#94
giolaq merged 1 commit into
AmazonAppDev:mainfrom
giolaq:fix/issue-93-ios-prebuild-swift-appdelegate

Conversation

@giolaq
Copy link
Copy Markdown
Contributor

@giolaq giolaq commented May 26, 2026

Fixes #93
yarn dev:ios fails during prebuild because @bam.tech/react-native-keyevent-expo-config-plugin expects an Objective-C @implementation AppDelegate
but Expo 54 + RN 0.81 generates a Swift AppDelegate.

  • Replace the broken third-party plugin with a local plugins/withKeyEvent.js that only applies Android-side modifications (iOS uses TVEventHandler natively and
    never needed react-native-keyevent)
  • Add plugins/withTvosDeploymentTarget.js to set tvOS deployment target to 15.1 (required by Expo modules)
  • Rewrite plugins/withKotlinJvmTarget.js to properly define ext.kotlinVersion in the root build.gradle (the previous version targeted a non-existent
    react-settings-plugin/build.gradle.kts)
  • Update kotlinVersion to 2.0.21, compileSdkVersion to 36, minSdkVersion to 24 for Expo 54 compatibility
  • Move newArchEnabled to top-level app config to fix deprecation warning

…ev#93)

Replace @bam.tech/react-native-keyevent-expo-config-plugin with a local
Android-only plugin since the upstream plugin expects an Objective-C
AppDelegate but Expo 54 generates Swift. The iOS side never needed it
as TVEventHandler handles key events natively on tvOS.

Also fix related build issues:
- Add withTvosDeploymentTarget plugin (Expo modules require tvOS 15.1)
- Rewrite withKotlinJvmTarget to define ext.kotlinVersion in build.gradle
- Update kotlinVersion to 2.0.21, compileSdkVersion to 36, minSdkVersion to 24
- Move newArchEnabled to top-level app config (fixes deprecation warning)
@giolaq giolaq merged commit a58a047 into AmazonAppDev:main May 26, 2026
1 check failed
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.

yarn dev:ios

1 participant