Search code examples
automationappiumios-ui-automationappium-iosappium-desktop

Appium REAL IOS Device app Testing:xcodebuild failure: "xcodebuild failed with code 65".


Appium Mobile Testing App on Real IOS device: I am using Apple IOS 6 plus with UI automation enabled and my email id trusted. No idea what provisioning profiles or certificates i have. I am stuck in mobile automation of the our app on real IOS device.

I have created a developer account on apple. I have configured xcode and followed all the steps in the below link:

https://appium.io/docs/en/drivers/ios-xcuitest-real-devices/

Ran the build in Xcode and it was successful

Ran the Build

i am stuck at this highlighted step, i am getting connection was refused error.

Got connection refused for this highlighted step

I ignored the above connection was refused error and proceeded to run the appium inspector server with the following desired capabilities and found the following appium server error:

Appium Inspector

Error Screenshot

Could you please help me fix this and make me run the first mobile automation test.

Thanks, Sai


Solution

  • Note: I was able to run my tests on real iPhone and iPad devices without a paid developer account.

    I had used agentPath capability which points to WDA project path and bootstrapPath capability which points to WDA xcode project file where I had auto signed my profile.

    Also I had set xcodeSigningId as hard coded value of iPhone Developer.

    Can you try this steps and check if it works.