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

Can't run any XUITest with runtest command in iOS18.2/iOS15+ #570

Open
letmeNo1 opened this issue Feb 21, 2025 · 1 comment
Open

Can't run any XUITest with runtest command in iOS18.2/iOS15+ #570

letmeNo1 opened this issue Feb 21, 2025 · 1 comment

Comments

@letmeNo1
Copy link

Command:
.\go-ios.exe runtest --bundle-id nico.dump-hierarchy.hank --test-runner-bundle-id nico.dump-hierarchyUITests.hank.xctrunner --env "USE_PORT=8888" --log-output "C:\Users\hanhuang\tc\cathin\go-ios\LOG.txt"

Output:
14:30:54.581 dump_hierarchyUITests-Runner[569:77560] Creating future for 'requesting test configuration' with timeout 600.00
14:30:54.581 dump_hierarchyUITests-Runner[569:77560] Notifying test runner ready
14:30:54.581 dump_hierarchyUITests-Runner[569:77571] -[XCTRunnerDaemonSession(XCTMessagingRole_UIApplicationStateUpdating) _XCT_applicationDidUpdateState:] nico.dump-hierarchyUITests.hank.xctrunner@/private/var/containers/Bundle/Application/E6FE424A-0240-4564-BD9D-55EB5635819B/dump_hierarchyUITests-Runner.app pid: 569 state: running background
14:30:54.581 dump_hierarchyUITests-Runner[569:77560] <XCTWaiter: 0x2802d46f0> entering wait loop for 600.00s with expectations: requesting test configuration
14:30:54.584 dump_hierarchyUITests-Runner[569:77571] Received test runner ready reply. Waiting for request to start running tests.
14:30:54.584 dump_hierarchyUITests-Runner[569:77560] Returning result XCTWaiterResultCompleted for waiter <XCTWaiter: 0x2802d46f0>
14:30:54.584 dump_hierarchyUITests-Runner[569:77560] Wait <XCTWaiterWait: 0x2819e5700> completed after 0.003s
14:30:54.584 dump_hierarchyUITests-Runner[569:77560] cleaning up requesting test configuration
14:30:54.584 dump_hierarchyUITests-Runner[569:77560] Loading test bundle at: file:///private/var/containers/Bundle/Application/E6FE424A-0240-4564-BD9D-55EB5635819B/dump_hierarchyUITests-Runner.app/PlugIns/
14:30:54.586 dump_hierarchyUITests-Runner[569:77560] Creating future for 'reporting bootstrap failure to IDE' with timeout 15.00
14:30:54.587 dump_hierarchyUITests-Runner[569:77560] Reporting bootstrapping failure to IDE: Error Domain=com.apple.XCTestErrorDomain Code=103 "Failed to load the test bundle" UserInfo={ExitCode=1, NSLocalizedDescription=Failed to load the test bundle, NSUnderlyingError=0x2802e1800 {Error Domain=NSCocoaErrorDomain Code=4 "The bundle “PlugIns” couldn’t be loaded because its executable couldn’t be located." UserInfo={NSLocalizedFailureReason=The bundle’s executable couldn’t be located., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSBundlePath=/var/containers/Bundle/Application/E6FE424A-0240-4564-BD9D-55EB5635819B/dump_hierarchyUITests-Runner.app/PlugIns, NSLocalizedDescription=The bundle “PlugIns” couldn’t be loaded because its executable couldn’t be located.}}}
14:30:54.588 dump_hierarchyUITests-Runner[569:77560] <XCTWaiter: 0x2802e1680> entering wait loop for 15.00s with expectations: reporting bootstrap failure to IDE
14:30:54.589 dump_hierarchyUITests-Runner[569:77560] Returning result XCTWaiterResultCompleted for waiter <XCTWaiter: 0x2802e1680>
14:30:54.589 dump_hierarchyUITests-Runner[569:77560] Wait <XCTWaiterWait: 0x2819e6000> completed after 0.001s

@letmeNo1
Copy link
Author

I was able to start XUITest with tidevice(tidevice xcuitest --bundle-id nico.dump-hierarchyUITests.hank.xctrunner --target-bundle-id nico.dump-hierarchy.hank -e USE_PORT:8080) normally on iOS15 . Indicates that my test package should be complete

this is log for tidevice, I hope this helps

