I am trying to find a way to copy the signed target from Xcode Release build to a local directory as part of the build process.
If I use a "run script" build phase it executes BEFORE the target is signed, so will not accomplish that goal.
If I use a "copy file" build phase, it does have an option for signing and so that does "work"; however it always copies the DEBUG version.
Is there a way to copy the Release build target?
EG can a run script execute the code sign program, and, if so what would the command line parameters be? OR
is there a way to modify the copy file phase to copy the Release build rather than the Debug build? OR
??
Thank you for explaining. We discussed your case here and we recommend doing an archive build and then copying the app out of the archive. We expect this will give you the best results using code paths that are currently supported.
You can copy the app out of the .xarchive by changing the file name ending from .xarchive to .zip. Then you can open the .zip file and copy the app into the Applications folder.
Note ~ Searching on the web I found some folks talking about duplicating the run Scheme and changing the "Build Configuration" to "Release" and using the result from that. That may work in some cases, but it may not produce correct results in others. This is not a supported code path. We do not recommend using this duplicate Scheme approach.