apache / apache/cordova-node-xcode

[Question] How to add file to PBXNativeTarget

Open
#15 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.