jpackage pkg codesign - errori di invio di appstore

Oct 28 2020

Sto seguendo principalmente il segno del codice e autentico le istruzioni da questo

Firma del codice + autenticazione notarile utilizzando l'utilità jpackage non funziona su macOS

cioè passare attraverso ogni .dylib e barattoli e firmarli. Infine firmare l'intero pacchetto e autenticare.

Pkg è stato creato e autenticato con successo, ma non può essere inviato all'App Store a causa dei seguenti errori. Posso sicuramente eseguire questo pacchetto sul mio Mac senza problemi.

Cosa significa l'elemento 3? dove ottengo il certificato di terze parti? o cosa devo fare ...

Apprezzo se qualcuno può indicarmi la giusta direzione per risolverli

Notato Info.plist = non vincolato dopo l'autenticazione notarile, forse questo indica un codice non eseguito correttamente?

Grazie in anticipo.

1. ERROR ITMS-90230: "Invalid product archive metadata. Error in keyPath [product-metadata.product-identifier]. Please re-build your
archive with an up-to-date version of Xcode, and submit again."

2. ERROR ITMS-90230: "Invalid product archive metadata. Error in keyPath [product-metadata.product-version]. Please re-build your
archive with an up-to-date version of Xcode, and submit again."

3. ERROR ITMS-90237: "The product archive package's signature is invalid. Ensure that it is signed with your "3rd Party Mac Developer
Installer" certificate."

4. ERROR ITMS-90249: "The product archive is invalid. The value of the LSApplicationCategoryType key in the Info.plist is Unknown,
which is not a UTI for a valid category. For more details, see
"Submitting your Mac apps to the App Store"."

5. ERROR ITMS-90254: "The product archive is invalid. The installer package may not include install scripts."

6. ERROR ITMS-90264: "The lowest minimum system version [none] in the Product Definition Property List must equal the
'LSMinimumSystemVersion' value [10.9] in the 'Info.plist'."

7. ERROR ITMS-90296: "App sandbox not enabled. The following executables must include the "com.apple.security.app-sandbox"
entitlement with a Boolean value of true in the entitlements
property list: [(
"MyApp-app.pkg/Payload/MyApp.app/Contents/MacOS/MyApp",
"MyApp-app.pkg/Payload/MyApp.app/Contents/runtime/Contents/Home/lib/jspawnhelper"
)] Refer to App Sandbox page at
https://developer.apple.com/documentation/security/app_sandbox for
more information on sandboxing your app."
=========

Risposte

NuzhdinVladimir Nov 16 2020 at 16:59

Nel mio caso (ERRORE ITMS-90237), i certificati scaduti non sono stati rimossi dal portachiavi. (I nuovi sono stati generati automaticamente da XCode)