When using SFBusyIndicator, I followed the instructions to initialize it in my XF iOS project as follows:
publicoverrideboolFinishedLaunching(UIApplicationapp,NSDictionaryoptions){newSfBusyIndicatorRenderer();}
However I get the exception below in my release build. What fixed it for me was adding this flags as additional mtouch arguments. Otherwise, I'd get a fatal exception:
-optimize=-remove-dynamic-registrar flag to MTouchExtraArgs
I suspect the simple act of instantiating SFBusyIndicatorRenderer alone without assigning it does not preserve it? Perhaps you could add this to a future release as SfBusyIndicatorRenderer.Init() to also be consistent with all other syncfusion controls.
Stack trace:
SIGABRT: Can't register the class Syncfusion.SfBusyIndicator.iOS.SfBusyIndicator when the dynamic registrar has been linked away.
Class.GetClassHandle (System.Type type, System.Boolean throw_if_failure, System.Boolean& is_custom_type)
NSObject.AllocIfNeeded ()
UIKit.UIControl..ctor () <0x1056d5d74 + 0x00013> in <bbd12705940f4bb29392519af87b535b#3120ae0a6b8e0f2730a17de9068bfe96>:0
Syncfusion.SfBusyIndicator.iOS.SfBusyIndicator..ctor () <0x1072fa474 + 0x0003b> in <d2bfd041c31d4053b02052b5185ffc57#3120ae0a6b8e0f2730a17de9068bfe96>:0
SfBusyIndicatorRenderer.OnElementChanged (Xamarin.Forms.Platform.iOS.ElementChangedEventArgs`1[TElement] e)
VisualElementRenderer`1[TElement].SetElement (TElement_REF element)
IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element)
Platform.CreateRenderer (Xamarin.Forms.VisualElement element)
VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view)
VisualElementPackager.Load ()
VisualElementRenderer`1[TElement].SetElement (TElement_REF element)
IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element)
Platform.CreateRenderer (Xamarin.Forms.VisualElement element)
VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view)
VisualElementPackager.Load ()
VisualElementRenderer`1[TElement].SetElement (TElement_REF element)
IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element)
Platform.CreateRenderer (Xamarin.Forms.VisualElement element)
VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view)
VisualElementPackager.Load ()
VisualElementRenderer`1[TElement].SetElement (TElement_REF element)
IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element)
Platform.CreateRenderer (Xamarin.Forms.VisualElement element)
VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view)
VisualElementPackager.Load ()
VisualElementRenderer`1[TElement].SetElement (TElement_REF element)
IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element)
Platform.CreateRenderer (Xamarin.Forms.VisualElement element)
VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view)
VisualElementPackager.Load ()
VisualElementRenderer`1[TElement].SetElement (TElement_REF element)
IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element)
Platform.CreateRenderer (Xamarin.Forms.VisualElement element)
VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view)
VisualElementPackager.Load ()
VisualElementRenderer`1[TElement].SetElement (TElement_REF element)
IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element)
Platform.CreateRenderer (Xamarin.Forms.VisualElement element)
VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view)
VisualElementPackager.Load ()
PageRenderer.ViewDidLoad ()
(wrapper managed-to-native) ObjCRuntime.Messaging.objc_msgSendSuper(intptr,intptr)
UIViewController.get_View ()
PageRenderer.SetElement (Xamarin.Forms.VisualElement element)
Platform.CreateRenderer (Xamarin.Forms.VisualElement element)
TabbedRenderer.SetupPage (Xamarin.Forms.Page page, System.Int32 index)
TabbedRenderer.Reset ()
NotifyCollectionChangedEventArgsExtensions.Apply (System.Collections.Specialized.NotifyCollectionChangedEventArgs self, System.Action`3[T1,T2,T3] insert, System.Action`2[T1,T2] removeAt, System.Action reset)
TabbedRenderer.OnPagesChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
TabbedRenderer.SetElement (Xamarin.Forms.VisualElement element)
Platform.CreateRenderer (Xamarin.Forms.VisualElement element)
NavigationRenderer.CreateViewControllerForPage (Xamarin.Forms.Page page)
NavigationRenderer+<OnPushAsync>d__51.MoveNext ()
NavigationRenderer+<<ViewDidLoad>b__46_0>d.MoveNext ()
AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state)
NSAsyncSynchronizationContextDispatcher.Apply ()
(wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName)
Application.Main (System.String[] args)