DanTheMan827 / ios-app-signer

This is an app for OS X that can (re)sign apps and bundle them into ipa files that are ready to be installed on an iOS device.
https://dantheman827.github.io/ios-app-signer
GNU General Public License v3.0
5.57k stars 1.05k forks source link

Extract associated-domain from old .ipa #125

Open oslTrifork opened 4 years ago

oslTrifork commented 4 years ago

Hi

We just bumped into an issue where after we resigned our app, app-switch via universal linking stopped working, after debugging I found out that it's because the app is fully resigned, which is usually what we want but it looks like Apple adds info to the provisioning profile when distributing, for example the associated-domain field is left empty when generating but the distributed app contains additional information, like the associated-domain field. Would it be possible extract this information from the old app and add it to the new entitlements.plist

DanTheMan827 commented 4 years ago

I believe entitlements is embedded in the provisioning profile itself and when the app is signed, it gets written to entitlements.plist

If entitlements.plist is modified, I'm not sure if the signature would be valid anymore.

I can certainly look into it though

oslTrifork commented 4 years ago

Hi Dan

Thanks for the quick response.

I assume you extract the entitlements from the provisioning profile and replace the old entitlements file ? from command line, I usually create a new entitlements.plist file, which has been modified to look the same as before the re-sign and use that when calling 'codesign', I would assume you can do the same?

They mention that you can edit the entitlements manually so I would think it's doable. https://developer.apple.com/documentation/bundleresources/entitlements