Tim Coulter
Tim Coulter

Reputation: 8937

Xamarin.Mac installer not working

I have a Xamarin.Mac solution that runs correctly in Debug or Release build from within Xamarin Studio, but I am struggling to create a working installer for it.

I want to use direct distribution (outside the App Store), so this is the procedure I used to create the installer:

Within the Apple developer portal:

On the development Mac:

Within Xcode:

Within Xamarin Studio:

After the build is complete, the bin/Release folder contains everything I would expect, including the .pkg and .app files.

If I double-click the .pkg file, it appears to correctly execute the installation sequence, but the installed app is not listed in Applications or Launchpad. Moreover, if I run the .app file from its bin/Release folder, it executes correctly, but if I manually move it to the Applications folder, it crashes on startup.

Within Utilities > System Information > Software > Applications, I can see that the app was installed and that its source is an "Identified Developer", so this seems to confirm that the signing worked correctly.

I'm puzzled why, if it was correctly installed, I am unable to run it.

Sorry, I am quite new to both Mac and Xamarin.Mac, so I am not completely sure what I should expect to see here, but I assume it's more than I am currently seeing.

Any clues please?

Upvotes: 1

Views: 170

Answers (1)

Chris Hamons
Chris Hamons

Reputation: 1509

Likely if you are able to run an application locally but not able to via an installed package, you are running into code signing issues.

As noted here you could try running your application from the command line:

Run your application from the command line and look at the output (in the Terminal app) by using: MyApp.app/Contents/MacOS/MyApp (where MyApp is the name of your application)

and see if you are getting a code signing specific error on launch.

If so, then possibly your machine may not be on the provisioning profile/certificate selected.

Upvotes: 1

Related Questions