Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/AppKit/NSApplication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ namespace XamCore.AppKit {
public partial class NSApplication : NSResponder {
public static bool CheckForIllegalCrossThreadCalls = true;
public static bool CheckForEventAndDelegateMismatches = true;
public static bool IgnoreMissingAssembliesDuringRegistration = false;

private static Thread mainThread;

Expand Down
13 changes: 8 additions & 5 deletions src/ObjCRuntime/Runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
using XamCore.Foundation;
using XamCore.Registrar;

#if MONOMAC
using XamCore.AppKit;
#endif

#if !COREBUILD && (XAMARIN_APPLETLS || XAMARIN_NO_TLS)
#if !MMP && !MTOUCH && !MTOUCH_TEST
using Mono.Security.Interface;
Expand Down Expand Up @@ -408,14 +412,13 @@ static void CollectReferencedAssemblies (List<Assembly> assemblies, Assembly ass
if (!assemblies.Contains (a))
CollectReferencedAssemblies (assemblies, a);
}
#if MONOMAC
catch {
catch (FileNotFoundException fefe) {
// that's more important for XI because device builds don't go thru this step
// and we can end up with simulator-only failures - bug #29211
throw;
#else
catch (FileNotFoundException fefe) {
NSLog ("Could not find `{0}` referenced by assembly `{1}`.", fefe.FileName, assembly.FullName);
#if MONOMAC
if (!NSApplication.IgnoreMissingAssembliesDuringRegistration)
throw;
#endif
}
}
Expand Down