Bug 5352 - Cannot create proper Mac App Store build using MonoDevelop 3.0.2
Summary: Cannot create proper Mac App Store build using MonoDevelop 3.0.2
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Mac Add-in ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
Depends on:
Reported: 2012-05-26 06:10 UTC by Alfredo Machin
Modified: 2012-05-30 13:31 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Alfredo Machin 2012-05-26 06:10:49 UTC
Create a brand new C# MonoMac Solution with MD 3.0.2, (let's call it "MyApplication"). And use the "MonoMac Project" template. Then go into project options and change the Assembly Name in Debug Mode to "My Application" (now with a space between the 2 words) and start debugging, your program will run fine and cause a blank window to pop up. The icon for the running application that shows up in the dock says "My Application" with the blank space as it should.

Now let's say I wanted to submit this application to the Mac App Store. First I switch the Active Configuration from Debug to App Store. Then in project options I change Assembly Name (under App Store configuration) to be "My Application" as I did with Debug config. Then I have to fill out the "Mac OS X Packaging" section in project options:

I must make sure that the Provision section is filled in or else MD will not allow me to build. And also must make sure that the "Identifier" field in Info.plist matches the name supplied when creating the provisioning profile I selected.

Now if I rebuild, it builds fine without errors. Now that I have my .pkg file ready to submit to Apple, Apple suggests first installing the application on my computer to make sure it runs ok. For simplicity, I'll move the .pkg file to my Desktop, rename it MyApplication.pkg. and delete the "bin" folder from my project so the installer doesn't overwrite the .app files in there.

Then, as per Apple, I should issue this command in Terminal to install the application:

sudo installer -store -pkg /Users/alfredomachin/Desktop/MyApplication.pkg -target /

And when I do, I now have "My Application.app" in my /Applications folder. But there is a big void sign on it and if you double click it it gives the following error message: 

"You can't open the application My Application because it may be damaged or incomplete."

Did I miss something or is this a bug? Thanks for your time.
Comment 1 Jeffrey Stedfast 2012-05-29 17:05:20 UTC
looks like the mmp tool does not properly handle paths with spaces in the name.

In the meantime, avoid using spaces in the name of your app.
Comment 2 Jeffrey Stedfast 2012-05-29 17:20:49 UTC
try replacing your mmp (it'll be in your MonoDevelop.app) with http://files.xamarin.com/~jeff/mmp
Comment 3 Alfredo Machin 2012-05-29 18:10:09 UTC
Hi Jeff, thanks for the mmp file. Unfortunately the resulting "My Application.app" still gives the

"You can't open the application My Application because it may be damaged or

error when trying to run it.

I think this is very important because the Mac App store rejects apps if the name listed in the Mac App store does not match the name of the app once installed. So if I wanted to submit a game called "My Fun Adventure" I would be forced to display it on the Mac App Store as something like "MyFunAdventure" which isn't a very marketable approach to naming an application, in my opinion.

Perhaps this bug should not be set as Resolved/Fixed?

Anyway thanks, for checking this out for me.
Comment 4 Jeffrey Stedfast 2012-05-29 21:51:28 UTC
I realized after I left the office that I had accidentally uploaded the wrong mmp binary... I'll upload the correct one tomorrow morning when I get back to the office.
Comment 5 Jeffrey Stedfast 2012-05-30 11:28:42 UTC
try the same link now
Comment 6 Alfredo Machin 2012-05-30 12:56:56 UTC
It works perfectly now! Not only did I try it with the simple MonoMac Template project. I also packaged up my very complex game with the MonoGame framework and the resulting .pkg file installed a perfect working .app file using that Terminal command. Thanks so much!
Comment 7 Jeffrey Stedfast 2012-05-30 13:31:10 UTC
No prob, always glad to help!