No profiles for 'com.facebook.WebDriverAgentRunner' were found

When signing “WebDriverAgentRunner” as i am getting this error

Where there is not field present for bundle id

please help.

I did a quick search of the board and found this:

You may want to add to that thread if the solution doesn’t work for you.

Thanks @wreed But…

When trying to build the WebDriverAgentLib and WebDriverAgentRunner via my Developer Team’s account i found that i was not able to create a provisioning profile for com.facebook.webdriverAgentLib bundle ID, As the bundle ID follows the rule com.CompanyName.AppName, the bundle ID already existed before. So i went ahead and changed the com.facebook -> to -> com.MyCompany.WebDriverAgent and created the required certificates and provisioning profile. But Still I am getting the same output as i was getting earlier.

---------------- Console Logs ------------

[Appium] Welcome to Appium v1.6.0
[Appium] Non-default server args:
[Appium] address: ‘127.0.0.1’
[Appium] Appium REST http interface listener started on 127.0.0.1:4723
[HTTP] --> GET /wd/hub/status {}
[MJSONWP] Calling AppiumDriver.getStatus() with args: []
[MJSONWP] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.6.0”…
[HTTP] <-- GET /wd/hub/status 200 29 ms - 83
Appium server has started…
Nov 11, 2016 9:19:15 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Attempting bi-dialect session, assuming Postel’s Law holds true on the remote end
[HTTP] --> POST /wd/hub/session {“capabilities”:{“desiredCapabilities”:{“app”:"/Volumes/Automation/ServiceProvider.ipa",“newCommandTimeout”:900,“platformVersion”:“10.0.1”,“automationName”:“XCUITest”,“bundleId”:“com.YYYYYYY.serviceprovider”,“xcodeConfigFile”:"/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/xcodeConfigfile.xcconfig",“platformName”:“iOS”,“udid”:“a8XXXXXXXXXXX3XXXXXXXXXXX2dcXXXXXXXXXXXf5”,“deviceName”:“OIT\MIO00010”},“requiredCapabilities”:null},“desiredCapabilities”:{“app”:"/Volumes/Automation/ServiceProvider.ipa",“newCommandTimeout”:900,“platformVersion”:“10.0.1”,“automationName”:“XCUITest”,“bundleId”:“com.YYYYYYY.serviceprovider”,“xcodeConfigFile”:"/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/xcodeConfigfile.xcconfig",“platformName”:“iOS”,“udid”:“a8XXXXXXXXXXX3XXXXXXXXXXX2dcXXXXXXXXXXXf5”,“deviceName”:“OIT\MIO00010”},“requiredCapabilities”:null}
[debug] [MJSONWP] Bad parameters: BadParametersError: Parameters were incorrect. We wanted {“required”:[“desiredCapabilities”],“optional”:[“requiredCapabilities”,“sessionId”,“id”]} and you sent [“capabilities”,“desiredCapabilities”,“requiredCapabilities”]
[HTTP] <-- POST /wd/hub/session 400 4 ms - 201
Nov 11, 2016 9:19:16 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Falling back to straight W3C remote end connection
[HTTP] --> POST /wd/hub/session {“capabilities”:{“desiredCapabilities”:{“app”:"/Volumes/Automation/ServiceProvider.ipa",“newCommandTimeout”:900,“platformVersion”:“10.0.1”,“automationName”:“XCUITest”,“bundleId”:“com.YYYYYYY.serviceprovider”,“xcodeConfigFile”:"/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/xcodeConfigfile.xcconfig",“platformName”:“iOS”,“udid”:“a8XXXXXXXXXXX3XXXXXXXXXXX2dcXXXXXXXXXXXf5”,“deviceName”:“OIT\MIO00010”},“requiredCapabilities”:null}}
[debug] [MJSONWP] Bad parameters: BadParametersError: Parameters were incorrect. We wanted {“required”:[“desiredCapabilities”],“optional”:[“requiredCapabilities”,“sessionId”,“id”,“sessionId”,“id”]} and you sent [“capabilities”]
Nov 11, 2016 9:19:16 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Falling back to original OSS JSON Wire Protocol.
[HTTP] <-- POST /wd/hub/session 400 4 ms - 173
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Volumes/Automation/ServiceProvider.ipa",“newCommandTimeout”:900,“platformVersion”:“10.0.1”,“automationName”:“XCUITest”,“bundleId”:“com.YYYYYYY.serviceprovider”,“xcodeConfigFile”:"/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/xcodeConfigfile.xcconfig",“platformName”:“iOS”,“udid”:“a8XXXXXXXXXXX3XXXXXXXXXXX2dcXXXXXXXXXXXf5”,“deviceName”:“OIT\MIO00010”},“requiredCapabilities”:null}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Volumes/Automatio…
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] app: ‘/Volumes/Automation/ServiceProvider.ipa’
[Appium] newCommandTimeout: 900
[Appium] platformVersion: ‘10.0.1’
[Appium] automationName: ‘XCUITest’
[Appium] bundleId: ‘com.YYYYYYY.serviceprovider’
[Appium] xcodeConfigFile: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/xcodeConfigfile.xcconfig’
[Appium] platformName: ‘iOS’
[Appium] udid: ‘a8XXXXXXXXXXX3XXXXXXXXXXX2dcXXXXXXXXXXXf5’
[Appium] deviceName: ‘OIT\MIO00010’
[debug] [XCUITest] XCUITestDriver version: 2.0.26
[BaseDriver] Session created with session id: 9c0d03f6-a2d6-4429-8de8-ab773bc6471a
[debug] [XCUITest] Xcode version set to ‘8.1’
[debug] [XCUITest] iOS SDK Version set to ‘10.1’
[debug] [XCUITest] Available devices: a8XXXXXXXXXXX3XXXXXXXXXXX2dcXXXXXXXXXXXf5
[debug] [XCUITest] Creating iDevice object with udid a8XXXXXXXXXXX3XXXXXXXXXXX2dcXXXXXXXXXXXf5
[XCUITest] Determining device to run tests on: udid: ‘a8XXXXXXXXXXX3XXXXXXXXXXX2dcXXXXXXXXXXXf5’, real device: true
[BaseDriver] Using local app ‘/Volumes/Automation/ServiceProvider.ipa’
[debug] [BaseDriver] Copying local zip to tmp dir
[debug] [BaseDriver] Unzipping /tmp/20161011-3447-5pnxrd.55l82xogvi/appium-app.zip
[debug] [BaseDriver] Testing zip archive: /tmp/20161011-3447-5pnxrd.55l82xogvi/appium-app.zip
[debug] [BaseDriver] Got a relaxed match for app in zip, be careful for app match errors
[BaseDriver] Unzipped local app to ‘/tmp/20161011-3447-5pnxrd.55l82xogvi/Payload/OnDemand.app’
[debug] [XCUITest] Checking whether app is actually present
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: ‘/usr/local/bin/idevicesyslog’
[XCUITest] Setting up real device
[debug] [XCUITest] Stdout from app isInstalled check: […] Waiting for iOS device to be connected
[…] Using iPhone 6 Plus ‘OIT\MIO00010’ (a8XXXXXXXXXXX3XXXXXXXXXXX2dcXXXXXXXXXXXf5).
true

