Jitu1888 / ios-device-lab

This repo is created for Ios stf project
Other
3 stars 0 forks source link

Webdriveragent build failed as no account found #3

Open rajeshj93 opened 3 weeks ago

rajeshj93 commented 3 weeks ago

WDA is failing because of error: No Accounts: Add a new account in Accounts settings. (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')

When i trigger the WDA from xcode build is getting succeeded. Issue is only when i run MAKE command throught terminal.

Could you please here ? @Jitu1888

rajeshj93 commented 3 weeks ago

@Jitu1888 how did you overcome this error ? Can you please assist...

rajeshj93 commented 3 weeks ago

@Jitu1888 can you please assist on this issue ??

NguyenHoangDuy2406 commented 1 week ago

@rajeshj93 Did you do all the below steps?

Add your developer Apple ID to XCode

    XCode -> XCode menu -> Preferences -> Accounts Tab
    Click + under Apple IDs list
    Choose Apple ID
    Login to your account

Download a "Apple Development certificate" for your user

    Continue from previous step, right after logging into your Developer account in Xcode
    Select Manage Certificates
    Click + in the lower left corner
    Select Apple Development

Clone the various needed repos ( includes WebDriverAgent )

    Run make clone

Configure WebDriverAgent to use your identity for signing

    Open repos/WebDriverAgent/WebDriverAgent.xcodeproj in XCode
    Select the WebDriverAgentLib target
    Go to the Signing & Capabilities tab
    Select your team under Team
    Select the WebDriverAgentRunner target
    Go to the Signing & Capabilities tab
    Select your team under Team
rajeshj93 commented 1 week ago

@NguyenHoangDuy2406
Yes i have followed same steps but when am trying to run make command it throws the above error. Whereas when i am trying to build the WDA through xcode it works.

rajeshj93 commented 1 week ago

@NguyenHoangDuy2406 can you please assist here ?

NguyenHoangDuy2406 commented 1 week ago

@rajeshj93 it's so strange :(. It's working OK my my side

rajeshj93 commented 1 week ago

@NguyenHoangDuy2406 did we added our team name in make file as well ?

There we have a block of lines right with respect to build

wda: bin/wda/build_info.json

xcodebuildoptions1 := \ -scheme WebDriverAgentRunner \ -allowProvisioningUpdates \ -destination generic/platform=iOS

DEVID := $(shell jq .xcode_dev_team_id config.json -j)

xcodebuildoptions2 := \ CODE_SIGN_IDENTITY="iPhone Developer" \ DEVELOPMENT_TEAM="$(DEVID)"

rajeshj93 commented 2 days ago

@NguyenHoangDuy2406 can you please check this ?

NguyenHoangDuy2406 commented 2 days ago

@rajeshj93 which MacOS model that you're using? Apple Silicon or Intel? Because in my experience, when I try make with Apple Silicon, it shouldn't work before. So now I'm using the Intel chip one

rajeshj93 commented 2 days ago

I think i am using Intel only @NguyenHoangDuy2406

Jitu1888 commented 1 day ago

@rajeshj93 better use https://github.com/AppiumTestDistribution/appium-device-farm. This also runs an appium session for iOS you will get access to UI also.

Jitu1888 commented 1 day ago

I have tested it and it working fine now @rajeshj93

Jitu1888 commented 20 hours ago

@rajeshj93 You need to use an intel processor. Let me try an m2 chip, give me 2 days. I was busy with some tasks. Now i have time to fix all the issues

rajeshj93 commented 17 hours ago

@rajeshj93 better use https://github.com/AppiumTestDistribution/appium-device-farm. This also runs an appium session for iOS you will get access to UI also.

@Jitu1888 so you want me to run the appiun device farm for ios in another terminal and when the grip is up and running you want me to try running make command so it will fetch the session and so the ios UI in the STF ? Please confirm...

Jitu1888 commented 15 hours ago

it's a different entity, on mac run the appium with plugins: appium plugin install --source=npm appium-device-farm appium plugin install --source=npm appium-dashboard appium plugin install --source=npm appium-gestures-plugin appium plugin install --source=npm appium-wait-plugin appium plugin install --source=npm @appium/execute-driver-plugin

Install npm install -g go-ios Run Appium with the below command:

appium server -ka 800 --use-plugins=device-farm --config ./server-config.json -pa /wd/hub

In dashboard you can see iOS and Android phones. You can control it. @rajeshj93

server-config.json { "server": { "use-plugins": [ "device-farm", "appium-dashboard", "gestures", "execute-driver" ], "plugin": { "device-farm": { "skipChromeDownload": false, "platform": "android" } }, "port": 4723 } }

Please follow the below URL https://devicefarm.org/setup/#installation-client