Questions tagged [xamarin.mac]

Xamarin.Mac is an open source library for building Cocoa applications on OSX using C# and .NET. It is based on top of the Mono framework.

Xamarin.Mac: an open source library for building Cocoa applications on OSX using C# and .NET.

You can dig into the source code and read the documentation.

584 questions
4
votes
1 answer

Is Xamarin Studio absolutely required to release Mono apps on the Mac App Store & MonoMacPackager obsolete?

There was a time, not two years ago, when you could didn't need Xamarin.Mac to deploy Mono apps to the Mac App Store. To be clear, that's the store for Mac OS X desktop apps, not iOS apps. Now the MonoMacPackager page says the following: If you…
ruffin
  • 16,507
  • 9
  • 88
  • 138
4
votes
1 answer

Sandboxed Mac App with helper command line tool

I am getting the following error when submitting my app Invalid Signature - the main app bundle MyApp at path MyApp.app is signed but the signature is invalid. The following error(s) were reported from codesign: a sealed resource is missing or…
Hausland
  • 127
  • 5
4
votes
1 answer

iMac - missing x86 version of GameKit

If I run this command: file /System/Library/Frameworks/GameKit.framework/GameKit I get: /System/Library/Frameworks/GameKit.framework/GameKit: Mach-O 64-bit dynamically linked shared library x86_64 Which equates to my iMac (a brand new one) is…
jonathanpeppers
  • 26,115
  • 21
  • 99
  • 182
3
votes
1 answer

How to find link to a non-public framework in a Xamarin.Mac app

We're publishing a MacOS app to the app store, which uses Xamarin.Mac and Xamarin Forms. During the review process in App Store Connect, our app binary has been rejected for the following reason: Your app app links against the following non-public…
Kevin C
  • 324
  • 1
  • 14
3
votes
2 answers

Xamarin.Mac https://localhost httplclient

I have a local webapi which i use a selfsigned certificate to run on a pc.I am able to reach the webapi (written in .net core) using the browser (https://localhost:port/controller/method), but when i use httpclient on Mac OS Mojave i get an…
3
votes
1 answer

Why I get this error when I try to open my Xamarin.Mac project "MonoDevelop.MonoMac.XamMac2ProjectFlavor"?

When I try to open my Xamarin.Mac project I receive this error, any ideas? Error while trying to load the project '/Users/eduardo/Desktop/MyProject/MyProject.MacOs/MyProject.MacOs.csproj': The type initializer for…
Led Machine
  • 7,122
  • 3
  • 47
  • 49
3
votes
1 answer

Install app from PKG file is not visible in Application

I have mac project in Xamarin.Forms and I had created .pkg file in release mode (set the provisioning profile for code sign and product sign properly) but when I am install application from created PKG file then it installed successfully but I am…
John Smith
  • 139
  • 8
3
votes
0 answers

Trying to create Xamarin.Forms macOS App: The name 'LoadApplication' does not exist in the current context

I am just trying to create a Xamarin.Forms Mac Application. I followed this guide which seems a bit outdated but I can stil follow the steps with Visual Studio Mac 2017: https://blog.xamarin.com/preview-bringing-macos-to-xamarin-forms/ When…
rabejens
  • 7,594
  • 11
  • 56
  • 104
3
votes
1 answer

Xamarin.Forms: Platform-indepenent application menu

I'm writing a Xamarin.Forms desktop application, and I'll ultimately want to target MacOS and Windows. Does Xamarin.Forms have any platform independent mechanisms which you can use to build the application menu (i.e. the one where you find "File",…
Jwosty
  • 3,497
  • 2
  • 22
  • 50
3
votes
1 answer

Add a Xamarin.Forms macOS project to a solution on a PC

Is there any way to add a Xamarin.Forms macOS project to a solution on Visual Studio on a PC? I already have a solution with projects for iOS etc. Can I add macOS to the solution? I've found an answer here that seems to say that's impossible. But I…
ispiro
  • 26,556
  • 38
  • 136
  • 291
3
votes
2 answers

How to draw a rectangle in xamarin.mac

I'm trying to draw a rectangle in the xamarin.mac framework. It seems like this can be accomplished with the CoreGrpahics namespace but I'm not sure how it hooks up with xamarin. For example NSColor.Black.Set(); …
Dave Fol
  • 515
  • 3
  • 11
3
votes
2 answers

Xamarin.Mac - Show icon/image before Window Title

I am trying to show an image/icon before the title of window, just like in finder. I have used Window.SetTitleWithRepresentedFilename but it just shows a generic icon not that png file I want to show.
Faisal Ghaffar
  • 181
  • 2
  • 12
3
votes
1 answer

Having Trouble Making a Button in Xamarin.Mac/XCode-Storyboard

Let me start off by saying I am new to XCode, but already very experienced in C#. I am having trouble getting the outlet for this button, and every time I try to Control drag it under ViewControl it only lets me do action! I have been googling for…
Sean Mitchell
  • 447
  • 2
  • 21
3
votes
2 answers

Xamarin Android Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Xamarin.Android.Support.Compat'

I am working on Xamarin.Forms project for my company and we plan to release our app on IOS and Android (Using Visual Studio Community Edition on Macbook pro). So far everything seemed to be OK. And then suddenly I cannot build debug or release on…
kaktusas2598
  • 641
  • 1
  • 7
  • 28
3
votes
1 answer

How do I bind to a system framework with Xamarin.Mac?

I'm in the proces of making an app for interacting with smartcards. For that I'd like to use the CryptoTokenKit Framework which is standard on a Mac (located at /System/Library/Frameworks/CryptoTokenKit.framework). This link says that it's possible…