With some extremely valuable help, some time back I moved a solution that has 9 projects - over half of which were using MonoMac - to Xamarin.Mac. "Real Life" got in the way for a bit, so now, almost 8 months later, I picked it back up.
The debug build of the application builds and seems to run just fine. However, the release build fails. Here's the important part:
/Users/steveno/Projects/locutus/lui_src/Locutus/LtoFlash/obj/Release/XamMac/mmp-cache/registrar.m:42620:64: error: no type or protocol named 'IKImageBrowserDataSource' /Users/steveno/Projects/locutus/lui_src/Locutus/LtoFlash/obj/Release/XamMac/mmp-cache/registrar.m:43597:91: error: unknown class name 'IKImageBrowserItem'; did you mean 'IKImageBrowserView'? /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Quartz.framework/Frameworks/ImageKit.framework/Headers/IKImageBrowserCell.h:19:8: note: 'IKImageBrowserView' declared here /Users/steveno/Projects/locutus/lui_src/Locutus/LtoFlash/obj/Release/XamMac/mmp-cache/registrar.m:43597:91: error: type argument 'IKImageBrowserView' must be a pointer (requires a '*') /Users/steveno/Projects/locutus/lui_src/Locutus/LtoFlash/obj/Release/XamMac/mmp-cache/registrar.m:43597:82: error: type arguments cannot be applied to non-parameterized class 'NSObject' MMP: error MM5109: Native linking failed with error code 1. Check build log for details.
The class that implements IKImageBrowserDataSource is in a separate assembly, and is a private implementation class nested within a public class. I've tried moving the class out as a separate public entity, but it does not seem to make a difference.
Still need to work through the other two posts I found about this error to see if there's a common way to fix this. Looking at the mml-cache directories, it would seem the trouble lies with the registrar.m / registrar.h somewhere?
Also: I have not yet tried to load and build in Visual Studio for Mac - this is using the most recent Xamarin Studio Community and latest updates to Xcode, macOS Sierra, et. al.