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.framework not found in Xcode 12 Beta #1424

Open
jdeff opened this issue Jun 23, 2020 · 12 comments
Open

UIAutomation.framework not found in Xcode 12 Beta #1424

jdeff opened this issue Jun 23, 2020 · 12 comments

Comments

@jdeff
Copy link

jdeff commented Jun 23, 2020

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
Copy link
Contributor

jmoody commented Jun 29, 2020

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
Copy link

ccxla commented Jul 6, 2020

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 microsoft/appcenter#1912 that is probably going to be implemented here anyway.

@jmoody
Copy link
Contributor

jmoody commented Jul 7, 2020

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
Copy link

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

@JoeSSS
Copy link
Contributor

JoeSSS commented Sep 18, 2020

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: calabash/run_loop#756

@Br1an-Boyle
Copy link

@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
Copy link

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

@JoeSSS
Copy link
Contributor

JoeSSS commented Sep 21, 2020

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
Copy link

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
Copy link

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
Copy link

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

@Br1an-Boyle
Copy link

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

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

6 participants