我已將Jenkins集成iOS項目。要運行自動化測試用例,我在shell腳本中使用下面的代碼。無法爲Calabash + Jenkins自動檢測APP_BUNDLE_PATH
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer/
export CODESIGN_ALLOCATE=`xcode-select -print-path`/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
xcodebuild -alltargets clean
xcodebuild -alltargets
xcodebuild -sdk iphonesimulator \
-project Myapp.xcodeProj \
-scheme Myapp-cal \
ONLY_ACTIVE_ARCH=NO \
CONFIGURATION_BUILD_DIR="$WORKSPACE/build" \
clean build
cucumber
自動化測試在xcode中正常工作,正如Jenkins得到下面的錯誤一樣。
無法自動檢測APP_BUNDLE_PATH。您是否爲 模擬器構建了您的應用程序?搜索目錄: /Users/test/Library/Developer/Xcode/DerivedData/Myapp-fayplezntrxmdqeteknsfkkvtzla/Build/Products 請從Xcode構建您的應用程序您應該構建-cal目標。
幫助表示讚賞
我跟着鏈接1中提到的步驟,現在是工作的罰款。謝謝.. – Raghav 2014-10-01 06:10:40