skip to Main Content

AVPlayer / AVAudioPlayer – Play audio fileURL from iCloud Drive (work on simulator but not iPhone) + (OSStatus error -54.) – Ios swift

I'm making Audio Player. Importing file from iCloud Drive using .fileImporter. I get file URL that looks like this: file:///private/var/mobile/Library/Mobile%20Documents/com~apple~CloudDocs/_Storage/Audio-books/%D0%91%D1%80%D0%B5%D0%BD%D0%B4%D1%8F%D1%82%D0%B8%D0%BD%D0%B0/Audiobook.mp3" Then I pass it to audio player (tried AVPlayer and AVAudioPlayer). Both works on iOS simulator. On the device after…

VIEW QUESTION

How to use @Viewbuilder and return view in swiftUi? – Ios swift

I have overlay with below code .overlay(abcViewModel.isError ? AnyView(DialogBoxOneButton(accessibilityID: "dialogboxes", dialogboxType: .error, dialogboxTitle: "title", dialogboxBody: "body", dialogboxFirstButtonTitle: "title", dialogboxFirstButtonCallback: { action() abcViewModel.isError = false }, isDialogboxFirstButtonClicked: .constant(true))) : AnyView(EmptyView())) I am trying to avoid use of Anyview and did below…

VIEW QUESTION

Multiple commands produce error in Xcode 13 – Ios swift

I have been stuck on this bug for quite a while now so any help would be appreciated. When I try to build my app I keep getting the following build error: Multiple commands produce '/Users/my_user_name/Library/Developer/Xcode/DerivedData/Expense_Tracker_Final-aujeprcwgnjmizeaueitvhpegrzf/Build/Products/Debug-iphonesimulator/Expense Tracker Final.app': Target 'Expense…

VIEW QUESTION
Back To Top
Search