iOS Question How to debug app crashing when app uses WiFi?

Turbo3

Active Member
Licensed User
My app uses WiFi to communicate with an OBDII adapter. For one brand adapter (PLX) sending the string "ATZ" causes my app to crash. This is very strange as no other adapter has ever acted this way.

For a normal crash I would just use the Debugger and look at the crash data in the Logs window. But that is not an option since the debugger needs the WiFi to connect to the test iOS device.

How can I collect crash data to help identify the problem?

Is there some way to use the USB connection to collect crash data?

Can crash data be logged to a file on the iOS device?
 

Erel

Administrator
Staff member
Licensed User
You can use wifi to make several connection at once. Does the debugger disconnect when you connect to the adapter?
 

Turbo3

Active Member
Licensed User
Not sure I understand. To use the OBDII WiFi adapter I need to go into the iOS Settings/Wi-Fi menu and select the OBDII WiFi adapter which means I am disconnected from my home network. The home network is what the debugger uses. The OBDII WiFi is also setup as Static so it is really a point to point WiFi with only two points.

I don't know anyway to have two different networks connected at the same time.
 

Erel

Administrator
Staff member
Licensed User
I see. Are you using a local Mac builder? You can see the logs on the Mac.
 

Turbo3

Active Member
Licensed User
No, remote.

So the local Mac would attach to the iOS device through the USB cable?

This is a Mac but I am running it in Windows mode (BootCamp) so can't use it for local build.
 
Last edited:

Erel

Administrator
Staff member
Licensed User
With a Mac you can monitor the logs in Release mode (if Xcode is installed). So you can build and install the app and then boot to the mac and check the logs.

The logs you need to monitor are available under Window - Devices and then click on the small triangle button (not device logs).
 
Top