let path = Bundle.main.path(forResource: "demo", ofType: "mp4") ?? "" let localURL = URL(fileURLWithPath: path) 解决方法: 在Targets -> Build Phases -> Copy Bundle Resources里面导入资源文件,运行项目
bundler esource.png