-
-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not detect platform. Are you missing a platform assembly? Mac #1427
Comments
Hey @DavinciCodes15, thanks for reporting the issue. Fortunately, it's probably a simple solution. I think the problem stems from this:
Simply copying the folder over to Mac does not set up the executable permissions of the application. After you have copied the .app bundle, you need to do something like this:
Another way to copy it over is to .zip the .app bundle up, then unzip it on macOS. macOS will properly set the executable bit when extracting the .zip file. Also, to run an .app bundle you cannot use
I'll add these instructions to the troubleshooting guide on the wiki. |
That did not work however the Icon changed from a cross over it to the default icon you provide. However double-clicking it did not work nor running it from the command line. I did not zip it up I did a direct copy BTW and changing it to runnable is not the issue it would appear that libs are missing. Here is a list of files found in the directory AtkSharp.dll System.Linq.Parallel.dll |
Hold the barn I got it to work. Thanks close the case. |
So I decided to try out your product and just did a simple default application meaning I selected New project gave it a name "CrossPlatformTest" and compiled it.
NOTE:
I selected Single Windows, Linux, and Mac Desktop project
also Code Preview.
Expected Behavior
It worked well in Windows and I expected the app to work on Mac as well as windows.
Actual Behavior
I copied the CrossPlatformTest.Desktop.app folder to mack and double-clicking it shows an error "The application CrossPlatformTest.Desktop cant't be opened." going to the terminal and running it from the command line shows a different error.
mono CrossPlatformTest.Desktop.exe
Unhandled Exception:
System.InvalidOperationException: Could not detect platform. Are you missing a platform assembly?
at Eto.Platform.get_Detect () [0x000d5] in <6db481985cca4510b36c8dbd12852b82>:0
at CrossPlatformTest.Desktop.Program.Main (System.String[] args) [0x00001] in <4c2f9d36573149108fc8387650940704>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Could not detect platform. Are you missing a platform assembly?
at Eto.Platform.get_Detect () [0x000d5] in <6db481985cca4510b36c8dbd12852b82>:0
at CrossPlatformTest.Desktop.Program.Main (System.String[] args) [0x00001] in <4c2f9d36573149108fc8387650940704>:0
Specifications
Others have seen this issue but there is no clear resolution as to what I need to do.
#29
The text was updated successfully, but these errors were encountered: