'ERROR: Unable to load assembly `Xamarin.Mac' referenced by /Users/user/Projects/TestForDeploy/TestForDeploy/bin/Debug/TestForDeploy.exe'

I am building a simple app in order to test deployment of a console application.

When a try mkbundle according to the explanation of Microsoft I receive the next error:

ERROR: Unable to load assembly Xamarin.Mac' referenced by /Users/User/Projects/TestForDeploy/TestForDeploy/bin/Debug/TestForDeploy.exe'

I can deploy the app normally if I quit the reference to `Xamarin.Mac' from the app. the next is the code of mkbundle that I used:

mkbundle -o /Users/User/desktop/TestFordeploy --simple /Users/User/Projects/TestForDeploy/TestForDeploy/bin/Debug/TestForDeploy.exe --library libxammac.dylib,/Users/User/Projects/TestFordeploy/TestFordeploy/bin/Debug/libxammac.dylib --config /Library/Frameworks/Mono.framework/Versions/Current/etc/mono/config --config /Library/Frameworks/Xamarin.Mac.framework/Versions/8.8.0.3/lib/64bits/full/Xamarin.Mac.dll --machine-config /Library/Frameworks/Mono.framework/Versions/Current/etc/mono/4.5/machine.config

I can deploy the app without the reference of Xamarin at this point and work with but it is important to me resolve this issue for future apps. Thank you all.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source