Xcode 8 application runs on simulator but does not display

I am using xcode 8 and trying to run the application on simulators. These are all iOS 10 simulators.

No matter which simulator I use, when I launch the application, the application icon appears in the simulator, but then this. The application does not appear in the simulator. I see only application icons on the iOS home screen.

I set some breakpoints in my first view controller in the methods viewDidLoad, viewWillAppear and viewDidAppear. They all worked. As for my application, it is displayed on the device. I also get all the usual log output and network calls that happen just fine. It even shows pop-ups for accessing calendar and notifications. But my application is not brought to the fore.

If I then click on the application icon in the simulator, my application works fine. But it should be automatic when I click run from xCode.

When I run my application on an iOS 10 device, I get the same behavior as all three of these viewing methods. However, I do not get any of my usual log output. In fact, I am not getting any log output. However, the application was already installed when the device was on iOS 9.x. Not sure if this is a factor. But besides the problems of the simulator, this is a big problem.

I tried to clean the assembly by uninstalling the application, I even tracked the derived data folder and deleted it from the simulator. No one worked. I also updated all my cocoa modules that I installed.

Has anyone else experienced this?

+4
source share
1 answer

, Apple - Xcode 8, :

  • reset "iOS Simulator" → "Reset ..."
  • "xcuserdata" .xcodeproj.
  • ( )
  • Mac.

, :

  • - Xcode-beta.app , . - .
  • Xcode-beta.app .
  • Xcode-beta.app " " .

, , Xcode.app Xcode-beta.app.

+3

Source: https://habr.com/ru/post/1655349/


All Articles