react-native-background-fetch icon indicating copy to clipboard operation
react-native-background-fetch copied to clipboard

[Bug]: 'AppDelegate.h' file not found

Open AjayFrancisTechversant opened this issue 10 months ago • 1 comments

Required Reading

  • [x] Confirmed

Plugin Version

4.2.7

Mobile operating-system(s)

  • [x] iOS
  • [ ] Android

Device Manufacturer(s) and Model(s)

iphone 16 simulator

Device operating-systems(s)

ios 18.3.1

React Native / Expo version

0.78.0

What happened?

Image

Build failed due to 'AppDelegate.h' file not found error. AppDelegate.h is removed in react native v0.78.0. Please provide a solution for this

Plugin Code and/or Config

I'm using this package as a dependency for 'react-native-background-actions'. So I don't have a config file.

Relevant log output


AjayFrancisTechversant avatar Mar 13 '25 09:03 AjayFrancisTechversant

Just remove the file RNBackgroundFetch+AppDelegate.m from your project.

  • Right click file
  • Click [Delete] (Remove references)

That file is no longer required (and hasn't been for several years). It is merely for the deprecated pre iOS 13 API, as noted in the Setup Instructions

christocracy avatar Mar 13 '25 13:03 christocracy

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Apr 13 '25 02:04 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Apr 28 '25 02:04 github-actions[bot]