Capability 'autoAcceptAlerts' changed from string to boolean. This may cause unexpected behavior

Hi,
All was fine when in one point when attempted to execute the code, the app installation keeps failing - (I don’t think any one changed anything in the ENV & Code).
There is a warning that might indicate what might be the problem (See below autoAcceptAlerts syntax):
“Capability ‘autoAcceptAlerts’ changed from string to boolean. This may cause unexpected behavior.”

This is the code for autoAcceptAlerts:
Capabilities. setCapability (IOSMobileCapabilityType. AUTO_ACCEPT_ALERTS, genMeth. getValueFromPropFile (“Alert”));

Any idea how to fix it?

Log:
2016-09-14 16:02:24:344 - [HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/sgmacbookpro/Appium/iOS/SkyGiraffe.app",“udid”:“51d8c712258a5b0ac63516aa5be9d10014b0c270”,“platformName”:“iOS”,“deviceName”:“SG iPhone 5s”,“newCommandTimeout”:12000,“autoAcceptAlerts”:“True”}}

2016-09-14 16:02:24:346 - [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/sgmacbookpr…

2016-09-14 16:02:24:347 - [Appium] Creating new IosDriver session
2016-09-14 16:02:24:348 - [Appium] Capabilities:
2016-09-14 16:02:24:349 - [Appium] app: ‘/Users/sgmacbookpro/Appium/iOS/SkyGiraffe.app’

2016-09-14 16:02:24:350 - [Appium] udid: ‘51d8c712258a5b0ac63516aa5be9d10014b0c270’
2016-09-14 16:02:24:351 - [Appium] platformName: ‘iOS’
2016-09-14 16:02:24:352 - [Appium] deviceName: ‘SG iPhone 5s’
2016-09-14 16:02:24:353 - [Appium] newCommandTimeout: 12000
2016-09-14 16:02:24:353 - [Appium] autoAcceptAlerts: ‘True’

2016-09-14 16:02:24:354 - [Appium] platformVersion: ‘8.1’
2016-09-14 16:02:24:354 - [Appium] showIOSLog: true
2016-09-14 16:02:24:359 - [BaseDriver] Capability ‘autoAcceptAlerts’ changed from string to boolean. This may cause unexpected behavior
2016-09-14 16:02:24:365 - [BaseDriver] Session created with session id: 0ff98a15-2a51-4593-94f7-4585925cd931
2016-09-14 16:02:24:368 - [debug] [iOS] Not auto-detecting udid.

2016-09-14 16:02:24:370 - [BaseDriver] Using local app ‘/Users/sgmacbookpro/Appium/iOS/SkyGiraffe.app’
2016-09-14 16:02:24:372 - [debug] [iOS] Removing any remaining instruments sockets
2016-09-14 16:02:24:375 - [debug] [iOS] Cleaned up instruments socket /var/folders/wz/bmlkwsw57jbbmyk7dgyxhwd80000gn/T/instruments_sock
2016-09-14 16:02:24:375 - [debug] [iOS] No language specified. Using default strings
2016-09-14 16:02:24:377 - [debug] [iOS] Strings file not found. Looking in ‘en.lproj’ directory
2016-09-14 16:02:24:378 - [iOS] Could not file localizable strings file ‘Localizable.strings’!
2016-09-14 16:02:24:379 - [debug] [ios-app-utils] Getting bundle ID from app
2016-09-14 16:02:24:379 - [iOS] Extracted bundleID: beta.SkyGiraffe.SkyGiraffe from app: /Users/sgmacbookpro/Appium/iOS/SkyGiraffe.app
2016-09-14 16:02:24:380 - [debug] [iOS] Creating instruments
2016-09-14 16:02:24:382 - [debug] [UIAuto] Preparing bootstrap code
2016-09-14 16:02:24:383 - [debug] [UIAuto] Dynamic bootstrap dir: /Users/sgmacbookpro/Library/Application Support/appium/bootstrap
2016-09-14 16:02:24:384 - [debug] [UIAuto] Dynamic env: {“nodePath”:"/Applications/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-uiauto/build/lib/bin/command-proxy-client.js",“instrumentsSock”:"/var/folders/wz/bmlkwsw57jbbmyk7dgyxhwd80000gn/T/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:true,“autoDismissAlerts”:false,“sendKeyStrategy”:“grouped”}

2016-09-14 16:02:24:424 - [debug] [UIAuto] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!

2016-09-14 16:02:24:424 - [debug] [UIAuto] Dynamic bootstrap path: /Users/sgmacbookpro/Library/Application Support/appium/bootstrap/bootstrap-295ce1fdb459f5a0.js

2016-09-14 16:02:24:428 - [debug] [UIAuto] Reusing dynamic bootstrap: /Users/sgmacbookpro/Library/Application Support/appium/bootstrap/bootstrap-295ce1fdb459f5a0.js
2016-09-14 16:02:24:445 - [debug] [iOS] Running ios real device reset flow

2016-09-14 16:02:24:447 - [debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
2016-09-14 16:02:24:449 - [debug] [iOSLog] Found idevicesyslog: ‘/usr/local/bin/idevicesyslog’

2016-09-14 16:02:24:804 - [debug] [iOS] Creating iDevice object with udid 51d8c712258a5b0ac63516aa5be9d10014b0c270

2016-09-14 16:02:25:268 - [debug] [iOS] App is not installed. Will try to install.

2016-09-14 16:02:25:716 - [HTTP] --> GET /wd/hub/status {}

2016-09-14 16:02:25:717 - [MJSONWP] Calling AppiumDriver.getStatus() with args: []

2016-09-14 16:02:25:773 - [MJSONWP] Encountered internal error running command: Error: Installing /Users/sgmacbookpro/Appium/iOS/SkyGiraffe.app failed
at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/node_modules/node-idevice/main.js:159:6
at ChildProcess.exithandler (child_process.js:193:7)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:850:16)
at Socket. (internal/child_process.js:323:11)
at emitOne (events.js:90:13)
at Socket.emit (events.js:182:7)
at Pipe._onclose (net.js:475:12)

This fixed it:

  1. brew uninstall ios-webkit-debug-proxy && brew install ios-webkit-debug-proxy
  2. brew uninstall libimobiledevice && brew install --HEAD libimobiledevice