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