Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"UIAutomation is not linked for some reason" error with Xcode12 and iOS14 #1428

Open
NancyMCP opened this issue Sep 25, 2020 · 5 comments
Open

Comments

@NancyMCP
Copy link

We're running Calabash tests with Xcode12 and iOS14 and encountered an issue with set_location() method (https://github.com/calabash/calabash-ios/wiki/Calabash-iOS-Ruby-API#location).

The simulator crashes with error "{"outcome":"FAILURE","details":"","reason":"UIAutomation is not linked for some reason."}"

Your help will be appreciated.

@AndreyMaslennikov
Copy link

AndreyMaslennikov commented Oct 16, 2020

Hello @NancyMCP!
This is a known issue and we have already fixed it. As a workaround I suggest you to use the latest v-andrem/ios-14-fixes branch of run-loop, or wait for official release.
Please let me know if this workaround helped you.

@NancyMCP
Copy link
Author

NancyMCP commented Oct 19, 2020

Hi @AndreyMaslennikov Unfortunately that branch didn't solve the issue.

This is the specific error when calling the "set_location(latitude: {latitude}, longitude: {longitude})" from core.rb:

"Set location change failed, for -xx.xxxx, xxx.xxxx ({"outcome":"FAILURE","details":"","reason":"UIAutomation is not linked for some reason."}). (RuntimeError)"

Let me know if there is another branch that I can try.

@CosminTango
Copy link

CosminTango commented Dec 25, 2020

Hi @AndreyMaslennikov Unfortunately that branch didn't solve the issue.

This is the specific error when calling the "set_location(latitude: {latitude}, longitude: {longitude})" from core.rb:

"Set location change failed, for -xx.xxxx, xxx.xxxx ({"outcome":"FAILURE","details":"","reason":"UIAutomation is not linked for some reason."}). (RuntimeError)"

Let me know if there is another branch that I can try.

Hi, Nancy. Please make use of the latest run_loop version in your Gemfile. Use 4.5.5. 👍 I struggled so much. For months we were unable to run iOS tests until I found out this damn thing. Hope it will solve your issue.... but I am doing Automation Testing.

@NancyMCP
Copy link
Author

NancyMCP commented Jan 5, 2021

Hi @AndreyMaslennikov Unfortunately that branch didn't solve the issue.
This is the specific error when calling the "set_location(latitude: {latitude}, longitude: {longitude})" from core.rb:
"Set location change failed, for -xx.xxxx, xxx.xxxx ({"outcome":"FAILURE","details":"","reason":"UIAutomation is not linked for some reason."}). (RuntimeError)"
Let me know if there is another branch that I can try.

Hi, Nancy. Please make use of the latest run_loop version in your Gemfile. Use 4.5.5. 👍 I struggled so much. For months we were unable to run iOS tests until I found out this damn thing. Hope it will solve your issue.... but I am doing Automation Testing.

Hi, We've got the latest run_loop 4.5.5 installed but didn't resolve the issue. Our automation tests fail when calling set_location(latitude: {latitude}, longitude: {longitude})" from core.rb.

@astapinski
Copy link

We're seeing the same issues with set_location throwing this error. We're also on run_loop 4.5.5 and the error still happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants