سؤال

I integrated the AVAnimator in my project to display video with transparent background. On the simulator everything works perfectly fine. I can see the video, the background really is transparent and I can hear the audio.

But when I try to build and run on the device I get following error:

Assertion failure in -[SegmentedMappedData mapSegment], /transparentVideoTest/AVAnimator/SegmentedMappedData.m:300
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'mmap result EINVAL'

I'm not so familiar with mmap.

Can anyone tell me what the reason could be, when the mapping works on simulator but not on device?

هل كانت مفيدة؟

المحلول

I had the same problem. I solved it by going into Build Settings and changing the allowed architecture to be $(ARCHS_STANDARD_32_BIT) (Try to match your project settings to those of an AVAnimator example project )

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top