Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App freezes on launch screen when installed from xcode 10.1 to iOS 12+

Tags:

xcode

ios

xcode10

When I install the applications from Xcode 10.1 to iPad(iOS 12.1), apps freeze on the launch screen. Applications work fine with the iPads which have iOS version lower than 12. I am facing this issue since i updated Xcode to 10.

Does anyone know how to fix this issue?

like image 610
Sheraz Avatar asked Jan 08 '19 12:01

Sheraz


People also ask

How do I run an iOS app in a real device from Xcode?

You may connect a real device to your Mac using a cable, or for iOS or tvOS apps, connect it over Wi-Fi after you pair it with Xcode. For macOS apps, choose a scheme, then click the Run button in the toolbar. You can also run SwiftUI apps in the simulator or on a device using the controls in the preview.

What is launch screen Xcode?

Launch screens appear when your app starts up and give the user the impression that your app is fast and responsive. After your app is loaded it will be replaced with your app's first screen after which the user can start using your app.

Can I run iOS apps in Xcode?

Xcode supports debugging, testing, and profiling your iOS app natively on a Mac with Apple silicon. When you open your iOS project in Xcode 12 or later, you have the option to build your app and run it directly in macOS. This option doesn't run your app in a Simulator; it runs it as an iOS App on Mac.


1 Answers

I am answering this question to help others who are experiencing this issue.

If you use a distribution certificate to install the app on the device with Ad-hoc provisioning profile or in-house provisioning profile app freezes on the launch screen. Even if app launches you will not get the logs in Xcode.

Following are the steps to handle this issue:

  1. Create a new scheme
  2. Edit this scheme and on left side select "Run"
  3. For executable select "Ask on Launch" enter image description here

Use this scheme to install the app on the device. It will ask to select the executable file to launch. Select the executable file name of your app and it will launch the app on the device. You also see the logs in the Xcode.

like image 185
Sheraz Avatar answered Nov 04 '22 23:11

Sheraz