[問題] 請問xcode 4.5.2 怎麼讓run的輸出在專案

看板MacDev作者 (Bad_To_The_Bone)時間12年前 (2012/11/26 16:32), 編輯推噓1(106)
留言7則, 2人參與, 最新討論串1/5 (看更多)
標題: 請問xcode 4.5.2 怎麼設定讓 build的binary 檔輸出到project目錄底下 大家好 小弟是新手 連finder 都不太會用的mac新手 剛接觸xcode 在apple store下載了目前的版本4.5.2 然後裝了 iOS 5.1 Simulator iOS 5.0 Simulator Command Line Tool =================== 雖然上面三個東西對於寫一個osx底下的hello world沒什麼關係 但是我都裝了避免日後少東西 由於網路上找到的<<Become an Xcoder>>裡面 介紹到有介面的部分 很多東西都與目前xcode的介面不同 找不太到 所以我想我從簡單的hello world 來開始 1. File-> New-> Project-> OS X-> Application -> Command Line Tool 按下[Next] Product Name : hello Organation Name: xxx Company Identifier: xxx Type 這邊我選了Foundation (我看Become an Xcoder裡面範例用#import <Foundation/Foundation.h> 至於有個預設打勾的 Use Automatic Reference Counting 我不太清楚是否要用 看他預設打勾我就不去變更了 按下[Next] 接著出現要放在哪邊 我選了 文件 按下[Create] 接著在文件裡面就產生了 /User/xxxx/Document/hello /hello /hello.pch /hello.1 /main.m /hello.xcodeproj ================================================== 2.創建之後 最左邊的欄位 hello 1 target, OS X SDK 10.8 hello main.m hello.1 Supporting Files hello-Prefix.pch Framworks Foundation.framework Products hello (目前是紅色的 應該是沒有這個檔案) 點選 hello 1 target, OS X SDK 10.8 中間的部分 PROJECT hello TARGET hello Architectures Build Active Architecture Only Debug YES Release NO 有些可以設定 Building Settings 這個項目 (All Combined) Build Locations Build Products Path build Intermediate Build Files Path build Per-configuration Build Products Path Debug build/Debug Release build/Release Per-configuration Intermediate Build Fi.. Debug build/hello.build/Debug Release build/hello.build/Release 上面這些都是我建構這個project後就會產生的預設設定 由於code很簡單就是NSLog(@"hello world"); 我直接點了左上的Run 之後 就出現了 Build Successed. 之後Products 裡面的hello就變黑了 但是這個執行檔位於 /User/xxxx/Library/Developer/Xcode/DerivedData/hello-一串字/Build/ Products/Debug/hello 我希望他能夠產生 /User/xxxx/Document/hello 目錄內 看到網路上有說要到 1.Preferences -> Building -> Place Build Products in -> Project Directory 2.Preferences -> Building -> Place Intermediate Build Files in -> With build products 但是我在xcode 4.5.2的 Preferences 沒有看到這兩個選項 想請教一下該到哪邊去調整這個設定呢 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 211.72.248.50 ※ 編輯: donkeychen 來自: 211.72.248.50 (11/26 16:33)

11/26 16:36, , 1F
另外請教一下 Build Active Architecture Only
11/26 16:36, 1F

11/26 16:39, , 2F
這邊的選項改了有差嗎 我都改成Yes還是只build出debug
11/26 16:39, 2F

11/27 11:43, , 3F
我不知道你想做什麼 想先問 你有繳錢嘛
11/27 11:43, 3F

11/27 11:44, , 4F
假設有可以去看看 ad-hoc 的發佈
11/27 11:44, 4F

11/27 13:39, , 5F
喔喔 拍謝 我以為你是要發佈 iPhone 的東西 沒注意看到
11/27 13:39, 5F

11/28 17:32, , 6F
喔喔 我想讓他build出來的東西在source code的目錄
11/28 17:32, 6F

11/28 17:33, , 7F
底下 目前一直build到外面 (~\Library下)
11/28 17:33, 7F
文章代碼(AID): #1Gioap8G (MacDev)
文章代碼(AID): #1Gioap8G (MacDev)