启动屏幕出现并在定位模拟器时反复消失。我在脚本上运行这些步骤:
## created an archive
xcodebuild clean archive -workspace APP.xcworkspace -scheme APP -archivePath $ARCHIVE_PATH
## export archive
xcodebuild -exportArchive -archivePath $ARCHIVE_PATH.xcarchive -exportPath $ARCHIVE_PATH -exportFormat APP -exportProvisioningProfile app-App-Adhoc-Distribution
## run the iPhone 6 Plus simulator
xcrun instruments -w "iPhone 6 Plus (8.3 Simulator)"
## install the app on the simalutor
xcrun simctl install booted /pathtoAPP/APP.app
## run test.js
xcrun instruments -w "iPhone 6 Plus (8.3 Simulator)" -t /tmp/UIAutomation/APP.tracetemplate /pathtoAPP/APP.app -e UIASCRIPT "/pathtoTest/test.js"
我收到了这个错误:
Instruments Usage Error : No template (-t) specified
instruments, version 6.3 (57536) usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]
Instruments Trace Error : Target failed to run: Failed looking up pid of launched process
有什么想法吗? 干杯