Closed lanarchyste closed 9 months ago
iOS does not permit dynamic code generation at runtime, which Autofac uses in a variety of places, including when activating types defined via RegisterType
and in AutoActivate
.
If you restrict yourself to delegate registrations, e.g. Register(ctxt => new ...)
, and don't use AutoActivate, you may have some luck, but in general Autofac is not fully supported in no-emit environments.
Hi,
I have a Xamarin project to create an Android and iOS application. In this project I use Autofac 7.1.0.
But Apple refuses to deploy iOS app due to startup crash.
According to the logs, it may be linked to Autofac.
I don't encounter any crashes with a iOS simulator or iOS physical hardware. There is only apple when reviewing the application which encounters the crash. I have no problems with the Android application which has the same version of Autofac.
The material used for the iOS review is:
My code to initialize Autofac has the following parts:
Do you think that Autofac really has a bug with the Apple review process?
Thanks !
Best Regards, Julien