Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automation.tracetemplate does not exist #1

Closed
xream opened this issue Sep 28, 2012 · 3 comments
Closed

Automation.tracetemplate does not exist #1

xream opened this issue Sep 28, 2012 · 3 comments

Comments

@xream
Copy link

xream commented Sep 28, 2012

$ ./runTests.sh ./sample/alltests.js "/Users/xream/Library/Application Support/iPhone Simulator/6.0/Applications/37FC8883-4C80-4556-A834-9F044005DF9F/test.app"

显示:
/Applications/Xcode.app/Contents/Developer
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate
Instruments Usage Error : The specified template 'file://localhost/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate' does not exist.
instruments, version 4.5 (4523)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]

@guanbo
Copy link

guanbo commented Sep 28, 2012

Try this

xcodePath=xcode-select -print-path

.....

traceTemplate=$(find ${xcodePath%/*} -type f -name "Automation.tracetemplate")

Full version

@houlianpi
Copy link
Contributor

Xcode4.5 changed the path. So I will do something changed to cover this changed

@houlianpi
Copy link
Contributor

@guanbo Thank You

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants