Skip to content
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

Support runOnlyForDeploymentPostprocessing #80

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Support runOnlyForDeploymentPostprocessing #80

wants to merge 2 commits into from

Conversation

vijaysharm
Copy link

  • Pass the option for runOnlyForDeploymentPostprocessing

@brodycj
Copy link

brodycj commented Nov 11, 2019

This seems to be a solution for #49.

Unfortunately I do not really follow what this does, why, and how we can be sure it does not break anything else. Any explanation would be much appreciated.

@brodycj
Copy link

brodycj commented Mar 29, 2020

What is the status of this proposal?

It does look valuable if someone could explain the use case.

@misterwell
Copy link

@brodybits I came across this today as I had a similar need, and I can provide context to what it does:

The runOnlyForDeploymentPostprocessing property controls a checkbox within custom script phases that dictates whether the script is run on ANY build, or only on archival (AKA "install") builds. In the screenshot below you'll see that the shell script I'm running strips out x86_64 symbols from the .framework file, which should only be done when generating a build to be installed on an actual device.

Use case

I was able to test this by modifying my local version of xcode and it seemed to work as intended.

@timbru31 timbru31 linked an issue Dec 4, 2020 that may be closed by this pull request
Copy link
Member

@timbru31 timbru31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Mike for giving some context. Code-wise this change looks good to me.

@chinkan
Copy link

chinkan commented Sep 3, 2021

any updates ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add buildPhase option for runOnlyForDeploymentPostprocessing
5 participants