Xcode: Could not locate installed application. Ins

2020-05-26 03:20发布

I manually deleted my app from the iPhone and now I get this error message when trying to run it again from Xcode.

I cleaned the build folder, restarted the device, Xcode and the Mac, nothing helps.

I also tried everything that's mentioned here: Install claimed to have succeeded, but application could not be found on device

How do I force a re-installation?

标签: ios xcode
19条回答
兄弟一词,经得起流年.
2楼-- · 2020-05-26 03:42

After trying everything here, for me the solution was to change my distribution profile to use the new Apple distribution certificate that covers all apple platforms. This should be compliant with xcode 11 (if you're not experiencing one of the other million problems since the "upgrade").

The cert change is mentioned here: https://developer.apple.com/documentation/xcode_release_notes/xcode_11_release_notes

Cert creation instructions here: https://help.apple.com/developer-account/#/devbfa00fef7

Once done, make sure the correct profile is selected in Signing & Capabilities, and 'Apple Distribution' is selected under Build Setting -> Signing for the appropriate build configurations

查看更多
再贱就再见
3楼-- · 2020-05-26 03:46

I was facing similar issue in Xcode 11.1. I have fix this issue. Not sure about this solution that it will to work for all or not.

My device iOS version was older then the iOS Xcode target build version.

Steps:

  1. I have put Xcode target Device to iPhone device OS version.
  2. Delete derived data
  3. Start xcode and open project
  4. Clean the project and gererate build and install in device

Note: Please check your developer account, certificate validation and already registered device warning.

Hope this solution will help some peoples. Happy coding.

查看更多
我只想做你的唯一
4楼-- · 2020-05-26 03:48

I ran into the same issue while testing a app on iOS 13 via XCode 11.0. Building via the legacy system solved it (File > Workspace Settings... > Build System > Legacy Build System).

Hope it helps

查看更多
一夜七次
5楼-- · 2020-05-26 03:48

I did a Product -> Clean then Build, and it was able to run.

查看更多
一夜七次
6楼-- · 2020-05-26 03:48

If you have other under-development apps installed, try uninstalling those you are not using, and run Xcode to install your app again. It works for me.

查看更多
做自己的国王
7楼-- · 2020-05-26 03:50

In my case it was a problem with new Development certificate. It's created automatically after Xcode updated to 11 and may not be included in current provisioning profile.

查看更多
登录 后发表回答