zoukankan      html  css  js  c++  java
  • 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即可! 

  • 相关阅读:
    搞懂树状数组
    C#接口(Interface)
    C#接口(Interface)
    C#运算符的重载
    C#和C++的区别(一)
    hdu1874 畅通工程续
    hdu1874 畅通工程续
    C#多态性
    C#多态性
    C#继承
  • 原文地址:https://www.cnblogs.com/kaisne/p/XCode5.html
Copyright © 2011-2022 走看看