Troubleshooting for iOS real machine debugging that cannot connect to the network
Development Environment:
MacOS 10.12.1Xcode 8.1Qt 5.8 gSOAP 2.8
IPhone 6 S + iOS 10.1.1
Problem:I used Qt Quick to write a cross-platform application. It runs normally in Win10, Android, and macOS. However, when I connect to the iOS real machine for debugging, gSOAP Always Returns Error Code 28 when calling Webservice, I have been searching for errors related to SOAP_DIME_END according to the gSOAP error code table below Baidu.
Error code returned)
SOAP_EOF |
-1 |
Unexpected end of file, no input, or timeout while processing ing data |
SOAP_ERR |
-1 |
|
SOAP_ OK |
0 |
No error |
SOAP_CLI_FAULT |
1 |
The service returned a client fault (SOAP 1.2 Sender fault) |
SOAP_SVR_FAULT |
2 |
The service returned a server fault (SOAP 1.2 Receiver fault) |
SOAP_TAG_MISMATCH |
3 |
An XML element didn't correspond to anything expected |
SOAP_TYPE |
4 |
An XML Schema type mismatch |
SOAP_SYNTAX_ERROR |
5 |
An XML syntax error occurred on the input |
SOAP_NO_TAG |
6 |
Begin of an element expected, but not found |
SOAP_IOB |
7 |
Array index out of bounds |
SOAP_MUSTUNDERSTAND |
8 |
An element needs to be ignored that need to be understood |
SOAP_NAMESPACE |
9 |
Namespace name mismatch (validation error) |
SOAP_USER_ERROR |
10 |
|
SOAP_FATAL_ERROR |
11 |
Internal error |
SOAP_FAULT |
12 |
An exception raised by the service |
SOAP_NO_METHOD |
13 |
The dispatcher did not find a matching operation for the request |
SOAP_GET_METHOD |
14 |
Http get operation not handled |
SOAP_EOM |
15 |
Out of memory |
SOAP_NULL |
16 |
An element was null, while it is not supposed to be null |
SOAP_DUPLICATE_ID |
17 |
Multiple occurrences of the same element ID on the input |
SOAP_MISSING_ID |
18 |
Element ID missing for an HREF on the input |
SOAP_HREF |
19 |
Reference to object is incompatible with the object refered |
SOAP_UDP_ERROR |
20 |
Message too large to store in UDP packet |
SOAP_TCP_ERROR |
21 |
A connection error occured |
SOAP_HTTP_ERROR |
22 |
An HTTP error occured |
SOAP_SSL_ERROR |
23 |
An SSL error occured |
SOAP_ZLIB_ERROR |
24 |
A Zlib error occured |
SOAP_DIME_ERROR |
25 |
DIME parsing error |
SOAP_DIME_HREF |
26 |
DIME attachment has no href from SOAP body |
SOAP_DIME_MISMATCH |
27 |
DIME version/transmission error |
SOAP_DIME_END |
28 |
End of DIME error |
SOAP_MIME_ERROR |
29 |
MIME parsing error |
SOAP_MIME_HREF |
30 |
|
SOAP_MIME_END |
31 |
|
SOAP_VERSIONMISMATCH |
32 |
SOAP version mismatch or no SOAP message |
SOAP_PLUGIN_ERROR |
33 |
Failed to register plugin |
SOAP_DATAENCODINGUNKNOWN |
34 |
SOAP 1.2 DataEncodingUnknown fault |
SOAP_REQUIRED |
35 |
Attributed required validation error |
SOAP_PROHIBITED |
36 |
Attributed prohibited validation error |
SOAP_OCCURS |
37 |
Element minOccurs/maxOccurs validation error |
SOAP_LENGTH |
38 |
Element length validation error |
SOAP_FD_EXCEEDED |
39 |
|
It cannot be solved, so I downloaded the iOS 10.0 Simulator and ran it on the iOS virtual machine. There is no problem, indicating that it may be a problem with the system permissions of the real machine. Because my mobile phone card is placed on my Mate8, there is no card on the iPhone development machine, and it is connected to WIFI, I suddenly thought, should I try to plug the card into the iPhone development machine. After the card is inserted, the mobile phone immediately prompts whether the network is allowed. After you agree, you can connect to the Internet. Then I can see my application in [use wireless LAN and cellular mobile app. As a matter of fact, I mentioned a lot of nonsense, but I just recorded the process of filling in holes that I tried and put my heart at ease for a long time yesterday. All in all, if you are debugging iOS apps on a real machine, you 'd better plug in your SIM card. I saw a related post this morning, as follows:
From Weizhi note (Wiz)