Install claimed to have succeeded, but application

2019-02-14 02:53发布

问题:

xcode gave me this message:

"Could not locate installed application Install claimed to have succeeded, but application could not be found on device. bundleId = (null)"

I just started using pods.

How do i fix this?

回答1:

I solved this problem doing tipical project clean steps:

  • Product -> Clean.
  • Window -> Projects -> Select your project and delete derived data.
  • Close XCode.
  • Reopen project.


回答2:

I encountered this issue and noticed this in the log:

-[MIBundle pluginKitBundlesSkippingPlatformValidation:withError:]: Ignoring plugin at (path to my app extension) because it doesn't work on this OS version

Updating the Deployment Target version in Build Settings for my extension fixed this.



回答3:

Very strangely, renaming the root folder of my project to something else did the trick for me. Probably some caching of xcode somewhere with the existing name of the folder was the reason.



回答4:

I had the same issue when I was working on a share extension. None of the suggested solutions here worked for me.

I cared for debugging and logging. I wasn't able to debug and/or log. I thought at first that the extension wasn't working, but ran a test and verified it was actually executing but for some reason I wasn't able to debug or log.

The best I was able to come up with is to manually attach a debugger, add breakpoints where I wanted to log, edited the breakpoints and added actions to log and continue after evaluation. The following is the steps to do so:

  1. Set the active scheme to the extension you want (from the top bar, or from Product/Scheme/Choose-Your-Scheme
  2. Debug/Attach to Process by ID or Name.... Then type the name of the extension or its bundle id.
  3. Add breakpoints where you wanted to add logs. Edit the breakpoint. Add action (Log Message) and enter the log you want. Check Automatically continue after evaluating the actions.

Here you can find my unanswered question.