Jee*_*eef 3 xcode unit-testing xcodebuild ios xctool
我在一个奇怪的情况下,我可以xctool运行我的测试,但我无法找出相同的命令行来获得xcodebuild和/或fastlane scan运行我的测试.我有一个只有iPad的应用程序,有一个方案和两个目标(otto和ottoTests)
xctool -scheme otto \
-sdk iphonesimulator \
CODE_SIGN_IDENTITY=""\
CODE_SIGNING_REQUIRED=NO \
-reporter pretty\
-reporter junit:./test-reports/otto.xml\
build test
Run Code Online (Sandbox Code Playgroud)
xcodebuild -sdk iphonesimulator \
-scheme otto \
test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
Run Code Online (Sandbox Code Playgroud)
我得到这个错误
仅构建设备不能用于运行此目标
所以我在这里完全不知道正在运行的是xcodebuild什么xctool.