Hi,
I've posted this question elsewhere on the internet, but I figured I'd try the source as well
I have a client who is making an Apple Watch app, and they've sent it to me. I'm trying to re-sign it with my developer ID, but I keep getting an error. Here's what I'm doing.
- Unzip the .ipa
- Re-sign the .app in the Payload folder using my ID/provisioning profile --I re-sign in terminal. I've tried two ways, once just changing the profile and once passing in some entitlements that allow for keychain access. The basic command that I run is codesign -f -s "iPhone Developer: Name (Number)" /path/to/app.app - in the slightly more involved signing where I pass in entitlements, I also change the embedded.mobileprovision to my own
- After I've signed the .app, I put everything back in an ipa (fwiw, when I first open the ipa, there is a payload folder as well as folders for SwiftSupport and WatchkitSupport - I'm guessing there is something in there that needs signing, but I've tried to sign the files in those folders and I'm not having any luck).
- I try to install through Xcode, but I get an error saying "A valid provisioning profile for this executable was not found."
I've tried signing other elements of the application (e.g. the frameworks, watchkit executable, watchkit extension, and really any other file that I can find. No matter what I do, I get the same error.
I'm not really sure what step I'm missing, so any help would be greatly appreciated.
Thanks!
-Jason