Hi,
I want to delete an application from my device using xcrun devicectl command. I installed application using xcrun devicectl and I want to be able to delete it when I need but I cannot find proper arguments for command.
Thank you!
Post
Replies
Boosts
Views
Activity
Hello,
I have a test bundle in my application and one of the strong request of our project is to run ui tests from command line having just application build.
How to run unit tests on .app file that has a test target?
What we tried
xcrun devicectl device install app --device <device-identifier> <UITestBundle-Runner.app>
xcrun devicectl device process launch --device <device-identifier> --start-stopped <com.apptestbundle-Runner.xcrun>
It launches and is waiting pid to be attached.
In lldb:
device select <device-identifier>
device process list
Seeing process 'UITestBundle-Runner' pid.
device process --pid 'pid id'
It attaches and I can see 'debugserver' in the pid list, but it does not start testing and I need tests to start and run.
Thanks!
Hi 👋
I need assistance in attaching the to the pid in terminal.
In lldb mode I am connecting to the pid using
device process attach --pid <pid-id>
which gives me an error
Process 505 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x00000001d505c808 libsystem_kernel.dylib`mach_msg2_trap + 8
libsystem_kernel.dylib`mach_msg2_trap:
-> 0x1d505c808 <+8>: ret
Thanks
The connection to service named com.apple.testmanagerd was invalidated: failed at lookup with error 3 - No such process.
Currently I am struggling with this problem while running tests runner
`xcrun devicectl device process launch --console --device '000000000000000000000' 'com.gl.RunnerPOC-Watch-AppUITests.xctrunner
What may be causing the issue?
Thanks in advance
Is it planned to add ability to run Xcode test bundles using devicectl tool? If it is possible now how to achieve it?
Is there any other ways to run tests bundle .app file using command line?
I need to run my tests bundle independently from Xcode. Previously, I used to deploy it and run as regular iOS application, it would execute test cases and display 'Automation running' label. I needed to execute tests some time after deploy and in different time of the day, so it is a problem for my team right now. So, UI Tests Runner app file does not launch and 'Automation Running' label is not displayed, is there any possible ways to run tests as it was or other ways to run tests not from Xcode.
Hi
Since update to watchOS 9.1 I am having issues using xcodebuild commands on my real Apple Watch, It is just not visible, however, it is always visible from Xcode UI.
Sometimes, when I restart my iPhone it picks up the Apple Watch destination - it happens in rare cases, mostly I see this result.
xcodebuild -workspace MyApp.xcworkspace -scheme 'MyApp WatchKit App' -destination 'platform=watchOS,id=Watch's ID'
(null) needs to connect to determine its availability.
Check the connection between the device and its companion iPhone, and the connection between the iPhone and Xcode.
Both devices may also need to be restarted and unlocked.```
Hi everyone,
I have questions about UITesting in Apple Watch once again.
Just discovered that apparently there is no API to press Side Button in XCUITest framework, is this correct?
If yes, if there is another way to show "dock" menu or "application stack" on the Apple Watch?
Thank for your help and cheers
Hey everyone,
I need a bundle id of 'Clock' app on Apple Watch to use during test writing using XCUITest.
Would appreciate any direct answers or suggestions how to get bundle id from Apple Watch.
Cheers :)
Hi guys,
Basically, my question - Is there a way to tap on Apple Watch's complication in XCUITest?
I am just looking for the native watchOS applications bundle ids.
For example:
for iPhone: "com.apple.news" and what is for Watch: ???
I tried "com.apple.news.watchkitapp" which doesn't work. Maybe someone know how to help me?
Hi guys,
Recently I updated my devices to the newest version and with this update I am having troubles to run xcodebuild commands when destination is my Apple Watch.
Have anyone experienced such problems? let me know
I am struggling with the new issue (again) related to the UITesting on Apple Watch. Currently, I'm looking into the opportunity to deploy .app/.ipa file of UITests-Runner directly on Watch. So, I'm not taking about running tests (for which I can easily use XCODEBUILD) or deploying .app/.ipa file of my application itself on Apple Watch (which could be achieved via iOS-deploy), my current problem is to deploy tests runner into real Apple Watch. Any suggestions, thoughts here? Will appreciate any help.
Hi guys,
I just want to make my pod available only for one build configuration in my project.
I assume I need to do this in the Podfile.
Is there a way to do so?
Thanks
Hi
I am working on the iPhone + Apple Watch development and I am facing this issue a few days in a row.
I know how to fix it - unpair and then pair Apple Watch again, but it is not a solution at all.
(Yes, I'm certain that my watch is paired)
Maybe someone knows how to fix it?