Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get my build script run phases to run when performing an Archive operation in Xcode 7?

Tags:

xcode

ios

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?

like image 465
fatuhoku Avatar asked Sep 30 '15 17:09

fatuhoku


Video Answer


1 Answers

Have you try to open your scheme using Edit scheme..., then expand the Archive Action and add a Post Action ?

enter image description here

like image 94
CZ54 Avatar answered Oct 25 '22 15:10

CZ54