Xcode: Could not locate installed application. Install claimed to have succeeded, but application could not be found on device

后端 未结 19 2078
执念已碎
执念已碎 2021-02-05 10:10

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, Xcod

相关标签:
19条回答
  • 2021-02-05 11:00

    In my case i have PROD certificate and trying to install the app in the device, later i changed to development certificate it got installed.

    0 讨论(0)
  • 2021-02-05 11:00

    As always, when the question is posted on SO, one finds a solution ;)

    I edited the Scheme, setting the build configuration from debug to release and that installed the app again. Changed it back to debug and now it's running again as expected.

    0 讨论(0)
  • 2021-02-05 11:01

    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.

    0 讨论(0)
  • 2021-02-05 11:01

    I had a similar issue after one of Carthage/XCode updates. It means iOS was not able to install app on the phone. XCode apparently is not able to provide this information directly. The first thing to do is open your phone console - go to Window/Devices and Simulators then select your device and click Open Console. In the console you can search for your app name what should provide you more detailed fail info. In my case it was sth like this:

    Applications did fail to install: (
        "<LSApplicationProxy: 0x118913b60> com.mydomain.myapp (null) <com.mydomain.myapp <INVALID >:0>"
    ) (appInfos: (null))
    

    There was another console log few rows before flagging the problem:

    0x16f4df000 -[MIExecutableBundle codeSigningInfoByValidatingResources:performingOnlineAuthorization:ignoringCachedSigningInfo:checkingTrustCacheIfApplicable:error:]: 789: Code signing identifier (org.alamofire.Alamofire.iphonesimulator) does not match bundle identifier (org.alamofire.Alamofire.iphoneos) for /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.E83T1l/extracted/myapp.app/Frameworks/Alamofire.framework
    

    There was an issue with one of the frameworks Alamofire I'm using in the project. I changed bundle identifier of the project and build framework again what solved the problem.

    Hope it helps!

    0 讨论(0)
  • 2021-02-05 11:02

    On your iPhone go to Settings/General/Profiles & Devices/Apple Deelopment: "YOUR APPLE ID" and delete all apps from there. It fixed the problem for me.

    This was the solution that worked for me.

    0 讨论(0)
  • 2021-02-05 11:03

    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

    0 讨论(0)
提交回复
热议问题