Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify identity when a provisioning is specified #76

Open
trufae opened this issue Nov 23, 2018 · 2 comments
Open

Verify identity when a provisioning is specified #76

trufae opened this issue Nov 23, 2018 · 2 comments
Assignees

Comments

@trufae
Copy link
Member

trufae commented Nov 23, 2018

If the user uses -m and -i it must verify that both match, otherwise the signing will work but the installation will fail.

@trufae trufae self-assigned this Nov 23, 2018
@trufae trufae closed this as completed in 99c920a Nov 23, 2018
@Ruud-cb
Copy link

Ruud-cb commented Oct 26, 2020

@trufae To me, this is still an issue.
I've ran from xcode which just works fine. I see which Development Signing certificate is used. Using security find-identity -p codesigning -v to get the identifier, get the correct provisioning profile from either the already build IPA (embedded.mobileprovisioning) or get it from ~/Library/MobileDevice/Provisioning Profiles.
Then I run

  1. applesign -i E3990F.... -m embedded.mobileprovision -o patched_codesign.ipa MyApp-Preview.ipa
  2. unzip patched_codesign.ipa
  3. ios-deploy --bundle Payload/*.app --debug -W

Getting error:

[ 70%] VerifyingApplication
2020-10-26 13:04:55.092 ios-deploy[17660:233562] [ !! ] Error 0xe800003a: The application could not be verified. AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)

I've visited all the stackoverflow answers which basically say, delete the app from the device, I did that.

I also tried to use ios-deploy of the original ipa, that works fine.

Any ideas?

@trufae
Copy link
Member Author

trufae commented Oct 27, 2020

Different things:

  • -i is derived from -m, so no need to pass -i
  • i would add -c to clone the entitlements from the provisioning, which use to be the common issue and maybe it should be by default
  • if you dont pass -o a proper name for the resigned ipa is generated
  • ios-deploy can install .ipa, no need to unzip first

I added a debugging option in appleisng that generates a json with the old/new signing info for debugging and comparing problems like this. ill reopen the issue

@trufae trufae reopened this Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants