Post

Replies

Boosts

Views

Activity

Play sound on Apple Watch using SwiftUI
Hi all, Im making a standalone app for the Apple Watch and Im trying to play sound there, after trying all I could think of I only get errors with it. I wonder if I should import the sound file in a specific way or folder I made a simple test with the code Im running in app, the test sound is called 5.wav and is in assets folder, tried also in other folder or in folder inside assets folder The message is not being printed and get some error related to sound not being loaded "Watch App[53825:678174] void * _Nullable NSMapGet(NSMapTable * _Nonnull, const void * _Nullable): map table argument is NULL " import SwiftUI import AVFoundation struct ContentView: View { @State var avp:AVAudioPlayer? var body: some View { VStack { Button("PLAY") { guard let url = Bundle.main.url(forResource: "5", withExtension: "wav")else { return } try? avp=AVAudioPlayer(contentsOf: url) avp?.play() print("printing") } } .padding() } }
0
0
1k
Dec ’22
Keep running timer-like app in watchOS standalone app with swiftUI
I have been making a "simple" app which is like a timer that will trigger alarm after a fixed time and run just in Apple Watch with no iPhone companion app needed, Im using Timer.publish for this and checking when the timer updates (given the step value) on received, but the issue I keep observing is that it works in simulator but in real device when it goes to standby (screen turns off) the app freezes and goes back running when it recovers the focus, I have been searching and found not many good alternative to this as people suggest to either use the iphone to trigger event on the watch or do other kind of event like set it as a workoutsesion but this still will not work in this case as the app needs to be like any timer or alarm app that works even when its on background, how can this be done in SwiftUI? I assume this is doable as some apps work in that way and not only Apple's apps of course. Thanks for any clue about this, Im lost really
0
0
469
Dec ’22
Trigger several notifications in short period of time in Apple Watch
Hi all, Im making an app that at some point will play like alarm but for this I will use several notifications in a row like playing 10 in 5 seconds, but when I try to trigger these notifications (Im using local notifications) these notifications are grouped and I only get to hear one bell, how could this be done? I have seen other app do this in Apple Watch and is standalone app too so I know its possible but I dont know how, thanks for any help
0
0
504
Dec ’22
Issue in Xcode when trying to do Product>>Archive
Hi all, Im trying to upload an app to the App Store, the app is made in Unity, well I built the app there and then open the Xcode project, from there set some fields and now when I have to go to Product>> Archive I get an error always, could you please tell me what is this and how to fix? unsupported option -mno- thumb for target arm64-apple-ios 15.6 Im using Xcode 16.4 which I think is the latest version released. Thanks for any clue about this, Im really lost
1
0
107
Jun ’25
About posting app in iOS and MacOS
Hi all, Well Im about to publish an app for iOS and the process is almost done but I don't know how is it to publish the same for MacOS, I mean, I can generate the app file from my engine (Unity) and even run it, but from there what are the steps? do we need to pass this to Xcode too? if so please direct me to where its explained because I couldn't find it, thanks a lot for any help
3
0
72
Jun ’25
ITMS-91061: Missing privacy manifest
Hi all, Im trying tu publish an app for iOS and I get it rejected by the lack of this privacy manifest, but unless I understood this wrong, this manifest is needed for external tools used, or maybe Im wrong, Im publishing an app made in Unity, so in this case, one has to include a privacy manifest by default? Sorry Im lost in all these terms, so I don't know if im asking something redundant, if you know how to fix this issue please tell me or direct me to the process because I haven't been able to identify the issue. Thanks a lot for any clue beforehand really
0
0
79
Jun ’25