Commit e184ac4
committed
[Expo][iOS] Fix Swift AppDelegate plugin for @main annotation (Expo SDK 55+)
Expo SDK 55 adopted Swift 6, changing AppDelegate.swift from
@UIApplicationMain to @main. The config plugin used /@UIApplicationMain/
as a regex anchor to inject `import TSBackgroundFetch`, which silently
fails on SDK 55+.
Update the regex to /@(UIApplication)?main/ so it matches both
@UIApplicationMain (SDK 53-54) and @main (SDK 55+).1 parent 3be7d95 commit e184ac4
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments