问题
We have error with MDMpush on some iPhone devices:
Jul 30 17:52:46 Mirnas-iPhone apsd[49] : : Stream error occurred for : Error Domain=NSPOSIXErrorDomain Code=54 "The operation couldn’-t -b-e -c-o-m-p-l-e-t-e-d-. -C-o-n-n-e-c-t-i-o-n -r-e-s-e-t -b-y -p-e-e-r-" -U-s-e-r-I-n-f-o-=-0-x-1-4-3-5-4-0 -{-}
All devices are the same, same iOS version, but on 50% of devices we have this error. On other devices push is working perfectly. Devices with this problem checks in without problem during MDM payload installation, but when we try to push something, error happens.
回答1:
We had similar symptom long time ago, it was caused by someone changed the Apple MDM certificate after half of the devices enrolled. some device was enrolled with new cert, and rest are enrolled by old cert. the apple MDM server does not like this.
You need to enroll all the device with same cert.
回答2:
I also faced this problem if you're using same certification for different device. You have to do a clean, then build and run the application onto the device. Remove the previous installed application which is using same certification (same application).
来源:https://stackoverflow.com/questions/11728984/apple-mdm-push-error-but-only-to-some-ios-devices