添加js文件
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!
after add js file in your project below screen shot: