I basically set my build numbers to be the count of Git commits by setting up two build phases that run specific scripts — just like in this question:
Why won't my build phase scripts be executed when creating an IPA from command line?
However, I found that when I Archive
either with Xcode or with the fastlane toolchain, the scripts are not invoked.
Why is that? I would have assumed that build gets run when you do an archive. How can I make these build phases run even for the Archive action?
Have you try to open your scheme using Edit scheme...
, then expand the Archive
Action and add a Post Action
?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With