我正在尝试从命令行为我的 iOS 应用程序运行 MonkeyTalk 脚本。该脚本在 MonkeyTalkIDE 中成功运行并在模拟器上执行。
我在test.mt的同一目录中有build.xml和Monkey-tal.jar文件
build.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project name="TEST3" xmlns:monkeytalk="antlib:com.gorillalogic.monkeytalk.ant">
<target name="myScript">
<monkeytalk:run agent="iOS" script="test.mt" />
</target>
</project>
我正在运行命令:
ant -lib monkeytalk-ant.jar test.mt
我收到错误消息:
MacBook-Pro-2948:TEST3 Developer$ ant -lib monkeytalk-ant.jar test.mt
Buildfile: /Users/Developer/Downloads/monkeytalk 2/MonkeyTalkIDE/MonkeyTalkIDE.app/Contents/MacOS/workspace/TEST3/build.xml
BUILD FAILED
Target "test.mt" does not exist in the project "TEST3".
总时间:0秒
任何想法?