I've created a bundle MyApp.app. I've signed it with codesign, then created a signed package MyApp.pkg using productbuild.
Then I've used installer command to test its installation.
Both bundle and package, works with no problem in my box.
But when I try to upload it to App Store, it returns an error:
ERROR ITMS-90259: "Bad Bundle Executable. You must include a valid CFBundleExecutable key in your bundle's information property list file."
When check the bundle content, I've found the executable: MyApp.app/MacOS/myapp and MyApp.app/MacOS/myapp-bin, while in my Info.plist I found:
<key>CFBundleExecutable</key>
<string>myapp</string>
Then it apears its correct!
What value should be on CFBundleExcutable is considered valid to upload to App Store? No documentation exists, and errors don't show the answer.