When starting a new TVOS project and try to import AVKit it says no such module available.
I added them on Frameworks, Libraries and Content - still nothing.
Double checked if they are in BuildPhases - Link Binary with LibrariesBuild Phases
Cleaned build folder and Derived Data. Nothing Worked. According to Apple's documentation it is supposed to be available for TVOS, but i simply cannot get it to be available.
When I start a new multiplatform or iOS project it is possible to import it, just not for TVOS, don't know what to do.Didn't have to add any framework manually, simply worked.
No issues when starting a new ios project Project settings iOS.
What's going on here?
I downloaded Xcode 14.3 and renamed it to Xcode_14_3 so I had both versions of Xcode on my machine... launched it... and the project worked. I then launched 14.3.1 and used the "On Disk" option of the project when it asked. No more live compile issue with AVKit or AVFoundation. It now works for me...
Something must have got corrupted with the project files when I updated Xcode, not sure. Yes I cleaned, and built. Hope that helps.