Unable to play MP4 video file from mainBundle

前端 未结 7 594
挽巷
挽巷 2020-12-15 05:13

So I\'m trying to play a simple intro animation video file that I\'ve dragged into my project in XCode and therefore should be able to play from my mainBundle, right?

<
7条回答
  •  情深已故
    2020-12-15 05:37

    Xcode 9

    Here is an updated image.

    Go to Build Phases > Copy Bundle Resources and see if your file is there. If it isn't you can add it by pressing the "+" button.

提交回复
热议问题