I have tried so many things and I also have looked through the internet but I could not find a way to resolve the following issue. Xcode shows me this error:
Use of unresolved identifier 'AVAsset'
even though I have imported AVFoundation and also have imported the framework AVFoundation via Build phase.
Here is the picture of the error:
Here is my code.
The main code is in the InterfaceController.swift file
I hope that someone can help me out. Thank you very much
The AVAsset from AVFoundation framework is not supported by WatchOS SDK. You should use WKAudioFileAsset