SwiftyCam icon indicating copy to clipboard operation
SwiftyCam copied to clipboard

crash when run on simulator "collection was mutated while being enumerated"

Open Guala99 opened this issue 4 years ago • 2 comments

When running Camera on simulator it always crashes and I receive this error

Terminating app due to uncaught exception 'NSGenericException', reason: '*** Collection <NSConcreteHashTable: 0x600002c15c20> was mutated while being enumerated.'

When I run it on a physical device It works fine tho

Guala99 avatar Oct 22 '20 15:10 Guala99

It's not possible to access camera of your development machine to be used as simulator camera. Camera functionality is not available in any iOS version and any Simulator. You will have to use device for testing camera purpose.

Eirias avatar Oct 23 '20 09:10 Eirias

@Eirias thank you for your answer, so let's say a real device doesn't have front or rear camera because, for example, they are broken. Will this error occur? or it will not because It appears only on simulator?

Guala99 avatar Oct 23 '20 12:10 Guala99