I can't submit my app to the app store

Hi! I am trying to submit my MacOS app to the Mac App Store. I have paid for an Apple Developer Account and filled out all the necessary information in App Store Connect.

I do not have any Xcode project, or anything else built in Xcode. I built the app using Script Editor. The main application and one out of two helper programs are all written in AppleScript. The other helper program is an automator applet. This is a full-fledged and complex app, even though it uses languages that normally make small, quick automation scripts. Note: The helpers are .app files inside of the package contents of the main .app bundle. My app never accesses anything outside of it's own package contents except for command-line tools (ping, wget, curl, networksetup, and defaults).

I have filled out all the information in App Store Connect, but have not been able to upload my build. I have a pkg installer archive that is signed with the certificate "3rd Party Mac Developer Installer: [My name] (T36UWKSKUU)" right from my paid Apple Developer Account from developer.apple.com. The pkg is thus fully signe with an apple-issued certificate. My .app bundle was also signed with a certificate from my Developer Account, called "3rd Party Mac Developer Application: [My name] (T36UWKSKUU)". I have used xattr -cr to remove extended attributes before I codesign the app bundle.

I am having errors submitting my app to the Mac App Store. I would like you to help me fix these errors so I can upload my build to the App Store. These are the errors thrown by different upload tools when I try to upload my build (note: I do have Xcode installed, so I can use xcrun altool):
Xcode: I cannot use Xcode to submit because there is no Xcode project. The app was not made using Xcode.
Application Loader: That seems to be gone in the latest release of Xcode, which I am running.
Transporter: When I upload my pkg in Transporter after signing in correctly, I get the following error message: "Could not create a temporary .itmsp package for the app “Network Troubleshooter.pkg”. Failed to get the app‘s bundle id." CFBundleIdentifier, CFBundleVersion, and CFBundleVersionShortString are all set in my app's Info.plist, so I don't understand this error.
xcrun altool: When I run the following: xcrun altool --upload-app -f /Applications/Network\ Troubleshooter.pkg -t osx -u [my apple id username] -p [my app-specific password from appleid.apple.com], I get the following error message:
2021-04-14 16:31:34.382 altool[2245:31985] CFURLRequestSetHTTPCookieStorageAcceptPolicy_block_invoke: no longer implemented and should not be called
2021-04-14 16:31:37.093 altool[2245:31977] * Error: Error uploading '/Applications/Network Troubleshooter.pkg'.
2021-04-14 16:31:37.102 altool[2245:31977]
* Error: code -20008 (Unable to validate your application. The Info.plist indicates a Mac app, but submitting an ipa.)
I am not submitting an ipa, but a pkg, and my app IS a Mac app.


I have used zero API's or libraries anywhere in my code. Yes, it's strange, but that's the truth.

Another thing is that if I temporarily move my .app file out of /Applications and run my pkg, it says the installation was sucessful. But no new files are added/installed in /Applications. I signed the pkg with productsign and built it with productbuild.

Also, my actual .app bundle that is made into a pkg has a different filename than the pkg and the name on App Store Connect.
App Store Connect app name: Network Troubleshooter
Pkg name: Network Troubleshooter.pkg
.app file name: Network Troubleshooting Assistant.app
Network Troubleshooting Assistant is too long to be entered in App Store connect, so I used Network Troubleshooter instead.

So, can you please help me fix these errors so I can upload my build and submit my app to the Mac App Store? I would really appreciate it. Thanks in advance for your help!

Another thing is that if I temporarily move my .app file out of
/Applications and run my pkg, it says the installation was
sucessful. But no new files are added/installed in /Applications.

That suggests that there’s a problem with the way that your installer package is constructed.

I signed the pkg with productsign and built it with productbuild.

Note You can do this in one step (using productbuild) but doing it in two is not an issue.

How are you invoking productbuild? The default command I used for this is in Signing a Mac Product For Distribution.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
This is how I created the pkg from Terminal:
  1. xattr -cr /Applications/Network\ Troubleshooting\ Assistant.app

  2. codesign -vfs "3rd Party Mac Developer Application: Bridget Alsdorf (T36UWKSKUU)" /Applications/Network\ Troubleshooting\ Assistant.app

  3. productbuild --component /Applications/Network\ Troubleshooting\ Assistant.app /Applications/Unsigned.pkg

  4. productsign --sign "3rd Party Mac Developer Installer: Bridget Alsdorf (T36UWKSKUU)" /Applications/Network\ Troubleshooter.pkg

Those were my commands. I have all of the necessary certificates in my Keychain and they are “Valid".

I sent the pkg in an email.
For those following along at home, I’ll be helping Dev500 in a different context.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Well, that was exciting. After some spelunking I determined that the error:

Error: code -20008 (Unable to validate your application. The Info.plist indicates a Mac app, but submitting an ipa.)

is completely off base. It has nothing to do with the the app being packaged as an .ipa. Rather, it’s triggered by the app not having an LSMinimumSystemVersion property in its Info.plist. Wacky!

I’ve filed a bug against the App Store validation process about this very misleading error message (r. 76840987).

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
I can't submit my app to the app store
 
 
Q