When I build my MacOS application, with the mmp arguments --registrar:dynamic, it shows for less than a second the mainscreen, then it crashes.
Without that arguments, my solution failed to compile with the following errors:
xcrun -sdk macosx clang -mmacosx-version-min=10.13 -arch x86_64 -fobjc-runtime=macosx -Wno-unguarded-availability-new -ObjC -framework Foundation -framework AppKit -framework QuartzCore -framework WebKit -framework CoreVideo -framework CloudKit -framework Security -framework SystemConfiguration -framework OpenGL -framework CoreFoundation -framework CoreServices -framework ApplicationServices -framework Carbon -framework IOKit -u xamarin_timezone_get_data -u _xamarin_nfloat_objc_msgSend -u _xamarin_nfloat_objc_msgSendSuper -u _xamarin_IntPtr_objc_msgSend_IntPtr -u _xamarin_IntPtr_objc_msgSendSuper_IntPtr -u _xamarin_get_block_descriptor /Library/Frameworks/Xamarin.Mac.framework/Versions/4.2.0.20/lib/libxammac.a -o /Users/Developer/Desktop/Projects/app/Source/app.MacOS/bin/Test/app.MacOS.app/Contents/MacOS/app.MacOS -D_THREAD_SAFE -I/Library/Frameworks/Xamarin.Mac.framework/Versions/4.2.0.20/lib/pkgconfig/../../include/mono-2.0 /Library/Frameworks/Xamarin.Mac.framework/Versions/4.2.0.20/lib/pkgconfig/../../lib/libmonosgen-2.0.a -liconv -x objective-c++ -I/Library/Frameworks/Xamarin.Mac.framework/Versions/4.2.0.20/include /Users/Developer/Desktop/Projects/app/Source/app.MacOS/obj/Test/mmp-cache/registrar.m -fno-caret-diagnostics -fno-diagnostics-fixit-info -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk /Users/Developer/Desktop/Projects/app/Source/app.MacOS/obj/Test/mmp-cache/main.m
Process exited with code 1, command:
xcrun -sdk macosx clang -mmacosx-version-min=10.13 -arch x86_64 -fobjc-runtime=macosx -Wno-unguarded-availability-new -ObjC -framework Foundation -framework AppKit -framework QuartzCore -framework WebKit -framework CoreVideo -framework CloudKit -framework Security -framework SystemConfiguration -framework OpenGL -framework CoreFoundation -framework CoreServices -framework ApplicationServices -framework Carbon -framework IOKit -u _xamarin_timezone_get_data -u _xamarin_nfloat_objc_msgSend -u _xamarin_nfloat_objc_msgSendSuper -u _xamarin_IntPtr_objc_msgSend_IntPtr -u _xamarin_IntPtr_objc_msgSendSuper_IntPtr -u _xamarin_get_block_descriptor /Library/Frameworks/Xamarin.Mac.framework/Versions/4.2.0.20/lib/libxammac.a -o /Users/Developer/Desktop/Projects/app/Source/app.MacOS/bin/Test/app.MacOS.app/Contents/MacOS/app.MacOS -D_THREAD_SAFE -I/Library/Frameworks/Xamarin.Mac.framework/Versions/4.2.0.20/lib/pkgconfig/../../include/mono-2.0 /Library/Frameworks/Xamarin.Mac.framework/Versions/4.2.0.20/lib/pkgconfig/../../lib/libmonosgen-2.0.a -liconv -x objective-c++ -I/Library/Frameworks/Xamarin.Mac.framework/Versions/4.2.0.20/include /Users/Developer/Desktop/Projects/app/Source/app.MacOS/obj/Test/mmp-cache/registrar.m -fno-caret-diagnostics -fno-diagnostics-fixit-info -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk /Users/Developer/Desktop/Projects/app/Source/app.MacOS/obj/Test/mmp-cache/main.m
/Users/Developer/Desktop/Projects/app/Source/app.MacOS/obj/Test/mmp-cache/registrar.m(10600,2): warning GB7F1753F: method possibly missing a [super splitView:effectiveRect:forDrawnRect:ofDividerAtIndex:] call [-Wobjc-missing-super-calls]
Undefined symbols for architecture x86_64:
"_OBJC_CLASS$TKBERTLVRecord", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKCompactTLVRecord", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKSimpleTLVRecord", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKSmartCard", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKSmartCardATR", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKSmartCardATRInterfaceGroup", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKSmartCardPINFormat", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKSmartCardSlot", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKSmartCardSlotManager", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKSmartCardToken", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKSmartCardTokenDriver", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKSmartCardTokenSession", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKSmartCardUserInteraction", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKSmartCardUserInteractionForPINOperation", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKSmartCardUserInteractionForSecurePINChange", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKSmartCardUserInteractionForSecurePINVerification", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKTLVRecord", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKToken", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKTokenAuthOperation", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKTokenDriver", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKTokenKeyAlgorithm", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKTokenKeyExchangeParameters", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKTokenKeychainCertificate", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKTokenKeychainContents", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKTokenKeychainItem", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKTokenKeychainKey", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKTokenPasswordAuthOperation", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKTokenSession", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$TKTokenSmartCardPINAuthOperation", referenced from:
objc-class-ref in registrar-6bdddd.o
"_OBJC_CLASS$_TKTokenWatcher", referenced from:
objc-class-ref in registrar-6bdddd.o
ld: symbol(s) not found for architecture x86_64
clang : error : linker command failed with exit code 1 (use -v to see invocation)
/Users/Developer/Desktop/Projects/app/Source/app.MacOS/clang: Error: linker command failed with exit code 1 (use -v to see invocation) (app.MacOS)
/Users/Developer/Desktop/Projects/app/Source/app.MacOS/MMP: Error MM5109: Native linking failed with error code 1. Check build log for details. (MM5109) (app.MacOS)
The error report i get from macos contains the following information:
Process: app.MacOS [96901]
Path: /Users/USER/Desktop/*/app.MacOS.app/Contents/MacOS/app.MacOS
Identifier: nl.rijksoverheid.app.macos.dev
Version: 1.0.0 (4)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: app.MacOS [96901]
User ID: 501
Date/Time: 2018-03-07 15:19:16.517 +0100
OS Version: Mac OS X 10.13.3 (17D102)
Report Version: 12
Anonymous UUID: 857B28F5-C450-0799-C308-057D25EBABBE
Sleep/Wake UUID: CF20D6A3-9B57-49F7-957A-AD15CE242180
Time Awake Since Boot: 140000 seconds
Time Since Wake: 21000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 tid_307 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
VM Regions Near 0:
-->
__TEXT 000000010ce28000-000000010d1cc000 [ 3728K] r-x/rwx SM=COW xv [/Users/Developer/Desktop/Projects/app/Source/app.MacOS/bin/Test/app.MacOS.app/Contents/MacOS/app.MacOS]
Thread 0 Crashed:: tid_307 Dispatch queue: com.apple.main-thread
0 nl.rijksoverheid.app.macos.dev 0x000000010d0f400d eglib_log_adapter + 13 (mono-logger.c:368)
1 nl.rijksoverheid.app.macos.dev 0x000000010d107e33 monoeg_g_logv + 83 (goutput.c:116)
2 nl.rijksoverheid.app.macos.dev 0x000000010d10804f monoeg_assertion_message + 143 (goutput.c:137)
3 nl.rijksoverheid.app.macos.dev 0x000000010cf546f3 mono_jit_thread_attach + 179
4 nl.rijksoverheid.app.macos.dev 0x000000010ce546c0 xamarin_switch_gchandle + 144 (runtime.m:1771)
5 nl.rijksoverheid.app.macos.dev 0x000000010ce57009 xamarin_release_trampoline + 105 (trampolines.m:485)
6 libobjc.A.dylib 0x00007fff552ca087 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 817
7 nl.rijksoverheid.app.macos.dev 0x000000010ce5d8bd xamarin_main + 1245 (launcher.m:675)
8 nl.rijksoverheid.app.macos.dev 0x000000010ce5e7d4 main + 36 (launcher.m:680)
9 libdyld.dylib 0x00007fff55ec4115 start + 1
Thread 1:
0 libsystem_kernel.dylib 0x00007fff56014562 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff5614f26f _pthread_wqthread + 1552
2 libsystem_pthread.dylib 0x00007fff5614ec4d start_wqthread + 13
Thread 2:
0 libsystem_kernel.dylib 0x00007fff56014562 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff5614f26f _pthread_wqthread + 1552
2 libsystem_pthread.dylib 0x00007fff5614ec4d start_wqthread + 13
Thread 3:
0 libsystem_kernel.dylib 0x00007fff56014562 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff5614f26f _pthread_wqthread + 1552
2 libsystem_pthread.dylib 0x00007fff5614ec4d start_wqthread + 13
Thread 4:
0 libsystem_kernel.dylib 0x00007fff56014562 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff5614f06a _pthread_wqthread + 1035
2 libsystem_pthread.dylib 0x00007fff5614ec4d start_wqthread + 13
Thread 5:
0 libsystem_kernel.dylib 0x00007fff56014562 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff5614f06a _pthread_wqthread + 1035
2 libsystem_pthread.dylib 0x00007fff5614ec4d start_wqthread + 13
Thread 6:
0 libsystem_kernel.dylib 0x00007fff56014562 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff5614f26f _pthread_wqthread + 1552
2 libsystem_pthread.dylib 0x00007fff5614ec4d start_wqthread + 13
Thread 7:
0 libsystem_kernel.dylib 0x00007fff56014562 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff5614f06a _pthread_wqthread + 1035
2 libsystem_pthread.dylib 0x00007fff5614ec4d start_wqthread + 13
Thread 8:
0 libsystem_kernel.dylib 0x00007fff56014562 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff5614f26f _pthread_wqthread + 1552
2 libsystem_pthread.dylib 0x00007fff5614ec4d start_wqthread + 13
Thread 9:
0 libsystem_kernel.dylib 0x00007fff56013cee __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff56150662 _pthread_cond_wait + 732
2 libc++.1.dylib 0x00007fff53ef9d43 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration > >) + 93
3 com.apple.JavaScriptCore 0x00007fff320ebd25 std::__1::cv_status std::__1::condition_variable::wait_until<std::__1::chrono::steady_clock, std::__1::chrono::duration > >(std::__1::unique_lock&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration > > const&) + 117
4 com.apple.JavaScriptCore 0x00007fff320ebc10 std::__1::cv_status std::__1::condition_variable_any::wait_until<std::__1::unique_lock, std::__1::chrono::steady_clock, std::__1::chrono::duration > >(std::__1::unique_lock&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration > > const&) + 96
5 com.apple.JavaScriptCore 0x00007fff320ebaa9 bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop() + 233
6 com.apple.JavaScriptCore 0x00007fff320ebd78 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete >, void (*)(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*), bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*> >(void*) + 40
7 libsystem_pthread.dylib 0x00007fff5614f6c1 _pthread_body + 340
8 libsystem_pthread.dylib 0x00007fff5614f56d _pthread_start + 377
9 libsystem_pthread.dylib 0x00007fff5614ec5d thread_start + 13
Thread 10:: com.apple.coreanimation.render-server
0 libsystem_kernel.dylib 0x00007fff5600a7c2 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff56009cdc mach_msg + 60
2 com.apple.QuartzCore 0x00007fff396cbce5 CA::Render::Server::server_thread(void*) + 481
3 com.apple.QuartzCore 0x00007fff396cbaf6 thread_fun + 25
4 libsystem_pthread.dylib 0x00007fff5614f6c1 _pthread_body + 340
5 libsystem_pthread.dylib 0x00007fff5614f56d _pthread_start + 377
6 libsystem_pthread.dylib 0x00007fff5614ec5d thread_start + 13
Thread 11:
0 libsystem_kernel.dylib 0x00007fff56014562 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff5614f26f _pthread_wqthread + 1552
2 libsystem_pthread.dylib 0x00007fff5614ec4d start_wqthread + 13
Thread 12:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x00007fff5600a7c2 mach_msg_trap + 10
1 libsys