Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install app in simulator Xcode 9 beta

I downloaded Xcode 9 beta recently, and when I tried to run my app in the simulator it is not getting installed. I am getting this error in my Xcode every time I try to run the app.

This app was unable to be installed.

enter image description here

The application used to work in Xcode 8.3.3

like image 227
Akshay Sunderwani Avatar asked Jul 01 '17 03:07

Akshay Sunderwani


People also ask

Can you install app on iOS simulator?

Install Apps on SimulatorsTo install an app on a connected simulator, follow these steps. Go to Apps > Install Application. Find and open the app you want to install from your Mac. The app appears in the list of installed apps on the right side of the iOS Gateway window.

How do I enable simulator in Xcode?

Open Xcode and click Menu > Xcode > Preferences > Select Components, and then choose the simulator version you want to download.


2 Answers

Unfortunately, the error message doesn’t explain why the install failed. You can take a look at ~/Library/Logs/CoreSimulator/CoreSimulator.log to see if the rest of the error message is there with more info. If not, you should check out the sim device’s system log:

sudo xcode-select -s /Applications/Xcode-beta.app # if you haven’t already
xcrun simctl spawn booted log show

You can use --predicate to filter that down a bit.

like image 138
Jeremy Huddleston Sequoia Avatar answered Sep 27 '22 22:09

Jeremy Huddleston Sequoia


Late answer but might be that can be useful for others. I just get a project with existing watch-kit and custom keyboard code. After change the identifier i got the same error and i spend 1 day to find out why that happens.

I checked everything of bundle id and all version. then i do global search in xcode with old identifier and i found that following.

enter image description here

Here in both .plist file have old WKCompanionAppBundleIdentifier so after i update it with new manually application run again.

IMPORTANT NOTE:

IF YOU ARE JUST CHANGE IDENTIFIER FROM GENERAL TAB THAT DOES NOT MEAN IT UPDATE AT ALL. KINDLY CHECK WITH ALL POSSIBLE PLACES BY SEARCH AND REPLACE IT WITH NEW IDENTIFIER.

XCODE VERSIO: Version 9.0 (9A235)
like image 36
Nitin Gohel Avatar answered Sep 27 '22 20:09

Nitin Gohel