calabash / calabash-ios

Calabash for iOS
Other
1.81k stars 369 forks source link

UIAutomation.framework not found in Xcode 12 Beta #1424

Open jdeff opened 4 years ago

jdeff commented 4 years ago

Just updated Xcode to the 12 beta and I am seeing a new warning from Calabash:

2020-06-23 12:37:15.072  WARN CalabashServer:81 | dlopen(/Developer/Library/PrivateFrameworks/UIAutomation.framework/UIAutomation, 4): image not found

All calabash logs from Xcode:

CalabashServer | XTC_SKIP_LPSERVER_TOKEN is not in the app environment
CalabashServer | Will start LPServer with identifier: e8754b3cd4c478021b7b5f5654606d3a9bc25485
2020-06-23 12:37:15.064545-0700 Driver[83546:14810408] DEBUG CalabashServer:248 | Creating the server: <LPHTTPServer: 0x6000014502c0>
2020-06-23 12:37:15.064 DEBUG CalabashServer:248 | Creating the server: <LPHTTPServer: 0x6000014502c0>
2020-06-23 12:37:15.064 DEBUG CalabashServer:249 | Calabash iOS server version: CALABASH VERSION: 0.21.8
2020-06-23 12:37:15.066154-0700 Driver[83546:14810408] DEBUG CalabashServer:249 | Calabash iOS server version: CALABASH VERSION: 0.21.8
2020-06-23 12:37:15.064 DEBUG CalabashServer:260 | XTC_SKIP_LPSERVER_TOKEN is not defined in enviroment
2020-06-23 12:37:15.066428-0700 Driver[83546:14810416] DEBUG CalabashServer:260 | XTC_SKIP_LPSERVER_TOKEN is not defined in enviroment
2020-06-23 12:37:15.064 DEBUG CalabashServer:261 | Embedded (linked) Calabash Server was started.
2020-06-23 12:37:15.066684-0700 Driver[83546:14810408] DEBUG CalabashServer:261 | Embedded (linked) Calabash Server was started.
2020-06-23 12:37:15.064 DEBUG CalabashServer:270 | App Base SDK: iphonesimulator14.0
2020-06-23 12:37:15.066910-0700 Driver[83546:14810416] DEBUG CalabashServer:270 | App Base SDK: iphonesimulator14.0
2020-06-23 12:37:15.064 DEBUG CalabashServer:302 | IPHONE_SIMULATOR_ROOT: /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
2020-06-23 12:37:15.067162-0700 Driver[83546:14810408] DEBUG CalabashServer:302 | IPHONE_SIMULATOR_ROOT: /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
2020-06-23 12:37:15.070 DEBUG CalabashServer:288 | Calabash iOS server is listening on: 192.168.1.2 port 37265
2020-06-23 12:37:15.070264-0700 Driver[83546:14810416] DEBUG CalabashServer:288 | Calabash iOS server is listening on: 192.168.1.2 port 37265
2020-06-23 12:37:15.072  WARN CalabashServer:80 | Could not load private UIAutomation.framework.
2020-06-23 12:37:15.071818-0700 Driver[83546:14810408]  WARN CalabashServer:80 | Could not load private UIAutomation.framework.
2020-06-23 12:37:15.072  WARN CalabashServer:81 | dlopen(/Developer/Library/PrivateFrameworks/UIAutomation.framework/UIAutomation, 4): image not found
2020-06-23 12:37:15.072077-0700 Driver[83546:14810416]  WARN CalabashServer:81 | dlopen(/Developer/Library/PrivateFrameworks/UIAutomation.framework/UIAutomation, 4): image not found
jmoody commented 4 years ago

I think we can safely remove the dlopen call for all versions of iOS.

@ivan-nosar This would be part of Xcode 12 / iOS 14 support.

ccxla commented 4 years ago

This would be part of Xcode 12 / iOS 14 support.

@jmoody Is there an ETA for iOS 14 support already? I'm asking because I created a related feature request over at https://github.com/microsoft/appcenter/issues/1912 that is probably going to be implemented here anyway.

jmoody commented 4 years ago

For the past few years, we have not started looking at the new Xcode until the beta 2 is released.

There is no ETA.

My recommendation is that someone in the community remove the dlopen call, build the calabash.framework, and try it out.

ATTN @ivan-nosar @oddj0b

raamojirao commented 4 years ago

Xcode 12 beta 6 is released. When could we expect support for Xcode 12 / iOS 14. I am getting same error as @bboyle18

JoeSSS commented 4 years ago

I don't remember seeing this issue, but I have Xcode 12 GM running without any issues on Simulator building run_loop from this branch: https://github.com/calabash/run_loop/pull/756

Br1an-Boyle commented 4 years ago

@JoeSSS πŸ‘‹ Great to hear you have calabash running with Xcode 12 πŸ˜€ Can I ask how you're pointing to to the branch you linked above for run loop, rather than the latest release? Thanks

raamojirao commented 4 years ago

@JoeSSS That is nice! Could you please let us know how to point to that branch

JoeSSS commented 4 years ago

well, this is a bit more complicated :) You need to build your own gem bundle exec rake install and push it somewhere or update it manually on your CI.

raamojirao commented 4 years ago

okay thanks! I see 3 changes in the PR. Do you think making those changes locally on run loop 4.5.3 will work?

Br1an-Boyle commented 4 years ago

I can confirm that the change suggested above works on iOS 14. I have Calabash running with Xcode 12 and iOS 14 using the following:

In my Podfile:

pod 'Calabash', '0.21.10'

and in my Gemfile

gem 'run_loop', git: 'https://github.com/calabash/run_loop.git', branch: 'xcode_14_support'

Then run bundle update run_loop to fetch this new version of run_loop. This will take a while as it needs to clone the repo. Hopefully this will be released soon and we can then just point to a version number.

Hope this helps others get Calabash running for Xcode 12.

raamojirao commented 4 years ago

@bboyle18 That is nice! You got it working on real iOS device or simulator?

Br1an-Boyle commented 4 years ago

I only ever run Calabash on the Simulator, so I can't comment on whether it runs on a device.