I've got a script written which does some steps to package my build for an Ad Hoc distribution. My first guess was to use a run script phase in my Ad Hoc target. But it looks like codesigning is fixed at the last position in the chain of building iPhone apps.
Somebody has a clue how can I run my script at the very last possible moment in the build process?
Update: Look at this answer below on how to run scripts in Xcode 4.
Can you create an aggregate target that contains both your "Ad hoc" target and a run script build phase (that runs after the "Ad hoc" target)?