Post

Replies

Boosts

Views

Activity

UpdateApplicationContext Not Receiving updates
Hi community. It's my first time trying WatchConnectivity kit. When I attempt to send ApplicationContext from phone, my debug print indicates that updateApplicationContext is working correctly. However, I'm having trouble receiving it form the paired watch simulator as nothing is shown on that end. Here are the code for the Phone Extension:     func sendDataToWatch(data: String) {         state.append(data)         do {             NSLog("sent by phone")             try WCSession.default.updateApplicationContext(["currentstate": state])         }         catch {             print(error)         }     } Here are the code for watch: func session(_ session: WCSession, didReceiveApplicationContext applicationContext: [String: Any]) {         print("Hello")         if let getState = applicationContext["currentstate"] as? [String]{             print("\(getState)")             self.state = getState[0]         }     } Any suggestion would be appreciated!
13
4
5.5k
Mar ’26
White Screen on Launch
Hi Apple Community. I'm currently beta testing my app via TestFlight. When my fellows downloaded the app, some of them's app does not load the UI (blank), but if touching the position the buttons were, the app still responds (like asking for permission and send notifications normally). But the screen keeps blank and the UI seems failed to load. I found 1 iPad Pro and 2 iPhone 11 Pro with this issue (all of them on iOS 14.6). I tired to use simulator to see if problem persists, but app on the simulator seems working normally. I'm using SwiftUI and no LaunchScreenFile was selected. Does anyone got the same issue? How could I fix that? Thanks!
2
0
2.5k
Aug ’21
Create ML not recognizing all samples
Hi folks! My sound classifier is not picking up all the sound samples in the subfolder. They are all .flac .mp3 .wav and .m4a files. I've also double checked that file type is possibly not the reason some samples were not recognized. Since Create ML is a complete blackbox, could anyone tell me how should I pre-process my sound samples so that they could all be recognized by the data loader? Thanks!
0
0
965
Jun ’21
UpdateApplicationContext Not Receiving updates
Hi community. It's my first time trying WatchConnectivity kit. When I attempt to send ApplicationContext from phone, my debug print indicates that updateApplicationContext is working correctly. However, I'm having trouble receiving it form the paired watch simulator as nothing is shown on that end. Here are the code for the Phone Extension:     func sendDataToWatch(data: String) {         state.append(data)         do {             NSLog("sent by phone")             try WCSession.default.updateApplicationContext(["currentstate": state])         }         catch {             print(error)         }     } Here are the code for watch: func session(_ session: WCSession, didReceiveApplicationContext applicationContext: [String: Any]) {         print("Hello")         if let getState = applicationContext["currentstate"] as? [String]{             print("\(getState)")             self.state = getState[0]         }     } Any suggestion would be appreciated!
Replies
13
Boosts
4
Views
5.5k
Activity
Mar ’26
SwiftUI ImageRenderer: How to render async image correctly?
Hi community! I'm currently trying to convert a swiftUI view to an image. However, I can't find a way to properly render the async image within the swiftUI view. Could anyone point me to the right direction? Thanks!
Replies
1
Boosts
1
Views
978
Activity
Feb ’23
White Screen on Launch
Hi Apple Community. I'm currently beta testing my app via TestFlight. When my fellows downloaded the app, some of them's app does not load the UI (blank), but if touching the position the buttons were, the app still responds (like asking for permission and send notifications normally). But the screen keeps blank and the UI seems failed to load. I found 1 iPad Pro and 2 iPhone 11 Pro with this issue (all of them on iOS 14.6). I tired to use simulator to see if problem persists, but app on the simulator seems working normally. I'm using SwiftUI and no LaunchScreenFile was selected. Does anyone got the same issue? How could I fix that? Thanks!
Replies
2
Boosts
0
Views
2.5k
Activity
Aug ’21
Create ML not recognizing all samples
Hi folks! My sound classifier is not picking up all the sound samples in the subfolder. They are all .flac .mp3 .wav and .m4a files. I've also double checked that file type is possibly not the reason some samples were not recognized. Since Create ML is a complete blackbox, could anyone tell me how should I pre-process my sound samples so that they could all be recognized by the data loader? Thanks!
Replies
0
Boosts
0
Views
965
Activity
Jun ’21