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即可! 

  • 相关阅读:
    合并果子
    在线最小值问题
    沙盒机制(sandBox)
    简单地址簿?
    浅拷贝、深拷贝
    NSFileManager、NSFileHandle
    NSDate、NSCalendar、NSDateFormatter
    归档
    类目、延展、协议
    动态类型
  • 原文地址:https://www.cnblogs.com/kaisne/p/XCode5.html
Copyright © 2011-2022 走看看