AppSealing iOS SDK has a post-build Ruby script named "generate_hash". This script adds an additional security layer and integrity information to the created IPA file.
To run generate_hash with this IPA, there are a few conditions.
The
- The xcodeproj gem should be installed
- The IPA should be signed with a Distribution certificate while exported from Xcode
- The same distribution certificate & private key should be installed in the Keychain app of the Mac, which is running generate_hash
1. The xcodeproj gem should be installed
If you are getting a Ruby error such as "cannot load such file -- xcodeproj," it means the xcodeproj gem is not installed on your Mac. You can fix this error by following the document below.
2. The IPA should be signed with a Distribution certificate while exported from Xcode
If you are getting an error such as "code object is not signed at all", "Could not open file or uri for loading certificate from .../codesign0: no such file or directory", it means your IPA was not signed at all. You can fix this error by following the document below
3. The same distribution certificate & private key should be installed in the Keychain app of the Mac, which is running generate_hash
If your MacBook was getting an error at 1st, 2nd requirement, you can still get an error when you try "generate_hash", due to a certificate missing. If you getting an error related to the certificate again, please check the document below.