What is the xcodebuild equivalent of Product > Build for > Profiling in Xcode 6.1


I am trying to build my project for profiling because I run into huge issues when I use my current xcodebuild command and try to run through appium. The current xcodebuild command is:

xcodebuild  -destination 'id=12B411' -configuration Debug -target Digital*****UI clean build

When this generates the .app file in the build folder from my project file I put that as the app path in appium and try to launch. Instruments tries to launch with this command:

/Applications/Xcode61.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode61.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w "iPhone 6 (8.1 Simulator)" "/Users/jasminejames/Digital2.0-GitLab/DigitalUI/build/Debug-iphoneos/Digital 2.0.app" -e UIASCRIPT "/Users/jasminejames/Library/Application Support/appium/bootstrap/bootstrap-a4a902c9cce7b6cb.js" -e UIARESULTSPATH /tmp/appium-instruments

Appium then gives the following output:

info: [debug] [INST] Waiting for device to boot...

info: [debug] [INST STDERR] 2014-12-09 15:22:51.393 instruments[28156:478219] WebKit Threading Violation - initial use of WebKit from a secondary thread.

info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: Failed looking up pid of launched process

The simulator launches the app then closes it quickly then fails with the above error.

Help please :frowning: