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
3
votes
0 answers

Verify user password using Authorization Services

I'm writing OS X application and I want to check if current user have empty password. I tried to use Authorization Services for it var env = new AuthorizationEnvironment(); env.Password = ""; env.Username = ; using (var auth =…
Maxim Kosov
  • 1,930
  • 10
  • 19
3
votes
2 answers

How to programmatically open a file of any type on OS X?

I've tried this: var openedSuccessfully = AppKit.NSWorkspace.SharedWorkspace.OpenFile(filePath); It seems to work, except for those file types which have no default app associated with them. When I try to open such a file from Finder, I get this…
nvirth
  • 1,599
  • 1
  • 13
  • 21
3
votes
2 answers

How do I connect remote MAC as build host for Xamarin on Visual Studio?

I have mac-mini configured and running at my home. And I want to pair my Visual Studio to that mac. Is it possible to configure it as a build host in case when it's located in a different network ? i.e. Mac is at home and my Windows/Visual Studio…
Andrii Tsok
  • 1,386
  • 1
  • 13
  • 26
3
votes
2 answers

WKWebView load local content with LoadFileUrl

I'm trying to load a local html file in a WKWebView with the LoadFileUrl method, but all I get is a blank view. It's a Xamarin.Mac App (no Sandbox yet). WKWebViewConfiguration conf = new WKWebViewConfiguration(); WKWebView www = new WKWebView…
frenchfaso
  • 481
  • 5
  • 17
3
votes
2 answers

Build xamarin.mac console app for distribution

I have created a simple console window app within Xamarin Studio for mac.os. I hit debug and I see the console app. All works ok. But if I open a bash shell and navigate to the bin/Debug location and try to run the program, I get the message: …
brewsky
  • 607
  • 1
  • 9
  • 15
3
votes
0 answers

App Startup in OSX with Xamarin.Mac

How would one run an app at startup (user login) with Xamarin.Mac? So far I have come across a few solutions, of which I have run in to some difficulties and want to gauge which is best before proceeding. Service Management Framework Using this…
Daniel Park
  • 3,903
  • 4
  • 23
  • 38
3
votes
2 answers

How to build Xamarin.Mac application from command line or build script

We have a Xamarin.Mac application that is ready to be Continuously Integrated via TeamCity. We have a build host on Mac machine where Xamarin Studio is installed. The next step is to create a build step in a build configuration. Unlike VS, Xamarin…
Maxim V. Pavlov
  • 10,303
  • 17
  • 74
  • 174
3
votes
1 answer

Get Default Temporary Folder in Mac using Mono

I need my application to write buffer data to the temporary folder.When i used System.IO.Path.GetTempPath() in Mac it returned a string var/folders/r3/blah..blah/T/ (blah.blah = some random letters and digits) Where exactly is this folder…
techno
  • 6,100
  • 16
  • 86
  • 192
3
votes
0 answers

Exception opening *.storyboard file in Visual Studio 2013 with OS X via VirtualBox

I got exception below every time when I try to open *.storyboard file in VS 2013, and am never able to open it. However, I can deploy Xamarin.iOS projects in VS to iPhone. Below is my system details: Windows 7 host, OS X 10.9.5 guest via…
Pingpong
  • 7,681
  • 21
  • 83
  • 209
3
votes
0 answers

Failed to show simulator on build server

I am unable to build and also failed to show simulator in mac book. My pc is paired successfully My Mac Server log is [12-Sep-2014 12:05:00] Request handled in 3.344ms Attempting to show the simulator. You will be notified when done. Failed to show…
Waqas Idrees
  • 1,443
  • 2
  • 17
  • 36
3
votes
2 answers

ResolveAssemblyReference Could not load file or assembly - Xamarin - PCL Library -

I upgraded to latest version of Xamarin Studio(5.0.878) in MAC OSX Mountain Lion . I have a basic setting with a PCL project - which contains .NET Portable subset as expected. And I have an android project that refers to this PCL project. However…
user3141326
  • 1,423
  • 2
  • 21
  • 31
3
votes
0 answers

Using the mono profiler with app bundle on osx

I'm trying to profile an application bundle generated through by using the command line mono parameter --profile but i can't get it to work. Calling the on the exe located in the .app bundle will result in this : No Info.plist file in application…
draeron
  • 1,218
  • 1
  • 10
  • 13
3
votes
1 answer

Xamarin/Mono Mac - Handshake failure in AppStore build

I have an application which now needs to be deployed to the app store, as it is slowly becoming unavoidable thanks to Gatekeeper. Only problem is that web requests seem to fail, in the sense that they aren't even being fired. The following code…
Daniel Park
  • 3,903
  • 4
  • 23
  • 38
3
votes
1 answer

Validating x509 certificate on Mono (OS X trusted roots)

Our application currently validates server certificates in unmanaged code using openssl (http://www.openssl.org/docs/crypto/X509_verify_cert.html). We are moving that into managed code. I have the X509 certificate being marshalled over into the…
TheNextman
  • 12,428
  • 2
  • 36
  • 75
3
votes
1 answer

Logging runtime crashes in mono on OS X

I'd like to know about any and all crashes of my app 'in the wild'. We can capture managed exceptions easily enough using AppDomain.CurrentDomain.UnhandledException. Occasionally we get crashes in unmanaged code (either through our own interactions…
TheNextman
  • 12,428
  • 2
  • 36
  • 75