As I am new to real time device testing, I need your support in resolving an issue which I am facing since long now. I have following issues in iOS devices and simulators:
I am able to run my script in simulator but not on real time device.
Unable to see WebDriverAgentRunner app on the device, however I have build that app multiple times.
My Scrip is able to interact with Appium, it gets installed also but never gets open (In Eclipse it gets failed with error: No element found)
@Gunkan_Gupta Thanks for the help, I have update accordinly, but still I am facing the same issue
When I ran the command (xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination ‘id=cc789ad93a5a735670c3379fa3de44f20fefac9e’ test), I got this error (
Testing failed:
No profile for team ‘6L7TU2565M’ matching ‘WebDriverAgentRunner’ found: Xcode couldn’t find any provisioning profiles matching ‘6L7TU2565M/WebDriverAgentRunner’. Install the profile (by dragging and dropping it onto Xcode’s dock item) or select a different one in the General tab of the target editor.
Code signing is required for product type ‘UI Testing Bundle’ in SDK ‘iOS 11.3’)
Just go to the location where your WebDriverAgent.xcodeproj present and open same in Xcode .
Once it is open update bundle id and developer profile with same bundle id on which the app is build.
To complete above step please follow below steps:
• Go to build settings of the project as shown in below screenshot and add the development team.
• If no options are available in development team to select then follow the below procedure to add the account.
• Click on xcode and navigate to preferences.
• Click on Accounts.
• Click on ‘+’ symbol and add the account same as the account used for the code signing activity.
• Now you can select the added account in Development Team.
• The account selected for the development team should be same as the account selected for code signing activity.
• Now add development team for all the “Targets” also similarly by navigating to build settings.
• Now go to “WebdriverAgent.lib” under Target and update bundleid in General Tab with bundleid used in test app.
• Similarly repeat above step for “WebdriverAgentRunner” and “Integration.app” targets.
• Run the code to check for any errors and build succeeded message should be displayed.
Once all above steps are done then again run the appium script .Now it should download webdriver agent runner app in real device.
I have tried these steps, still getting the same error. In Xcode it shows build succeeded but WebDriverAgent App never gets installed.
Please find the attached screenshots
Add xcodeOrgid or team id and xcodeSigningId in your desired capabilities, like this
capabilities.setCapability(“xcodeOrgId”,“ABC”);
capabilities.setCapability(“xcodeSigningId”,“iPhone Developer”);
Just change xcodeOrgid in above code and add in your desired capabilities
It should work
From logs it shows that xcode is unable to find correct certificate for team id “P986P3SPG2”.
I think you are giving wrong team id, please check right team id from:
You can find your Team ID using your developer account. Sign in to developer.apple.com/account, and click Membership in the sidebar. Your Team ID appears in the Membership Information section under the team name.
I am still getting the same error.
I believe the issue is with some certificate and profile. Could you please help me on that, also let me know what information you need so that I can tell you my current settings