VideoPlayer view crashes the Watch Simulator. But same code works on iOS Simulator.
Example code
VideoPlayer(player: AVPlayer(url: URL(string: "https://bit.ly/swswift")!))
Error log
-AVSystemController- +[AVSystemController sharedInstance]: Failed to allocate AVSystemController.
Unable to find class NACVolumeController
CoreSimulator 842.8 - Device: 41mm - Runtime: watchOS 9.0 (20R5307f) - DeviceType: Apple Watch Series 7 - 41mm
Post
Replies
Boosts
Views
Activity
Same code using StoreKit 2 is working fine on iOS but, on WatchOS I can't fetch products. I also tried StoreKit config on local but no luck.
Did not receive any products or error for products request.
Loaded [] products
Error enumerating productid current transactions: Error Domain=ASDErrorDomain Code=509 "No active account" UserInfo={NSLocalizedDescription=No active account
Hi,
We've developed our first visionOS app to be released before February however we got 2 rejections and submitted again but now the app is still stuck "in review" for a month!
Tried to cancel and send again but still same.
App changes to "in review" in a few hours but no one reviews the app.
Apple doesn't tell anything about the status. This is frustrating.
Hello,
We encountered the following error while attempting to upload our visionOS app. Please note that this is not an iOS app; we have specifically built the framework for the arm64 visionOS platform.
Incorrect Platform. You included arm64 executable “XX.app/Frameworks/XX” in your iOS bundle. Only iOS executables can be included.
Hi,
Suddenly product's are not being loaded on WatchOS anymore, no error throwing.
Just empty array response...
Works normal on iOS. Any idea why?
WatchOS 10.5
Hello,
I'm trying to receive location updates on background mode but it only lasts about 10 minutes then it stops when API detected the "isStationary" is true.
Is there any way to continue receiving updates even when the device is stationary?
Btw app is not terminated by the user.
I'm using CLLocationUpdate.liveUpdates(.otherNavigation) API.
CLBackgroundActivitySession is created before calling the liveUpdates.
CLLocationManager:
let manager: CLLocationManager = {
let manager = CLLocationManager()
manager.distanceFilter = kCLDistanceFilterNone
manager.desiredAccuracy = kCLLocationAccuracyThreeKilometers
manager.pausesLocationUpdatesAutomatically = false
manager.activityType = .other
manager.showsBackgroundLocationIndicator = true
manager.allowsBackgroundLocationUpdates = true
return manager
}()
Thank you!
Trying to migrate to Swift 6.
However getting this error when using SwiftUI StoreKit purchase environment.
Sending main actor-isolated value of type 'PurchaseAction' with later accesses to nonisolated context risks causing data races
@Environment(\.purchase) private var purchase
let result = try await purchase(product)
Hello,
After iOS 18 fetchChanges() method of CloudKitSync engine does not work as before. Calling the function doesn't fetch changes always, but it does fetch on iOS 17.
However going background and foreground again fetches changes automatically.