XCode5.0.1 修改资源文件之后 运行程序,资源文件不自动更新问题

最近更新系统到OSX10.9,xcode也从原来的4.6更新到5.0.1。但是最近项目开发过程常常发现修改得.ccbi和.plist文件没有自动更新到模拟器内。在stackoverflow找以下方法:

1、选中项目

2、选中targets中对应程序的target。

3、Editor->Add build phases->add run script build phases

4、在run script中添加 find ${SRCROOT}/iLostCity/Resources -exec touch {} \; 其中 “iLostCity”是我项目的名字.

5、然后把run script 拖到Complie Resources 之前。

完工~

 

参考:

http://stackoverflow.com/questions/19124083/resource-files-not-updating-with-xcode-5

http://majicjungle.com/blog/123/

----------------------------------------------------------------------------

 2014-1-20更新:

使用脚本方法有点麻烦,其实在xcode 5中的build settings ->build options ->Scan all source files and Includes设置为YES即可! 

 

posted on 2013-11-14 13:25  Ryan_Y  阅读(1082)  评论(0编辑  收藏  举报