Feb 21 14:54:30 iPhone DTServiceHub(FrontBoardServices)[565] : [FBSSystemService][0xa000] Sending request to open "nico.dump-hierarchyUITests.hank.xctrunner"
Feb 21 14:54:30 iPhone SpringBoard(FrontBoard)[61] : [FBSystemService][0xa000] Received request to open "nico.dump-hierarchyUITests.hank.xctrunner" from DTServiceHub:565.
Feb 21 14:54:30 iPhone SpringBoard(FrontBoard)[61] : [FBSystemService][0xa000] Trusting entitled client DTServiceHub:565.
Feb 21 14:54:30 iPhone SpringBoard(FrontBoard)[61] : [FBSystemService][0xa000] Activation request for nico.dump-hierarchyUITests.hank.xctrunner will wait 10.00s for app availability, with retry every 2.00s.
Feb 21 14:54:30 iPhone SpringBoard(SpringBoard)[61] : Received trusted open application request for "nico.dump-hierarchyUITests.hank.xctrunner" from <FBProcess: 0x12f237820; anon:565(v639)>.
Feb 21 14:54:30 iPhone trustd[133] : cert[0]: SubjectCommonName =(leaf)[]> 0
Feb 21 14:54:30 iPhone trustd[133] : cert[0]: LeafMarkerOid =(leaf)[force]> 0
Feb 21 14:54:30 iPhone trustd[133] : cert[0]: IssuerCommonName =(path)[]> 0
Feb 21 14:54:30 iPhone SpringBoard(Security)[61] : Trust evaluate failure: [leaf IssuerCommonName LeafMarkerOid SubjectCommonName]
Feb 21 14:54:30 iPhone SpringBoard(libmis.dylib)[61] : was picked for validation
Feb 21 14:54:30 iPhone SpringBoard(SpringBoard)[61] : Executing request: <SBMainWorkspaceTransitionRequest: 0x283371320; eventLabel: OpenApplication(sceneID:nico.dump-hierarchyUITests.hank.xctrunner-default)ForRequester(DTServiceHub.565); display: Main; source: FBSystemService>
Feb 21 14:54:30 iPhone trustd[133] : cert[0]: SubjectCommonName =(leaf)[]> 0
Feb 21 14:54:30 iPhone trustd[133] : cert[0]: LeafMarkerOid =(leaf)[force]> 0
Feb 21 14:54:30 iPhone trustd[133] : cert[0]: IssuerCommonName =(path)[]> 0
Feb 21 14:54:30 iPhone SpringBoard(Security)[61] : Trust evaluate failure: [leaf IssuerCommonName LeafMarkerOid SubjectCommonName]
Feb 21 14:54:30 iPhone SpringBoard(libmis.dylib)[61] : was picked for validation
Feb 21 14:54:30 iPhone SpringBoard(SpringBoard)[61] : Executing suspended-activation immediately: OpenApplication(sceneID:nico.dump-hierarchyUITests.hank.xctrunner-default)ForRequester(DTServiceHub.565)
Feb 21 14:54:30 iPhone SpringBoard(FrontBoard)[61] : [FBWorkspaceEvent] Executing: <FBWorkspaceEvent: 0x2807dbd40; OpenApplication(sceneID:nico.dump-hierarchyUITests.hank.xctrunner-default)ForRequester(DTServiceHub.565)>
Feb 21 14:54:30 iPhone SpringBoard(FrontBoard)[61] : [FBWorkspaceEvent] Executing: <FBWorkspaceEvent: 0x2807dde60; OpenApplication(sceneID:nico.dump-hierarchyUITests.hank.xctrunner-default)ForRequester(DTServiceHub.565)>
Feb 21 14:54:30 iPhone SpringBoard(FrontBoard)[61] : Asked to bootstrap a new process with identity: application<nico.dump-hierarchyUITests.hank.xctrunner>
Feb 21 14:54:30 iPhone SpringBoard(FrontBoard)[61] : Creating process (sync=true) with identity: application<nico.dump-hierarchyUITests.hank.xctrunner>
Feb 21 14:54:30 iPhone SpringBoard(FrontBoard)[61] : Created <FBWorkspace: 0x2836c0630; application<nico.dump-hierarchyUITests.hank.xctrunner>>
Feb 21 14:54:30 iPhone SpringBoard(FrontBoard)[61] : Bootstrapping application<nico.dump-hierarchyUITests.hank.xctrunner> with intent background
Feb 21 14:54:30 iPhone runningboardd(RunningBoard)[32] : Acquiring assertion targeting application<nico.dump-hierarchyUITests.hank.xctrunner> from originator [daemon<com.apple.SpringBoard>:61] with description <RBSAssertionDescriptor| "FBApplicationProcess" ID:32-61-475 target:application<nico.dump-hierarchyUITests.hank.xctrunner> attributes:[
<RBSDomainAttribute| domain:"com.apple.frontboard" name:"Bootstrap-Background" sourceEnvironment:"(null)">

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

1 participant