import tuneup.js file not found

前端 未结 1 531
情歌与酒
情歌与酒 2021-01-24 12:17

Using the Xcode iOS Instruments UI Automation tuneup.js javascript library https://github.com/alexvollmer/tuneup_js .

I\'m having challenges understanding the current wo

1条回答
  •  孤街浪徒
    2021-01-24 12:39

    I'm willing to bet that the reason this isn't working is because you created an embedded script in the Instruments document. Instead of choosing "Add > Create Script" in the sidebar of instruments, you need to choose "Add > Import" and import your script file from the file system. That will link the Instruments document to your script file and when you use the #import keyword, it will look in the directory relative to where your script file resides.

    Embedded (as opposed to imported) scripts do not have a "current directory" which is why you need to absolute path to the tuneup.js file.

    0 讨论(0)
提交回复
热议问题