appium / WebDriverAgent

A WebDriver server for iOS and tvOS
Other
1.19k stars 371 forks source link

IOS 17 real device, can't launch wda #905

Closed 7999 closed 4 months ago

7999 commented 4 months ago

Do I have the most recent component updates?

Is the component officially supported by the Appium team?

Is there an existing issue for this?

Current Behavior

build wda through xcode was succeed, but click the wda icon on device always flashback, and start appium test also failed due to wda failed issue

Expected Behavior

launch wda succeed

Minimal Reproducible Example

n.a, happen on real device

Environment

Link to Appium Logs

No response

Further Information

appium.log

mykola-mokhnach commented 4 months ago

Possible duplicate of https://github.com/appium/WebDriverAgent/issues/822

KazuCocoa commented 4 months ago

Did you remove XC* frameworks from the package as https://appium.github.io/appium-xcuitest-driver/latest/guides/run-preinstalled-wda/#additional-requirement-for-ios-17tvos17 ? If not and it was Xcode build installed one, the app may not launch, which is expected as the package structure.

7999 commented 4 months ago

@KazuCocoa thanks for your hint, it works now

DicerZ commented 2 months ago

@KazuCocoa thanks a lot for your tip, it works the first time. But after rebooting the device, wda crashes. The ips file indicates that: "reasons":["Library not loaded: @rpath\/XCTest.framework\/XCTest"]

KazuCocoa commented 2 months ago

In terms of iOS 17, with embedded frameworks way may fail to start outside xcodebuild.

DicerZ commented 2 months ago

In terms of iOS 17, with embedded frameworks way may fail to start outside xcodebuild.

Thanks for your reply. The .app has not contain XC*.framework. It is a wonder that when the device connects to Mac, wda can launch as an app.

KazuCocoa commented 2 months ago

when the device connects to Mac, wda can launch as an app.

Then, it sounds like Apple added such a protection on devices. For example, iOS allows to load the path only when the iOS thinks the device is connected to a service running on macOS.

DicerZ commented 2 months ago

Then, it sounds like Apple added such a protection on devices. For example, iOS does not allow to load the path only when the iOS thinks the device is connected to a service running on macOS.

I expected it is a way to launch wda on Linux, but if it is like you said, that may not be a good idea right now.

lnguyen234 commented 1 month ago

Then, it sounds like Apple added such a protection on devices. For example, iOS does not allow to load the path only when the iOS thinks the device is connected to a service running on macOS.

I expected it is a way to launch wda on Linux, but if it is like you said, that may not be a good idea right now.

Do we have any updates on this? I'm having the similar issue. Thank you