Close popover

Table of Contents

Troubleshooting an iOS mobile app

Version:

Application logs can help you troubleshoot mobile apps. Options in Safari for Web Inspector and JavaScript can help you debug JavaScript code for iOS mobile apps. Once you install and run the mobile app, you can start debugging the JavaScript code for the app directly from the JavaScript console in the Web Inspector.

When troubleshooting a mobile app created for the iOS platform:

  • Ensure you set the application log level to debug.
  • You can view application logs and local storage from the system info pages available in the side menu for the app.
  • You can also view application logs directly from Xcode by opening the Devices window and selecting the connected device where the mobile app was installed.

In order to debug JavaScript code for a mobile app built for the iOS platform, you must do the following:

  • Build your iOS mobile app by using an Apple developer certificate. Remember that:
    • JavaScript debugging is not available in a mobile app that is built with the enterprise Apple distribution certificate.
    • With the Apple developer certificate, you can install your mobile app only on devices that are registered with the Apple Developer Program.
    • You can obtain your Apple developer private key by exporting it directly from your Xcode account, or alternatively, from the Keychain Access application on your Mac computer.
  • Enable the Web Inspector and JavaScript in the device's Safari options.
  • In the Safari options on your Mac computer, enable showing the develop menu in a menu option.
For more information about certificates for the iOS platform, see Generating mobile certificates for the iOS platform on the Pega Community portal, and also Maintaining Your Signing Identities and Certificates on the Apple Developer Portal.

  • Developing mobile apps

    Use Pega Platform to efficiently create and deploy a mobile app that supplements your desktop and web applications, and suits different business requirements.

  • Generating installation packages

    Convert your application into an app that users can install on their mobile devices. You can generate both Android and iOS apps, which helps you meet the needs of a wide array of mobile users.

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.