target -> click tab to Bulid Phases -> expand the section copy Bundle Resources -> now find all files bin bundle resources of your project check your js files not copied,so, click + button and js files your project!

now run the project working perfectly!

 

添加js文件

after add js file in your project below screen shot:

添加js文件

相关文章: