calabash / calabash-ios

Calabash for iOS
Other
1.81k stars 369 forks source link

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

Open NancyMCP opened 4 years ago

NancyMCP commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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.