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

后端 未结 19 2049
执念已碎
执念已碎 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: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: (
        " com.mydomain.myapp (null) :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!

提交回复
热议问题