-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Overwrite an existent build phase script #138
Comments
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 there is any, I'm not too familiar with the API myself) If you want to simply remove it, it does seem there is no cordova-node-xcode/lib/pbxProject.js Line 872 in 659a4e7
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 |
Well, this is how i solved. I delete the build phase with unwanted script and then add new build phase with wanted script. I think could be improved but is doing the job for now..
|
As the title says. Is there a function or a workaround to overwrite an existant build phase script?
As far as is know is not posible with this package to remove an existant build phase, so as an alternative i want to overwrite some of the script for already added build phases.
Thanks in advance :)
The text was updated successfully, but these errors were encountered: