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

Doesn't work with Xcode 15 #2

Open
MLKrisJohnson opened this issue Sep 29, 2023 · 1 comment
Open

Doesn't work with Xcode 15 #2

MLKrisJohnson opened this issue Sep 29, 2023 · 1 comment

Comments

@MLKrisJohnson
Copy link

MLKrisJohnson commented Sep 29, 2023

I don't know whether this worked with Xcode 14, but I'm trying with Xcode 15.

There aren't any instructions provided, so this is what I've tried:

  1. Open the project in Xcode 15
  2. Select my developer Team in Signing & Capabilities for the three targets
  3. Select an iOS device to run on (I am using an iPhone XS running iOS 16.0.3)
  4. Click the Run button

When I do that, I get this output in the debugger:

dyld[42790]: Library not loaded: @rpath/XCTAutomationSupport.framework/XCTAutomationSupport
  Referenced from: <971A8857-9DDE-3ED9-8A8D-0CCA344D2ADC> /private/var/containers/Bundle/Application/8C0E11AE-4156-4ECE-A1B9-CEAF415B6F4C/LinkWithXCTAutomationSupport.app/Frameworks/IDETestingFoundationTests.framework/IDETestingFoundationTests
  Reason: tried: '/private/var/containers/Bundle/Application/8C0E11AE-4156-4ECE-A1B9-CEAF415B6F4C/LinkWithXCTAutomationSupport.app/Frameworks/XCTAutomationSupport.framework/XCTAutomationSupport' (errno=2), '/private/var/containers/Bundle/Application/8C0E11AE-4156-4ECE-A1B9-CEAF415B6F4C/LinkWithXCTAutomationSupport.app/Frameworks/IDETestingFoundationTests.framework/Frameworks/XCTAutomationSupport.framework/XCTAutomationSupport' (errno=2), '/private/var/containers/Bundle/Application/8C0E11AE-4156-4ECE-A1B9-CEAF415B6F4C/LinkWithXCTAutomationSupport.app/Frameworks/XCTAutomationSupport.framework/XCTAutomationSupport' (errno=2), '/private/var/containers/Bundle/Application/8C0E11AE-4156-4ECE-A1B9-CEAF415B6F4C/LinkWithXCTAutomationSupport.app/Frameworks/ExportXCTAutomationSupport.framework/Frameworks/XCTAutomationSupport.framework/XCTAutomationSupport' (errno=2), '/private/var/containers/Bundle/Application/8C0E11AE-4156-4ECE-A1B9-CEAF415B6F4C/LinkWithXCTAutomationSupport.app/Frameworks/XCTAutomationSupport.framework/XCTAutomationSupport' (errno=2), '/private/var/containers/Bundle/Application/8C0E11AE-4156-4ECE-A1B9-CEAF415B6F4C/LinkWithXCTAutomationSupport.app/Frameworks/XCTAutomationSupport.framework/XCTAutomationSupport' (errno=2), '/private/preboot/Cryptexes/OS@rpath/XCTAutomationSupport.framework/XCTAutomationSupport' (errno=2), '/private/var/containers/Bundle/Application/8C0E11AE-4156-4ECE-A1B9-CEAF415B6F4C/LinkWithXCTAutomationSupport.app/Frameworks/XCTAutomationSupport.framework/XCTAutomationSupport' (errno=2), '/private/var/containers/Bundle/Application/8C0E11AE-4156-4ECE-A1B9-CEAF415B6F4C/LinkWithXCTAutomationSupport.app/Frameworks/IDETestingFoundationTests.framework/Frameworks/XCTAutomationSupport.framework/XCTAutomationSupport' (errno=2), '/private/var/containers/Bundle/Application/8C0E11AE-4156-4ECE-A1B9-CEAF415B6F4C/LinkWithXCTAutomationSupport.app/Frameworks/XCTAutomationSupport.framework/XCTAutomationSupport' (errno=2), '/private/var/containers/Bundle/Application/8C0E11AE-4156-4ECE-A1B9-CEAF415B6F4C/LinkWithXCTAutomationSupport.app/Frameworks/ExportXCTAutomationSupport.framework/Frameworks/XCTAutomationSupport.framework/XCTAutomationSupport' (errno=2), '/private/var/containers/Bundle/Application/8C0E11AE-4156-4ECE-A1B9-CEAF415B6F4C/LinkWithXCTAutomationSupport.app/Frameworks/XCTAutomationSupport.framework/XCTAutomationSupport' (errno=2), '/private/var/containers/Bundle/Application/8C0E11AE-4156-4ECE-A1B9-CEAF415B6F4C/LinkWithXCTAutomationSupport.app/Frameworks/XCTAutomationSupport.framework/XCTAutomationSupport' (errno=2), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/XCTAutomationSupport.framework/XCTAutomationSupport' (errno=2)
Message from debugger: killed
@abdulowork
Copy link
Owner

The original demo was only meant for the simulator. I never expected someone to run this on a real device!

I pushed a PoC to the main branch which should now work on the device. The idea is:

  1. Create a fake UI tests target which would create the -Runner.app bundle with the XCUI frameworks
  2. Copy the XCUI frameworks from the -Runner.app

This should work for both the simulator and the real 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

2 participants