App crashed on an iPad running iOS 12.1 connected to an IPv6 network.

Hi,



I have been working on this issue for a week now and it's driving me nuts. Apple is rejecting my iPad version of my app because when they click on the camera icon the main view they say it crashes for them.



I have added a bunch of permission asks in the info.plist file. Here is a pic showing that: https://gyazo.com/58f2efa074579a01156473179eaf27ff So I'm not sure if this can be it. I have also tested my app on every iPad simulator there is, and I can't replicate a crash upon clicking on my camera button on the main page. Here is what my camera button looks like, upon loading into the initial view: https://gyazo.com/f9b7c39acf180c7b564ecdcc0cd6ed2c



And here is my deployment info: https://gyazo.com/bba7ee5c0320c6a12a555046986deff9



Now, I figure it could do something with the way I'm launching the picker view after the user taps the camera button. Here is the code I have for taking a picture:



@IBAction func takePicture() {

// Show options for the source picker only if the camera is available.

guard UIImagePickerController.isSourceTypeAvailable(.camera) else {

guard UIImagePickerController.isSourceTypeAvailable(.photoLibrary)

else {

presentPhotoPicker(sourceType: .savedPhotosAlbum)

return

}

presentPhotoPicker(sourceType: .photoLibrary)

return

}

let photoSourcePicker = UIAlertController()

let takePhoto = UIAlertAction(title: "Take Photo", style: .default) {

[unowned self] _ in

self.presentPhotoPicker(sourceType: .camera)

}

let choosePhoto = UIAlertAction(title: "Upload Photo", style: .default) {

[unowned self] _ in

self.presentPhotoPicker(sourceType: .photoLibrary)

}

photoSourcePicker.addAction(takePhoto)

photoSourcePicker.addAction(choosePhoto)

photoSourcePicker.addAction(UIAlertAction(title: "Cancel", style:

.cancel, handler: nil))

present(photoSourcePicker, animated: true)

}



Here is how I present the photo picker:



func presentPhotoPicker(sourceType:

UIImagePickerController.SourceType) {

let picker = UIImagePickerController()

picker.delegate = self

picker.sourceType = sourceType

picker.modalPresentationStyle = .popover

present(picker, animated: true)

picker.popoverPresentationController?.barButtonItem =

self.cameraButton

}



I believe this is all the relevant code that there is. When I looked at the crash log report I didn't really find any useful info. I saw something about a blown fence, but I have no clue how that is occurring or what it really means.



Please help.

Replies

When I looked at the crash log report I didn't really find any useful info.

Post that crash report and I’ll see what I can glean from it.

ps Please:

  • Post the crash report as text, not a screen shot.

  • Format that text as a code block (using the

    <>
    icon).
  • Include the full crash report, not just an excerpt.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"