[debug] [XCUITest] App is installed.
[debug] [XCUITest] Full reset not requested. No need to install.
[XCUITest] Using default agent: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
[XCUITest] Using default bootstrap: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Using Xcode configuration file: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/xcodeConfigfile.xcconfig’
[debug] [XCUITest] Beginning test with command ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/bin/run-xcodebuild.sh --project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj --scheme WebDriverAgentRunner --destination id=a8XXXXXXXXXXX3XXXXXXXXXXX2dcXXXXXXXXXXXf5 --xcode-config-file “/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/xcodeConfigfile.xcconfig”’ 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/rohitverma/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/DA65AA5F-50D1-43DD-A42A-6E27A58B886E/Session-WebDriverAgentRunner-2016-11-11_091954-GA3uzk.log
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading…
[Xcode] 2016-11-11 09:20:05.901 xcodebuild[3461:318700] Error Domain=IDETestOperationsObserverErrorDomain Code=3 “Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/rohitverma/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/DA65AA5F-50D1-43DD-A42A-6E27A58B886E/Session-WebDriverAgentRunner-2016-11-11_091954-GA3uzk.log” UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/rohitverma/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/DA65AA5F-50D1-43DD-A42A-6E27A58B886E/Session-WebDriverAgentRunner-2016-11-11_091954-GA3uzk.log}

