Oh boy. This happened to me. I finally stumbled on my fix. Hope it helps you.
I added the AVKit.framework under Targets>app>General>Frameworks, Libraries, and Embedded Content.
When I built and ran app, it worked. I don't have a clue why just importing AVKit doesn't work.