apache / apache/cordova-node-xcode
[Question] How to add file to PBXNativeTarget
Open
info-needed
support
- Dominant language
- JavaScript
- Stars
- 217
- Forks
- 102
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 6
Description
I'm trying to add a file (GoogleServices-Info.plist) to my main project folder, but can't figure out what function to use. I've tried every one, and the best I can do is get it into my Plugins folder. Anyone know?
I thought these might work, but they didn't:
```javascript
project.addToPbxGroupType(file, targetKey, 'PBXNativeTarget');
project.addToPbxFileReferenceSection(file);
// this one gives an error; sources is undefined
project.addToPbxCopyfilesBuildPhase(file);
```
Contributor guide
Assessment
This issue has not been assessed yet.