I successfully added the files to the project. I searched for the withXcodeProject
method in Expo repo Search · withXcodeProject · GitHub
and found this example expo/withNotificationsIOS.ts at 35f78160a9ec1758ca73eb9e079a1c278c9b1bb1 · expo/expo · GitHub
These are the steps I followed:
- added the path to a local plugin on
expo.plugins
array inapp.json
- created a plugin similar to the
withNotificationsIOS.ts
plugin. - imported
IOSConfig
from@expo/config-plugins
and checked the methods inIOSConfig.XcodeUtils
. There are methods such asaddBuildSourceFileToGroup
oraddFileToGroupAndLink
that will update the project as if you did it with XCode.
I hope this helps.