this may be a stupid question, but while starting to write some automation code for an iOS app I cannot get including files to work. Here's what I do:
- I generate a new project in Instruments based on the Automation template and save it as "MyAutomation.trace"
- I create a new script called
Utils.jsand add some reusable code to it - In the main script I try to include the Utils.js by adding
#import "Utils.js"at the beginning of the file.
When running the main script I get the error:
The #import file 'Utils.js' was not found, as required from the script 'MyAutomation.trace'
I've tried putting the file to an external folder, importing it and using different absolute and relative paths. The Utils.js is in the same directory as the trace file. Does anyone know what I am missing?
Aucun commentaire:
Enregistrer un commentaire