diff --git a/src/lib/Zupersign.cpp b/src/lib/Zupersign.cpp index 7b941e1..b06aa27 100644 --- a/src/lib/Zupersign.cpp +++ b/src/lib/Zupersign.cpp @@ -72,7 +72,10 @@ int zsign_sign( success = asset.Init( cert, pkey, "", string(static_cast(entitlements[0].data), entitlements[0].len), - is_adhoc, false, false + // Real signatures get a single SHA-256 CodeDirectory, as codesign emits for deployment + // targets of iOS 11 / macOS 10.13 and later. App Store Connect rejects the SHA-1 primary + // plus SHA-256 alternate pair with 90034 ("not signed using an Apple submission certificate"). + is_adhoc, !is_adhoc, false ); if (!success) { *exception = strdup("Invalid developer certificate/private key");