apache / apache/cordova-node-xcode
addBuildPhase keeps adding phases when they already exist
- 主要言語
- JavaScript
- スター
- 217
- フォーク
- 102
- 平均マージ
- 2日 3時間
- マージ済み PR(30日)
- 6
説明
This is the build script line
```
xcodeProject.addBuildPhase(
[], 'PBXShellScriptBuildPhase', 'Configure Crashlytics', undefined, options
).buildPhase;
fs.writeFileSync(xcodeProjectPath, xcodeProject.writeSync());
$logger.trace('Xcode project written');
} else {
$logger.error(xcodeProjectPath + ' is missing.');
reject();
return;
}
```
So I guess everytime the CLI build runs it adds a NEW "Configure Crashlytics" to the build phase. Eventually my machine just outright died because the script was running hundreds of times.
Is there maybe a way before this I can check to see if it exists first before just adding it again?
コントリビューションガイド
調査の方向性
まず、ビルドスクリプトに示されている addBuildPhase の呼び出しを見つけ、"Configure Crashlytics" という名前の既存のフェーズをどのように処理しているかを確認します。Xcode プロジェクトに対して CLI ビルドを複数回再実行します。繰り返し実行してもそのようなビルドフェーズが 1 つだけ残り、プロジェクトが引き続き正常に書き込まれれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- ios, javascript, node.js
- 領域
- cli, mobile-dev
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100