I am using Browser Mob Proxy (version 2.1.0 beta-1), Appium (1.3.6) with Appium provided Java client (ver: 2.1) library. But Appium failed to set Proxy when start AppiumDriver and returning 'Original error: Instruments never checked in' exception. I tested on iphone-simulator on iOS 8.1.
Setting Proxy using below code
Proxy proxy = BMP_Proxy_Controller.Server.seleniumProxy();
objCapabilities.setCapability(MobileCapabilityType.PROXY,proxy);
objCapabilities.setCapability(MobileCapabilityType.ACCEPT_SSL_CERTS, true);
Log captured from Appium server:
{"desiredCapabilities":{"orientation":"Portrait","acceptSslCerts":true,"browserName":"Safari","autoLaunch":true,"locale":"US","safariAllowPopups":true,"locationServicesAuthorized":true,"newCommandTimeout":"600000","autoAcceptAlerts":true,"safariIgnoreFraudWarning":true,"platformVersion":"8.1","fullReset":false,"deviceName":"iPhone 5","platformName":"iOS","proxy":{"noProxy":null,"socksUsername":null,"httpProxy":"NDI-LAP-371.3pillar.corp:8019","ftpProxy":null,"socksPassword":null,"sslProxy":"NDI-LAP-371.3pillar.corp:8019","proxyAutoconfigUrl":null,"proxyType":"MANUAL","class":"org.openqa.selenium.Proxy","autodetect":false,"hCode":1056099159,"socksProxy":null},"bundleId":"com.apple.mobilesafari.app","deviceReadyTimeout":"450","locationServicesEnabled":false}}
info: Client User-Agent string: Apache-HttpClient/4.3.4 (java 1.5)
info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : acceptSslCerts, proxy,