Hello.
I faced same problem just now. Our program can't install with OTA in iOS10.0.0-10.0.2, but success in iOS6-9.
I report the details of our problem for a solution.
This problem does not occur at all iOS10 devices. Many iOS10 devices failed OTA installation, but few iOS10 devices succeeded OTA installation from same web server.
At failed device, OTA installation is retried repeatedly in backgroud. We can't stop retrying installation, and so basic authentication dialog for OTA installation appears endlessly.
I investigated failed device log, and found the process appstored(App Store daemon?) retry to get IPA file from web server and crushed with SIGSEGV everytime in retrying.
Following is device log of SIGSEGV;
--------------------------------------------------------------------------------------------------------
Sep 29 16:26:37 user-no-iPhone ReportCrash(CrashReporterSupport)[211] <Info>: scanned 79 logs with 9 types and 3 unknowns (sentinel is <private>)
Sep 29 16:26:37 user-no-iPhone ReportCrash(CrashReporterSupport)[211] <Notice>: Report of type '109(<private>)' not saved because the limit of 25 logs has been reached
Sep 29 16:26:37 user-no-iPhone ReportCrash(CrashReporterSupport)[211] <Notice>: Notice: This report is abbreviated for syslog inclusion because it could not be saved to disk.
Symbolication may be possible by manually cleaning up and including the Binary Image section of a full report from this same device -- good luck!
Sep 29 16:26:37 user-no-iPhone ReportCrash(CrashReporterSupport)[211] <Notice>: Process: appstored [178]
Path: /System/Library/PrivateFrameworks/AppStoreDaemon.framework/appstored.bundle/appstored
OS Version: iPhone OS 10.0.2 (14A456)
Sep 29 16:26:37 user-no-iPhone ReportCrash(CrashReporterSupport)[211] <Notice>: Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
Triggered by Thread: 7
Sep 29 16:26:37 user-no-iPhone ReportCrash(CrashReporterSupport)[211] <Notice>: Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x1afc283c 0x1afc1000 + 6204
1 libsystem_kernel.dylib 0x1afc262e 0x1afc1000 + 5678
2 CoreFoundation 0x1b7e9868 0x1b72c000 + 776296
3 CoreFoundation 0x1b7e7b66 0x1b72c000 + 768870
4 CoreFoundation 0x1b737072 0x1b72c000 + 45170
5 CoreFoundation 0x1b736e80 0x1b72c000 + 44672
6 appstored 0x00099f88 0x95000 + 20360
7 libdyld.dylib 0x1af0250a 0x1aeff000 + 13578
Sep 29 16:26:37 user-no-iPhone ReportCrash(CrashReporterSupport)[211] <Notice>: Thread 1:
0 libsystem_kernel.dylib 0x1afd8744 0x1afc1000 + 96068
1 libsystem_pthread.dylib 0x1b0899b0 0x1b088000 + 6576
2 libsystem_pthread.dylib 0x1b08949c 0x1b088000 + 5276
Sep 29 16:26:37 user-no-iPhone ReportCrash(CrashReporterSupport)[211] <Notice>: Thread 2 name: Dispatch queue: com.apple.NSURLSession-work
Thread 2:
0 libsystem_kernel.dylib 0x1afc283c 0x1afc1000 + 6204
1 libsystem_kernel.dylib 0x1afc262e 0x1afc1000 + 5678
2 libdispatch.dylib 0x1aee93e2 0x1aed4000 + 87010
3 libdispatch.dylib 0x1aee97ba 0x1aed4000 + 87994
4 libxpc.dylib 0x1b0be678 0x1b0b9000 + 22136
5 Security 0x1bbc99ec 0x1bbaf000 + 109036
6 Security 0x1bbc9c24 0x1bbaf000 + 109604
7 Security 0x1bbdf62c 0x1bbaf000 + 198188
8 Security 0x1bbe0b22 0x1bbaf000 + 203554
9 Security 0x1bbde428 0x1bbaf000 + 193576
10 Security 0x1bbdefe0 0x1bbaf000 + 196576
11 Security 0x1bbdf588 0x1bbaf000 + 198024
12 Security 0x1bbdde8c 0x1bbaf000 + 192140
13 Security 0x1bbdf500 0x1bbaf000 + 197888
14 CFNetwork 0
Sep 29 16:26:37 user-no-iPhone ReportCrash(CrashReporterSupport)[211] <Notice>: Thread 3:
0 libsystem_pthread.dylib 0x1b089494 0x1b088000 + 5268
Sep 29 16:26:37 user-no-iPhone ReportCrash(CrashReporterSupport)[211] <Notice>: Thread 4 name: com.apple.NSURLConnectionLoader
Thread 4:
0 libsystem_kernel.dylib 0x1afc283c 0x1afc1000 + 6204
1 libsystem_kernel.dylib 0x1afc262e 0x1afc1000 + 5678
2 CoreFoundation 0x1b7e9868 0x1b72c000 + 776296
3 CoreFoundation 0x1b7e7b66 0x1b72c000 + 768870
4 CoreFoundation 0x1b737072 0x1b72c000 + 45170
5 CoreFoundation 0x1b736e80 0x1b72c000 + 44672
6 CFNetwork 0x1bdfdbb0 0x1bd54000 + 695216
7 Foundation 0x1c14f1a0 0x1c05b000 + 999840
8 libsystem_pthread.dylib 0x1b08ba26 0x1b088000 + 14886
9 libsystem_pthread.dylib 0x1b08b94c 0x1b088000 + 14668
10 libsystem_pthread.dylib 0x1b0894a8 0x1b088000 + 5288
Sep 29 16:26:37 user-no-iPhone ReportCrash(CrashReporterSupport)[211] <Notice>: Thread 5 name: Dispatch queue: com.apple.NSXPCConnection.m-user.com.apple.nsurlsessiond
Thread 5:
0 libsystem_c.dylib 0x1af21534 0x1af20000 + 5428
1 libxpc.dylib 0x1b0bd516 0x1b0b9000 + 17686
2 libxpc.dylib 0x1b0bd380 0x1b0b9000 + 17280
3 libxpc.dylib 0x1b0bd20c 0x1b0b9000 + 16908
4 libxpc.dylib 0x1b0be4f6 0x1b0b9000 + 21750
5 Foundation 0x1c0617ee 0x1c05b000 + 26606
6 libxpc.dylib 0x1b0bd772 0x1b0b9000 + 18290
7 libxpc.dylib 0x1b0bbc4a 0x1b0b9000 + 11338
8 libdispatch.dylib 0x1aed8742 0x1aed4000 + 18242
9 libdispatch.dylib 0x1aee1d2c 0x1aed4000 + 56620
10 libdispatch.dylib 0x1aed7cd4 0x1aed4000 + 15572
11 libdispatch.dylib 0x1aee1d2c 0x1aed4000 + 56620
12 libdispatch.dylib 0x1aed8378 0x1aed4000 + 17272
13 libdispatch.dylib 0x1aee2b9c 0x1aed4000 + 60316
14 libdispatch
Sep 29 16:26:37 user-no-iPhone ReportCrash(CrashReporterSupport)[211] <Notice>: Thread 6:
0 libsystem_pthread.dylib 0x1b089494 0x1b088000 + 5268
Sep 29 16:26:37 user-no-iPhone ReportCrash(CrashReporterSupport)[211] <Notice>: Thread 7 name: Dispatch queue: com.apple.root.default-qos.overcommit
Thread 7 Crashed:
0 libxpc.dylib 0x1b0babfa 0x1b0b9000 + 7162
1 libxpc.dylib 0x1b0bd1dc 0x1b0b9000 + 16860
2 libxpc.dylib 0x1b0bd196 0x1b0b9000 + 16790
3 StoreServices 0x1f79065a 0x1f69e000 + 992858
4 StoreServices 0x1f79034e 0x1f69e000 + 992078
5 libxpc.dylib 0x1b0bd772 0x1b0b9000 + 18290
6 libxpc.dylib 0x1b0bbc4a 0x1b0b9000 + 11338
7 libdispatch.dylib 0x1aed8742 0x1aed4000 + 18242
8 libdispatch.dylib 0x1aee1d2c 0x1aed4000 + 56620
9 libdispatch.dylib 0x1aed7cd4 0x1aed4000 + 15572
10 libdispatch.dylib 0x1aee2b9c 0x1aed4000 + 60316
11 libdispatch.dylib 0x1aee888e 0x1aed4000 + 84110
12 libsystem_pthread.dylib 0x1b089800 0x1b088000 + 6144
13 libsystem_pthread.dylib 0x1b08949c 0x1b088000 + 5276
Sep 29 16:26:37 user-no-iPhone ReportCrash(CrashReporterSupport)[211] <Notice>: Thread 7 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x1f83de08 r2: 0x3810f314 r3: 0x193405cc
r4: 0x00000000 r5: 0x193405cc r6: 0x1f83de08 r7: 0x193405c0
r8: 0x3810f314 r9: 0x16595128 r10: 0x166a94b0 r11: 0x165141b0
ip: 0xfb89986d sp: 0x193405b0 lr: 0x1b0bd1dd pc: 0x1b0babfa
cpsr: 0x60000030
--------------------------------------------------------------------------------------------------------
And I found the process itunesstored(iTunes Store daemon?) works at OTA installation in iOS9 in place of appstored.
I suspect that the cause of this problem may be it in appstored, but does not know why some iOS10 devices success OTA installation in the same condition.
I hope that this information helps a solution to the problem.
Thanks.