-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Testing failed: Cannot link directly with dylib/framework while building WDA #17497
Comments
Duplicate of #17174 |
thanks, @KazuCocoa finally iOS 16 with appium@next | MAC. 12.5 | XCODE 14 EXECUTED SUCCESSFULLY : Folks- if needed below env to work everything fine Steps done -
|
@siddhantraut and @KazuCocoa I tried to perform the above steps but i am unable to get it done |
@KazuCocoa and @siddhantraut i am running on real iOS device where i am using manual configuration build the webdriverAgent once and on that webdriveragent runner i am running my entire suite |
@Digi27 Could you please make sure WDA in xcode from correct - path - /Users/username/.appium/node_modules/appium-xcuitest-driver/node_modules/ |
@siddhantraut after this command npm install -g appium@next |
yes, you can find in console log as well like "No WDA found" @usr/path../node_modules.
|
hy @KazuCocoa @siddhantraut @Digi27 |
I haven't seen the error, but I wonder if this was because you installed appium in root permission space and Xcode failed to open them. |
What worked for me
|
Hi @siddhantraut , I'm trying to understand your solution steps
Steps followed:
I used wda xcode proj file from this location /Users/username/.appium/node_modules/appium-xcuitest-driver/node_modules/ to build wda into connected iPhone Cannot link directly with dylib/framework, your binary is not an allowed client of /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/XCTAutomationSupport.framework/XCTAutomationSupport for architecture arm64 Facing this issue still Help is much appreciated |
What about cleaning your xcode cache stuff such as |
Is there a way to install the xcuitest older driver instead, for people who don't have the time to upgrade all their tests to Appium 2.0? I'm on xcode 14.0 . I rolled forward, on a single machine but it totally breaks too much of our test code to fix in a hurry, so I'd like to roll back correctly, but installing appium (1) seems to install or use the newer driver still on that machine even after uninstalling appium. |
@Immanuel-Codoid could you try reinstallation(remove first) XCODE once? |
JavaScript code in appium-xcuitest-driver/appium-webdriveragent has breaking changes internally, but the below may work: Replace Let me take a look (hopefully) tonight if we could pick necessary changes up for xcode 14 for appium 1 to include only it |
As a short term workaround I managed to install both appium via brew and override the node version 2 installation, then manually Ah I see you just posted some workaround hints, that tally with my very limited java experience above showing that this can be transplanted. Will try do that tomorrow. Thanks for all the effort, will verify tomorrow and feedback. |
A quick workaround for this still using Appium 1.22.3 is to go to the
|
Getting the same error with: Steps to fix the issue: This installed the appium version: 2.0.0-beta.46 Then install the driver for xcuitest: Go to the folder: Open WebDriverAgent.xcodeproj with xCode and sign it. Then run the command: |
@mykola-mokhnach what would you think about an xcuitest driver script like this:
And all it does is call |
yes, I like this idea |
The following build commands failed: |
The problem
Getting error after full manual configuration while building WebDriverAgent
( xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=' test )
Test session results, code coverage, and logs:
/Users/siddhant/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2022.09.15_21-45-16--0400.xcresult
Testing failed:
Cannot link directly with dylib/framework, your binary is not an allowed client of /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/XCTAutomationSupport.framework/XCTAutomationSupport for architecture arm64
Testing cancelled because the build failed.
** TEST FAILED **
The following build commands failed:
Ld /Users/siddhant/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework/WebDriverAgentLib normal (in target 'WebDriverAgentLib' from project 'WebDriverAgent')
(1 failure)
Environment
Details
Getting error after full manual configuration
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=' test
Link to Appium logs
NA
Code To Reproduce Issue [ Good To Have ]
NA
ticket created on apple developer forum as well - ref - https://developer.apple.com/forums/thread/712039?login=true&page=1#728216022
The text was updated successfully, but these errors were encountered: