Re: How to copy final build after archiving to a less hidden directory (for frameworks and apps)
Re: How to copy final build after archiving to a less hidden directory (for frameworks and apps)
- Subject: Re: How to copy final build after archiving to a less hidden directory (for frameworks and apps)
- From: Andreas Falkenhahn <email@hidden>
- Date: Sat, 24 Dec 2016 13:10:03 +0100
On 23.12.2016 at 22:50 Alex Zavatone wrote:
> On Dec 23, 2016, at 3:40 PM, Andreas Falkenhahn wrote:
>> On 23.12.2016 at 21:37 Alex Zavatone wrote:
>>> Add a Run Script Build Phase to use a shell script to the end of your build process
>> That won't work because, as I said, Xcode does stripping and codesigning *after*
>> the last "Run script" build phase :(
> But you can add one after that. Look at some YouTube videos
> The first 1:15 mins show you how to add a Run Script after everything else runs.
> https://www.youtube.com/watch?v=yopfqJQJCOk
I've said it twice already, I'm saying it again: When the last "Run script" executes,
Xcode still hasn't finished with everything. Cf. Xcode's build log:
Compile...
Link...
Create universal binary...
Generate MyTestFramework.framework.dSYM...
Copy MyTestFramework.h...
Run custom shell script 'Run Script' <------ THIS IS WHERE THE SCRIPT IS RUN!
Copy module.modulemap...
Touch MyTestFramework.framework
Strip MyTestFramework <------ SEE! STRIPPING IS DONE AFTER RUNNING THE SCRIPT!
Set owner and group of MyTestFramework.framework
Set mode of MyTestFramework.framework
Sign MyTestFramework.framework <------ SEE #2! SIGNING IS DONE AFTER RUNNING THE SCRIPT!
Touch MyTestFramework.framework.dSYM
So unless there is a way to tell Xcode to run the script *as the very last thing*
the "Run script" option isn't going to work - no matter how often you try to
present it as the solution ;)
--
Best regards,
Andreas Falkenhahn mailto:email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden