In case someone still looks here... it seems that it is not possible to resolve Ask to buy (by approving, rejecting) in the sandbox.
https://developer.apple.com/documentation/storekit/testing-at-all-stages-of-development-with-xcode-and-the-sandbox
Post
Replies
Boosts
Views
Activity
"Clear Purchase History" used either from device's App Store / Sandbox area, or from App Store Connect, seems to delete purchases, but at the same time it seems that it doesn't really delete all transactions or history of introductory offers properly. If I delete all history for a sandbox user, it does work to get the introductory offer at a later point when clicking on a purchase button in-app (or outside app). However the "isEligibleForIntroOffer" does not return true for those users anymore.
I'm seeing similar problems. I think UI testing in Xcode cloud cannot be used (yet...).
I have simple test code like this:
XCTAssert(buttonBack.waitForExistence(timeout: 1.0))
... so it's supposed to wait for existence of that button for 1 second, and then fail the test if it cannot find the button, right?
It works fine locally (of course), but it also works fine in Bitrise. But when running in Xcode Cloud, it fails there and I have this log:
Just look at the timestamps to the right, it's looking for that button way longer than the specified time. and it even retries a few times before failing the test there.
Submitting to testflight, we got warnings for a notification extension as well, despite having added a privacy manifest for the main app target.
Thanks for this thread.
I also was working on UI tests the other day, and today when I came back the addUIInterruptionMonitor() thing didn't work anymore. Seems like I was using an iOS 16 device that other day, and today an iOS 17. It seems the workaround also worked.
Please fix this. And possibly ping this thread when it is?
Thanks everyone.
We're also having the same issue, and it's still ongoing (about a year later), however the stats tell that this crash only happens to users below iOS 16.4. So it seems fixed (or at least not happening anymore) since iOS 16.4. We also target iPadOS, only 1% of crashes happen there but again no iPadOS crashes since 16.4.
Out of the blue this error suddenly popped up on Xcode, release 15.0.1. The error message is bogus for sure.
What helped was "Product>Clean Build Folder...", then a rebuild+launch to device!
If you're using some kind of VPN in macOS, then one thing to try is to turn that VPN off.
I am having trouble connection iOS 17 devices to Xcode 15 as long as I'm using Cisco's AnyConnect VPN. It seems to be a "kind of" known problem.
What's worse, the feature still almost never works. Especially if you work in environments that require VPN on dev machine as well as iDevice.
Another update. I've been able to reproduce the problem on all of these devices so far, if following a certain procedure.
iPhone 13 Pro max, iOS 16.1.1
iPhone Xs, iOS 16.1.1
iPhone 13, iOS 16.1.1
Open Youtube app.
Play a video in landscape on the iPhone.
While still in landscape, click on the cast button, select Airplay, connect some external device (screen or speaker, does probably not matter)
Disconnect Airplay / play the video on the iPhone again.
Switch to portrait mode.
While in portrait and video is playing, open the Airplay popup again.
Try to tap on an external speaker/screen, but you'll notice the popup is not responsive so you probably cannot choose any device. <<< this is the problem
After restarting the iPhone 13 Pro Max, the issue goes away at first, but after a while it seems that it's coming back. Like after playing a Youtube video in the app in landscape, and then going back to portrait. Very peculiar.
Another factor that seems likely:
Problem only occurring when using iOS 16 SDK to build (Xcode 14)
Seems like I cannot edit the post for some reason so I'll add more info here.
The problem does not appear on iPhone 11 Pro 15.7.1
Crickets...
Me too. With the preview list taps don't work for Apple Watch.