Cannot launch simulated executable: no file found

An interesting error. We have upgraded to the latest xcode and since the newly generated .app file needs to be inspected by the inspector the only way to start is, is to manually start the server and then the inspector. Well all is good until I get this error:

[code][XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=F625E0EF-8C2A-49B9-8FDE-EAEDFE647CF6 -configuration Debug’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /Users/localuser/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/202293FC-B298-41A5-9AB7-99C7F061F998/Session-WebDriverAgentRunner-2017-01-11_141142-4sISsf.log
[Xcode] 2017-01-11 14:11:42.641 xcodebuild[13115:67471] Error Domain=IDEFoundationErrorDomain Code=1 “Cannot launch simulated executable: no file found at /Users/localuser/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app” UserInfo={NSLocalizedDescription=Cannot launch simulated executable: no file found at /Users/localuser/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app}

[Xcode] 2017-01-11 14:11:42.641 xcodebuild[13115:67471] Error Domain=IDETestOperationsObserverErrorDomain Code=5 “Early unexpected exit, operation never finished bootstrapping - no restart will be attempted” UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}

[Xcode] 2017-01-11 14:11:42.642 xcodebuild[13115:67480] Connection peer refused channel request for “dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface”; channel canceled <DTXChannel: 0x7fc678bd1110>

[Xcode] ** TEST EXECUTE FAILED **

[XCUITest] xcodebuild exited with code ‘65’ and signal ‘null’
[debug] [XCUITest] xcodebuild failure warrants retry. Retrying…
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down Logger process (pid 13121)
[XCUITest] Simulator log exited with code ‘null’
[debug] [XCUITest] Removing WDA application from device
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=F625E0EF-8C2A-49B9-8FDE-EAEDFE647CF6 -configuration Debug’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /Users/localuser/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/7BC7D226-72EE-4B46-873A-10E281BCCBA8/Session-WebDriverAgentRunner-2017-01-11_141144-2hiFg5.log
[Xcode] 2017-01-11 14:11:44.128 xcodebuild[13169:67605] Error Domain=IDEFoundationErrorDomain Code=1 “Cannot launch simulated executable: no file found at /Users/localuser/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app” UserInfo={NSLocalizedDescription=Cannot launch simulated executable: no file found at /Users/localuser/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app}

[Xcode] 2017-01-11 14:11:44.128 xcodebuild[13169:67605] Error Domain=IDETestOperationsObserverErrorDomain Code=5 “Early unexpected exit, operation never finished bootstrapping - no restart will be attempted” UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}

[Xcode] 2017-01-11 14:11:44.129 xcodebuild[13169:67614] Connection peer refused channel request for “dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface”; channel canceled <DTXChannel: 0x7fe185685cb0>

[Xcode] ** TEST EXECUTE FAILED **

[XCUITest] xcodebuild exited with code ‘65’ and signal ‘null’
[XCUITest] Error: xcodebuild failed with code 65
at SubProcess. (…/…/lib/webdriveragent.js:355:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (…/…/lib/teen_process.js:197:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
Error: xcodebuild failed with code 65
at SubProcess. (…/…/lib/webdriveragent.js:355:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (…/…/lib/teen_process.js:197:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down Logger process (pid 13175)
[XCUITest] Simulator log exited with code ‘null’
[debug] [XCUITest] Running iOS simulator reset flow
[debug] [XCUITest] Shutting down simulator
[debug] [iOSSim] Killing all iOS Simulators
[debug] [XCUITest] Cleaning simulator state.
[debug] [iOSSim] Cleaning app data files for ‘AARP-Now-Fabric.app’, ‘org.aarp.nowapp.test’
[debug] [iOSSim] Checking whether simulator has been run before
[debug] [iOSSim] Simulator has been run before
[debug] [iOSSim] Building bundle path map
[debug] [iOSSim] Checking whether simulator has been run before
[debug] [iOSSim] Simulator has been run before
[debug] [iOSSim] Building bundle path map
[debug] [iOSSim] Deleting directory: ‘/Users/localuser/Library/Developer/CoreSimulator/Devices/F625E0EF-8C2A-49B9-8FDE-EAEDFE647CF6/data/Containers/Data/Application/6E07D89F-B16E-46F8-B395-979FD43985CE’
[debug] [iOSSim] Deleting directory: ‘/Users/localuser/Library/Developer/CoreSimulator/Devices/F625E0EF-8C2A-49B9-8FDE-EAEDFE647CF6/data/Containers/Bundle/Application/396ADB53-CBC1-40B2-B03A-6A4434A906C0’
[debug] [iOSSim] Deleting file: ‘/Users/localuser/Library/Developer/CoreSimulator/Devices/Library/Preferences/org.aarp.nowapp.test.plist’
[debug] [iOSSim] Killing any simulator daemons for F625E0EF-8C2A-49B9-8FDE-EAEDFE647CF6
[iOSSim] Cleaning simulator F625E0EF-8C2A-49B9-8FDE-EAEDFE647CF6
[debug] [XCUITest] Resetting simulator
[debug] [XCUITest] Shutting down simulator
[debug] [iOSSim] Killing all iOS Simulators
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: xcodebuild failed with code 65
at SubProcess. (…/…/lib/webdriveragent.js:355:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (…/…/lib/teen_process.js:197:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
[/code]

This is how I start the server:
appium --pre-launch --debug-log-spacing --platform-version “10.2” --platform-name “iOS” --app “/Users/localuser/Desktop/AARP-Now-Fabric.app” --show-ios-log --device-name “iPhone 6”

Any guesses as to why the app artifact is not being generated?

Whats the Xcode and Appium Version ?