在build phases裡面新增run script,新增的**如下:
_target_build_contents_path=$target_build_dir/$contents_folder_path
echo _target_build_contents_path: $_target_build_contents_path
echo pwd: $pwd
echo cleaning $_target_build_contents_path/
#函式作用:重新整理資源資料夾,解決xcode不能重新整理資源資料夾的bug
#引數1:傳入要操作的資料夾
function operation_folder()
/$1/"
mkdir -p "$/$1/"
#判斷資料夾不為空,才進行複製,防止cp命令報錯
directory=$pwd/../resources/$1/
echo directory: $directory
if [ "`ls $directory`" != "" ]; then
cp -rlp $directory "$/$1/"
echo operation_folder:$1 completed!fi}
operation_folder 資源資料夾;
Xcode中的Version和Build的區別
version 應用程式發布版本號 version對應的是cfbundleshortversionstring。version一般由產品部門確定,版本號是由分隔的整數組成的字串,一般有2段或者3段式,如 1.2,1.2.3 二段式 第乙個段 主版本號 大功能的新增或者有迥異的變化 第二個段 副版本號...
Xcode中的Version和Build的區別
version對應的是cfbundleshortversionstring。version 一般由產品部門確定,版本號是由分隔的整數組成的字串,一般有2段或者3段式,如 1.2,1.2.3 二段式 第乙個段 主版本號 大功能的新增或者有迥異的變化 第二個段 副版本號 既包含小功能更新也會包含 bug...
XCode 預設原始檔和build目錄
假設我們以hfe mac使用者登入mac系統,在xcode中建立乙個名為 test 的 command line 的工程,不改工程路徑,則預設的工程路徑是 預設的build目錄在 file project settings 中有顯示 上面建立的名為 test 的工程的build目錄可能就位於 tes...