what is maximum count of images can be add to Set<ARReferenceImage>() here i am getting crash with error (Thread 1: EXC_BAD_ACCESS (code=1, address=0x200)) after adding 405 images

hello Apple here i am showing my code , total images is arond 1000 in Array


for i in 0..<self.localItems.count{

let dict = self.localItems[i]

let name = dict["markername"] as? String

DispatchQueue.main.async {

let image = dict["markerimg"] as! UIImage

guard let cgIMG = image.cgImage else{

print("error got here")

return

}

print(cgIMG)

let arImg = ARReferenceImage(cgIMG, orientation: .up, physicalWidth: 0.2)

arImg.name = name

arImg.validate { (error) in

if(error == nil){

}

else{

print(error?.localizedDescription ?? "")

}

}

printℹ

}

}


please give me any solution for this ,Thanks in advance

Replies

Hello,


According to this WWDC video (https://developer.apple.com/videos/play/wwdc2019/604/?time=2374), the maximum is 100 images. Please note that this is not necessarilly the cause of your crash. If your crash continues to persist, I recommend that you Request Technical Support at: https://developer.apple.com/support/technical/