I have a project that works fine on Android and WinPhone 8. When I try to run iOS, I get the following error
Microsoft.Practices.ServiceLocation.ActivationException: Failed to register: No public constructor found in x
where x is that SimpleIoc.Default.Register<T, TU>(); happens to flow. I moved the code around (as suggested elsewhere) to ensure that all SimpleIoc calls are SimpleIoc on the platform in ViewModelLocator .
I added the public ctors settings in the classes that complain about the error (I installed the PreferredConstructor in the source, not the recently added public ctor).
I have the feeling that this error is false positive (something else does not work, but points to this code).
Using Xam.iOS through the build server (code comes from VS2015). Xcode uses 8.3 emulators (it may be necessary to upgrade to update 8.4)
source share