Posts

Post not yet marked as solved
0 Replies
317 Views
I have developed MacOS App and tried to make installer which has postinstall by productbuild. productbuild --component App/App.app  /Applications --scripts ./Scripts --sign "3rd Party Mac Developer Installer: MyCompany (******)" App.pkg Scripts directory has postinstall. -rwxr-xr-x@ 1 name  staff  171  1  7 11:36 postinstall* I can install App.app under /Applications. But postinstall is not called. App.pkg is validated by Transporter. I tried to use pkgbuild. pkgbuild --root ./App --identifier com.mycompany.App --version 1.0 --install-location /Applications --scripts ./Scripts --ownership preserve App.pkg productbuild --synthesize --package App.pkg Distribution.xml productbuild --distribution Distribution.xml --sign "3rd Party Mac Developer Installer: MyCompany (******)" --package-path .  AppInstaller.pkg" This dose work well, postinstall is called. But AppInstaller.pkg is not validated by Transporter with following errors. What should I do ??? 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." 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." ERROR ITMS-90254: "The product archive is invalid. The installer package may not include install scripts." ERROR ITMS-90264: "The lowest minimum system version [none] in the Product Definition Property List must equal the 'LSMinimumSystemVersion' value [11.0] in the 'Info.plist'." WARNING ITMS-90889: ""Cannot be used with TestFlight because the bundle at “CosmeCamMac.app” is missing a provisioning profile. Main bundles are expected to have provisioning profiles in order to be eligible for TestFlight.""
Posted Last updated
.