[Xcode] Code signing is required for product type ‘UI Testing Bundle’ in SDK ‘iOS 10.1’

[Xcode] No profiles for ‘com.facebook.WebDriverAgentRunner’ were found: Xcode couldn’t find a provisioning profile matching ‘com.facebook.WebDriverAgentRunner’.
Code signing is required for product type ‘UI Testing Bundle’ in SDK ‘iOS 10.1’
Code signing is required for product type ‘UI Testing Bundle’ in SDK ‘iOS 10.1’

[Xcode]

[Xcode]
Testing failed:

[Xcode] No profiles for ‘com.facebook.WebDriverAgentRunner’ were found: Xcode couldn’t find a provisioning profile matching ‘com.facebook.WebDriverAgentRunner’.
Code signing is required for product type ‘UI Testing Bundle’ in SDK ‘iOS 10.1’
** TEST FAILED **

The following build commands failed:
Check dependencies
(1 failure)

[XCUITest] xcodebuild exited with code ‘65’ and signal ‘null’
[debug] [XCUITest] xcodebuild failure warrants retry. Retrying…
[XCUITest] Shutting down WebDriverAgent
[XCUITest] System log exited with code ‘0’
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Using Xcode configuration file: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/xcodeConfigfile.xcconfig’
[debug] [XCUITest] Beginning test with command ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/bin/run-xcodebuild.sh --project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj --scheme WebDriverAgentRunner --destination id=a8XXXXXXXXXXX3XXXXXXXXXXX2dcXXXXXXXXXXXf5 --xcode-config-file “/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/xcodeConfigfile.xcconfig”’ 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/rohitverma/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/2AE47F31-1356-4716-89B9-A292D0A0B1F9/Session-WebDriverAgentRunner-2016-11-11_092018-39JfRi.log
[Xcode] 2016-11-11 09:20:25.349 xcodebuild[3741:319831] Error Domain=IDETestOperationsObserverErrorDomain Code=3 “Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/rohitverma/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/2AE47F31-1356-4716-89B9-A292D0A0B1F9/Session-WebDriverAgentRunner-2016-11-11_092018-39JfRi.log” UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/rohitverma/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/2AE47F31-1356-4716-89B9-A292D0A0B1F9/Session-WebDriverAgentRunner-2016-11-11_092018-39JfRi.log}

[Xcode]
Testing failed:
No profiles for ‘com.facebook.WebDriverAgentRunner’ were found: Xcode couldn’t find a provisioning profile matching ‘com.facebook.WebDriverAgentRunner’.
Code signing is required for product type ‘UI Testing Bundle’ in SDK ‘iOS 10.1’

[Xcode] ** TEST FAILED **

The following build commands failed:
Check dependencies
(1 failure)

[XCUITest] xcodebuild exited with code ‘65’ and signal ‘null’
[XCUITest] Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:294:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:294:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
[debug] [XCUITest] Running ios real device reset flow
[debug] [XCUITest] Resetting simulator
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:294:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
[HTTP] <-- POST /wd/hub/session 500 69065 ms - 167
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading…

@pavanbachu @Aleksei @mohak.barokar @arun.sharma @Trent_McCann
Please Help me as this certificate signing and profiling is bit confusing

For reference i am attaching the screenshot:

So you mean, “But… I didn’t bother to read the link?”. No one can help you if you won’t help yourself.

@crujzo I would highly encourage you to pass the Developer details as capability that would be easier , dont involve any manual steps

I would encourage you to re install appium

Xcodebuild failed with code 65 (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 32.63 seconds

@pavanbachu Thanks a lot for the help.
@wreed Thanks for you patience for bearing with me and for your time.

Ultimately the manual configurations worked.

The confusion ended when i have given unique name to the Product Bundle Identifier of the WebDriverAgentRunner and IntegrationApp. That was the only gap for getting it done.

This issue is resolved now.

Thanks all for the help and support.