开始真机测试Demo时提示错误
info: [debug] Couldn't find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller
error: Could not initialize ideviceinstaller; make sure it is installed and works on your system
解决方法:
brew install --HEAD ideviceinstaller
真机测试无限闪退
info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: Permission to debug cn.com.10jqka.IHexin was denied. The app must be signed with a development identity (e.g. iOS Developer).
解决方法:线上应用一般为release版本,需要使用Debug版本
详细参考:Can't launch my app in Instruments: At least one target failed to launch
运行Python脚本报错
SyntaxError: Non-ASCII character '\xe7' in file CodeMakerTest.py on line 24, but no encoding declared; see [http://python.org/dev/peps/pep-0263/](http://python.org/dev/peps/pep-0263/) for details
解决方法:在脚本文件(第一行)添加
#coding:utf-8
appium真机测试无法启动app且报错
error: Could not pre-launch appium: Error: Instruments crashed on startup
解决方法:
-
设置-开发者-Enable UI Automation
需要为打开状态 - 若做了第一步依然报错,先试着使用将手机用Xcode进行Demo真机测试