apache / apache/cordova-node-xcode
addBuildPhase keeps adding phases when they already exist
- Lingua principale
- JavaScript
- Stelle
- 217
- Fork
- 102
- Merge medio
- 2g 3h
- PR unite (30g)
- 6
Descrizione
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?
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia individuando la chiamata a addBuildPhase mostrata nello script di build e verifica come gestisce le fasi esistenti denominate "Configure Crashlytics". Esegui nuovamente la build CLI su un progetto Xcode più di una volta; l'attività è completata quando esecuzioni ripetute lasciano una sola build phase di questo tipo e continuano a scrivere correttamente il progetto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- ios, javascript, node.js
- Ambito
- cli, mobile-dev
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100