Why Safari shows “No Inspectable Applications” dur

2019-01-08 21:24发布

When I connect my iOS 6 device for remote debugging for testing my mobile web application, The safari develop menu with my device name shows "No Inspectable Applications".

I have enabled web inspector ON in my device safari device settings.

Why this is happening?

10条回答
疯言疯语
2楼-- · 2019-01-08 22:06

I had the same issue eventually I understand that the problem is with the Xcode settings.

To solve this issue:

Enable Safari Debug

First of all verify that on the device you have enabled the Safari debugger (on the device go to: Settings >> Safari >> Advanced >> Enable Debug; or iOS 9+ turn on: Settings >> Safari >> Advanced >> Web Inspector). If you've done this you will see your device in Safari >> Develop. if you see your device but you don't see your application under it, instead "no inspectable application", check your Xcode settings.

Xcode

1. Change Build Configuration:

Right click on the project name (under the play/run button) and select 'Edit Schema...', in the 'Edit Schema' window under 'Run' tab change the 'Build Configuration' to 'Debug' (instead of 'Release')

2. Change the Code Signing:

Click on the project name in the files tree, to display the project settings. Select the 'Build Settings' tab. Change the 'Provision Profile' to 'Automatic'. Change the 'Code Sign Identity' to 'iOS Developer'.

Note that changing the code signing will prevent you from release versions for production, however you will be able to debug your application.

查看更多
Explosion°爆炸
3楼-- · 2019-01-08 22:07

If you have private browsing enabled in Settings > Safari, you will not be able to use remote debugging. If you turned off private browsing, it will work like a charm.

查看更多
Lonely孤独者°
4楼-- · 2019-01-08 22:09

I was trying to get this working via the iOS simulator and none of the previously stated answers worked, even though I tried them all. Instead, running the following worked:

npm install -g ios-sim

After that, once I started the application, the simulator appeared under the Develop menu on Safari.

查看更多
老娘就宠你
5楼-- · 2019-01-08 22:10

A few things to try:

  1. On your iPhone/iPad, double-tap the Home button to bring up the list of running apps, close Safari (or appropriate Web App), then reopen

  2. Quit/reopen Safari on the Mac

  3. Unplug/plug back in iOS device

As a side note, I can attach to Safari with private browsing enabled on the iOS device.

查看更多
登录 后发表回答