Akshay Sunderwani
Akshay Sunderwani

Reputation: 12476

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

Upvotes: 18

Views: 12640

Answers (12)

Ahmadreza
Ahmadreza

Reputation: 7222

I had the same issue on XCode 9.3.1 when I wanted to add google map framework to my project manually.

To fix the problem I remove the google frameworks from Embedded binaries...

enter image description here

Upvotes: 0

Gopinath Manickam
Gopinath Manickam

Reputation: 247

Please check the bundle identifier to solve the issue.

Upvotes: 0

Jose Reyes
Jose Reyes

Reputation: 1

This issue could be triggered by multiple things however if you take a look at the logs at ~/Library/Logs/CoreSimulator/CoreSimulator.log and it states an error that reads :

NSUnderlyingError=0x7fb51c271ee0 Could not hardlink copy /originPath to /destinationPath

it's possible that your Build number in your Project Target's settings is set to empty.

Go to Project Target > Identity > Build and set a Build number. You'll have to uninstall the the app in the simulator and re-install it before installing updated versions.

Upvotes: 0

Nitin Gohel
Nitin Gohel

Reputation: 49730

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)

Upvotes: 11

Frank Tinsley
Frank Tinsley

Reputation: 31

I ran into this same issue and a quick click on Product > Clean did the trick for me!

Upvotes: 2

sebastien
sebastien

Reputation: 2519

I had a similar issue when installing my App on the IOS simulator (with Xcode 9).

I found the issue (at least for my case), it was due to an unauthorized key (Privacy - Location When In Use Usage Description) in the info.plist of the Watch App.

I have moved this key to the info.plist of the WatchKit Extension and now the App installs again.

I hope it will help others people having the same issue.

Upvotes: 1

Justin Domnitz
Justin Domnitz

Reputation: 3307

I ran into this issue in Xcode 9.0 beta 5 after renaming a project that contained an iOS and watchOS app. To fix, I recreated the iOS target.

Upvotes: 0

AlexVogel
AlexVogel

Reputation: 10621

If you are using CocoaPods in your project please have a look at this answer: https://stackoverflow.com/a/44533287/221194

Changing the status of the pods subdirectory helped me with my project.

Upvotes: 1

Libor Zapletal
Libor Zapletal

Reputation: 14102

I got same error and I was using Cocoapods in my project and for me help just update pods.

Upvotes: 0

Bonan
Bonan

Reputation: 719

I had the same issue. Log shows it's an error caused by Google Signin:

FunctionName=-[MobileInstallationHelperService stageItemAtURL:completion:], SourceFileLine=392, NSUnderlyingError=0x7f891e9a1270 {Error Domain=MIInstallerErrorDomain Code=4 "Failed to remove ACL" UserInfo={NSLocalizedDescription=Failed to remove ACL, FunctionName=-[MIFileManager _removeACLAtPath:isDir:error:]

However it works on iOS 9 & 10 simulator.

Upvotes: 0

Jeremy Huddleston Sequoia
Jeremy Huddleston Sequoia

Reputation: 23651

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.

Upvotes: 23

Bhavin Ranpara
Bhavin Ranpara

Reputation: 278

change deployment target as per requirement. select project > GENERAL > DEPLOYMENT TARGET also check ios version of your device

Upvotes: 0

Related Questions