apache / apache/cordova-node-xcode
[Question] How to add file to PBXNativeTarget
- 主要言語
- JavaScript
- スター
- 217
- フォーク
- 102
- 平均マージ
- 2日 3時間
- マージ済み PR(30日)
- 6
説明
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);
```
コントリビューションガイド
調査の方向性
まず、PBX groups、file references、copy-files build phases に関するプロジェクトの API を確認し、次に GoogleServices-Info.plist と PBXNativeTarget を使って報告された動作を再現します。正しい target とプロジェクトフォルダーに、報告されたエラーなしでファイルが含まれ、そのことを示す焦点を絞ったテストまたは使用方法のドキュメントがあれば、issue は完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- ios, javascript, nodejs
- 領域
- mobile, tooling
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100