我跟克里斯·漢森的advice約在Xcode 3.1調試框架單元測試,而是試圖運行自定義的可執行文件,程序崩潰時,說明下面的錯誤消息[爲構建產品的實際位置取代$(BUILD_PRODUCTS_DIR)。是什麼導致在Mac OS X上找不到合適的圖像錯誤?
2009-03-02 19:56:03.414 otest[28059:10b] Error loading
$(BUILD_PRODUCTS_DIR)/Debug/Unit Tests.octest/
Contents/MacOS/Unit Tests: dlopen($(BUILD_PRODUCTS_DIR_)/Unit
Tests.octest/Contents/MacOS/Unit Tests, 265):
no suitable image found. Did find:
$(BUILD_PRODUCTS_DIR)/Unit Tests.octest/Contents/MacOS/Unit Tests:
mach-o, but wrong architecture
2009-03-02 19:56:03.561 otest[28059:10b] The test bundle at
$(BUILD_PRODUCTS_DIR)/Unit Tests.octest could not be loaded because
it is built for a different architecture than the currently-running
test rig (which is running as unknown).
2009-03-02 19:56:03.568 otest[28060:203] *** NSTask: Task create for path
'$(BUILD_PRODUCTS_DIR)/Unit Tests.octest/Contents/MacOS/Unit Tests'
failed: 8, "Exec format error". Terminating temporary process.
我的問題是,什麼導致找不到合適的圖像。發現:...錯誤消息,我怎樣才能讓otest可執行文件正確運行,以便我可以調試我的框架單元測試?
是否有更簡單的方法使用otest與做出來的呢?
工作就像一個魅力。謝謝,彼得! – 2009-03-06 21:01:58