Hello,
First, I don't actually have a Mac. I just send a test app to a friend who does, then he reports back on whether it works. This friend has OS X El Capitan 10.11.3 with the latest Mono already installed.
So, I create a new Eto project using the Visual Studio Eto template (settings: Combined Windows & Linux assemblies, separate Mac, PCL, Code Preview).
I build the new project as is. The app works locally on Windows. I go to my bin folder, zip the
MyApp.Desktop.app folder, and send it to my friend.
He tries to run it and gets this error: The operation couldn't be completed. (OSStatus error -67062.)
Looking online, this seems to happen when you create the zip on Mac, as it includes an extra __MACOS folder that causes issues (
https://github.com/picoe/Eto/wiki/Troubleshooting-&-Common-Problems). Weird, I didn't zip the folder on Mac but on Windows. and I can't see any __MACOS folder anywhere. I ask the guy to allow unsigned apps and try again (I saw someone mention that online). Same result.
Then I ask him to try running the exe with mono through command lines. This doesn't work either. This time he gets this error:
Unhandled Exception: System.InvalidOperationException: Could not detect platform. Are you missing a platform assembly?
Again, weird. The generated application code says "Platform.Detect" (from "new Application(Platform.Detect).Run(new MainForm());"), so I guess it's supposed to figure it out on its own. I made sure he had all the needed assemblies in the same folder as the exe (that is to say all the assemblies in the MonoBundle folder: MyApp.Desktop.exe, MyApp.Desktop.pdb, MyApp.dll, MyApp.pdb, Eto.dll, Eto.Mac.dll, Eto.xml, MonoMac.dll).
Can anyone help? Thanks.