breautek commented on issue #138: URL: https://github.com/apache/cordova-node-xcode/issues/138#issuecomment-1620167615
After parsing the pbx file, the entire file is represented as a large JSON structure. So if you want to modify/manipulate it, you can traverse the data structure to find the build phase you're looking for. Once you have the build phase object, should be able to reference the id for other API calls. If you want to simply remove it, it does seem there is no `delete` counterpart of https://github.com/apache/cordova-node-xcode/blob/659a4e7cfe945a13b3968c0d8c5439683f6d0932/lib/pbxProject.js#L872 But likewise, as a stopgap, the data structure could be directly manipulated, but you'll have to clean all the references of the build phase from the data structure. I think you can reference the `addBuildPhase` API to see where these references occurs. I think a PR would be welcome for a `deleteBuildPhase` API. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
