SwiftyCam
SwiftyCam copied to clipboard
crash when run on simulator "collection was mutated while being enumerated"
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
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 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?