microsoftconnect / intune-app-wrapping-tool-ios

This is the software for the Intune App Wrapping Tool for iOS.
55 stars 12 forks source link

XCode 14.1 and getting more logs #87

Closed mlabrum closed 7 months ago

mlabrum commented 1 year ago

Hi Team,

I'm wondering if this tool is compatible with XCode 14.1? as I'm getting this error for each app I'm trying to sign.

If it is compatible, is there any way to get additional logs of why this may be happening?

Thanks,

Screenshots and logs:

Application packaging in progress...
Version of MACOSX is 13.0
Version of XCode installed is Xcode 14.1 Build version 14B47b

Parsing provisioning profile...
Parsing main app provisioning profile...
Parsing extension provisioning profiles...
Checking that main provisioning profile has not expired...
Checking that extension provisioning profiles have not expired...
Checking if signing certificate is valid...
Provided certificate name length matches that of SHA1 hash.
Number of certificates returned by query: 5 Checking certificate at index: 0 Getting certificate common name.
Computing SHA-1 fingerprint of current certificate.
Computing SHA-1 fingerprint of provided certificate.
Checking certificate at index: 1
Getting certificate common name.
Computing SHA-1 fingerprint of current certificate.
Computing SHA-1 fingerprint of provided certificate.
Checking certificate at index: 2
Getting certificate common name.
Computing SHA-1 fingerprint of current certificate.
Computing SHA-1 fingerprint of provided certificate.
Checking certificate at index: 3
Getting certificate common name.
Computing SHA-1 fingerprint of current certificate.
Computing SHA-1 fingerprint of provided certificate.
Checking certificate at index: 4
Getting certificate common name.
Computing SHA-1 fingerprint of current certificate.
Computing SHA-1 fingerprint of provided certificate.
Possible fingerprint match found. Checking if certificate is contained in provisioning profile...
Computing SHA-256 fingerprint of certificate.
Checking if SHA-256 hash exists in provisioning profile.
Certificate was found in the provisioning profile.
Checking if certificate issuer is Apple.
Checking if signing certificate is found in each extension profile...
Creating temporary directories...
Input Parameters
 Path to input application:     /Users/mattlabrum/Desktop/apps/PossessionSearch/Possession search_ver inc.ipa
 Path to output application:    /Users/mattlabrum/Desktop/apps/PossessionSearch/Possession search_ver inc_intune.ipa
 Provisioning profile:          apps/PossessionSearch/PossessionSearch_expires_on_20230708.mobileprovision
 Certificate:       62 67 B3 74 33 C4 D1 03 03 3A 85 AF 88 41 3C 79 FB 4B 97 7C
The app's Frameworks directory could not be signed. This may be because it contains files whose format was unrecognized, invalid, or unsuitable.
Cause of the error to be provided for investigation:Error Domain=IntuneAppPackager Code=1 "/usr/bin/codesign exited with an error." UserInfo={Error Description=SignFrameworksError, NSLocalizedDescription=/usr/bin/codesign exited with an error.}
msft-neiljac commented 1 year ago

Hi @mlabrum. Yes, the packager tool is supported with Xcode 14 and macOS 13.0. The failure occurred while signing your application's Frameworks directory. To narrow down where the failure is occurring, can you manually run the follow command on each .framework directory and .dylib inside the Frameworks directory?

codesign --force --sign "6267B37433C4D103033A85AF88413C79FB4B977C" --entitlements PATH_TO_YOUR_APPS_ORIGINAL_ENTITLEMENTS_FILE --options expires PATH_TO_FRAMEWORK_OR_DYLIB