sai charan
sai charan

Reputation: 305

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

Upvotes: 2

Views: 1300

Answers (2)

Wasiq Bhamla
Wasiq Bhamla

Reputation: 959

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.

Upvotes: 1

Vivian Nastasa
Vivian Nastasa

Reputation: 21

You need a paid apple developer account to run tests on real devices, which need to be registered in your account's devices pool, otherwise you are limited to simulators. 65 can also occur if you have not installed carthage - 'brew install carthage'.

Also, another possibility is that you are trying to execute on an apple test device, which won't work. The easy way to spot this is to look on the backside of the device and see if it has a QR code in the lower part of the case.

Upvotes: 2

Related Questions