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

Discussion in 'iOS Questions' started by Turbo3, Feb 21, 2015.

  1. Turbo3

    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?
     
  2. Erel

    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?
     
  3. Turbo3

    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.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    I see. Are you using a local Mac builder? You can see the logs on the Mac.
     
  5. Turbo3

    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: Feb 22, 2015
  6. Erel

    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).
     
    f0raster0 likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice