Build the .pkg file without Xcode and verify it with the Transporter app. An error occurred after adding Scripts

Hi there,

I encounter a problem when submitting software to App Store and have tried to solve it for several days. My attempt on this didn’t work out, so I would like to post my question here and discuss with anyone who might know the solution.

I write this macOS app with Python and build a “.pkg” file, without using Xcode, and use Transporter app to verify. I successfully build the “.pkg” file which can pass Transporter app’s verification after some time of researching. Everything seems to be good.

Then I add the scripts to the “.pkg” file and test the process of installation in my computer. Everything seems to be good. Below is my command:

pkgbuild --scripts mac/build_pkg_scripts --install-location /Applications --component my.app my.pkg

productbuild --synthesize --package my.pkg /Application ./dist.xml

productbuild --distribution dist.xml --package-path ./my.pkg ./my_final.pkg

However, an error message appears when the “.pkg” file verified by Transporter App:

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

I try to use pkgutil command to check the content of the “.pkg” file, and it didn’t figure out where the problem is.

I really have done a lot of researching on the internet and tried every possible solution to solve the issue, but ERROR ITMS-90254 still appears whenever I add the scripts to let the “.pkg” verified by Transporter app.

Does anyone know what the reasons might be and how I could do to pass the verification? Thank you very much.

Build the .pkg file without Xcode and verify it with the Transporter app. An error occurred after adding Scripts
 
 
Q