• 手动安装 app 是可以的


  • 一直都是报这个错,试了很多方法也没解决好,求大神帮看看

    日志信息
    Launching Appium with command: '/Applications/Appium.app/Contents/Resources/node/bin/node' appium/build/lib/main.js --address "127.0.0.1" --pre-launch --debug-log-spacing --platform-version "9.3" --platform-name "iOS" --app "com.joan.wrz" --udid "daddfba84c5cfce3d48d3c67b7324e4688997733" --no-reset --show-ios-log --device-name "iPhone 5s" --native-instruments-lib

    [Appium] Welcome to Appium v1.5.3

    [Appium] Non-default server args:

    [Appium] address: '127.0.0.1'
    [Appium] launch: true
    [Appium] debugLogSpacing: true
    [Appium] platformName: 'iOS'
    [Appium] platformVersion: '9.3'
    [Appium] deviceName: 'iPhone 5s'

    [Appium] app: 'com.joan.wrz'
    [Appium] udid: 'daddfba84c5cfce3d48d3c67b7324e4688997733'
    [Appium] noReset: true
    [Appium] nativeInstrumentsLib: true

    [Appium] showIOSLog: true
    [Appium] Deprecated server args:
    [Appium] --platform-name => --default-capabilities '{"platformName":"iOS"}'
    [Appium] --platform-version => --default-capabilities '{"platformVersion":"9.3"}'
    [Appium] --device-name => --default-capabilities '{"deviceName":"iPhone 5s"}'
    [Appium] --app => --default-capabilities '{"app":"com.joan.wrz"}'
    [Appium] -U,--udid => --default-capabilities '{"udid":"daddfba84c5cfce3d48d3c67b7324e4688997733"}'
    [Appium] --no-reset => --default-capabilities '{"noReset":true}'
    [Appium] --native-instruments-lib => --default-capabilities '{"nativeInstrumentsLib":true}'
    [Appium] --show-ios-log => --default-capabilities '{"showIOSLog":true}'
    [Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:

    [Appium] platformName: 'iOS'

    [Appium] platformVersion: '9.3'
    [Appium] deviceName: 'iPhone 5s'
    [Appium] app: 'com.joan.wrz'
    [Appium] udid: 'daddfba84c5cfce3d48d3c67b7324e4688997733'
    [Appium] noReset: true
    [Appium] nativeInstrumentsLib: true
    [Appium] showIOSLog: true

    [Appium] Appium REST http interface listener started on 127.0.0.1:4723

    [HTTP] --> GET /wd/hub/status {}
    [MJSONWP] Calling AppiumDriver.getStatus() with args: []

    [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.3"...

    [HTTP] <-- GET /wd/hub/status 200 31 ms - 83

    [HTTP] --> GET /wd/hub/status {}

    [MJSONWP] Calling AppiumDriver.getStatus() with args: []

    [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.3"...
    [HTTP] <-- GET /wd/hub/status 200 15 ms - 83

    [HTTP] --> GET /wd/hub/sessions {}
    [MJSONWP] Calling AppiumDriver.getSessions() with args: []

    [MJSONWP] Responding to client with driver.getSessions() result: []

    [HTTP] <-- GET /wd/hub/sessions 200 4 ms - 40

    [HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"platformName":"iOS","newCommandTimeout":"7200","app":"/Users/wyb/Library/Developer/Xcode/DerivedData/wrz-henmzyssrrpjrtanpnymyqmvlopz/Build/Products/Debug-iphoneos/微融资.app","platformVersion":"9.3","deviceName":"iPhone 5s","bundleId":"com.joan.wrz","automationName":"Appium","udid":"daddfba84c5cfce3d48d3c67b7324e4688997733"}}

    [MJSONWP] Calling AppiumDriver.createSession() with args: [{"platformName":"iOS","new...

    [Appium] Creating new IosDriver session

    [Appium] Capabilities:

    [Appium] platformName: 'iOS'

    [Appium] newCommandTimeout: '7200'
    [Appium] app: '/Users/wyb/Library/Developer/Xcode/DerivedData/wrz-henmzyssrrpjrtanpnymyqmvlopz/Build/Products/Debug-iphoneos/微融资.app'
    [Appium] platformVersion: '9.3'
    [Appium] deviceName: 'iPhone 5s'
    [Appium] bundleId: 'com.joan.wrz'

    [Appium] automationName: 'Appium'
    [Appium] udid: 'daddfba84c5cfce3d48d3c67b7324e4688997733'
    [Appium] noReset: true
    [Appium] nativeInstrumentsLib: true
    [Appium] showIOSLog: true
    [BaseDriver] Capability 'newCommandTimeout' changed from string ('7200') to integer (7200). This may cause unexpected behavior

    [BaseDriver] Session created with session id: 575f900e-a6ab-4778-96b4-c7e9fb4286f9

    [debug] [iOS] Not auto-detecting udid.

    [BaseDriver] Using local app '/Users/wyb/Library/Developer/Xcode/DerivedData/wrz-henmzyssrrpjrtanpnymyqmvlopz/Build/Products/Debug-iphoneos/微融资.app'

    [debug] [iOS] Removing any remaining instruments sockets

    [debug] [iOS] Cleaned up instruments socket /var/folders/06/69krqdpj2p1gnyx5w100nsq00000gn/T/instruments_sock

    [debug] [iOS] No language specified. Using default strings

    [debug] [iOS] Strings file not found. Looking in 'en.lproj' directory
    [iOS] Could not file localizable strings file 'Localizable.strings'!

    [debug] [iOS] Creating instruments
    [debug] [UIAuto] Preparing bootstrap code

    [debug] [UIAuto] Dynamic bootstrap dir: /Users/wyb/Library/Application Support/appium/bootstrap
    [debug] [UIAuto] Dynamic env: {"nodePath":"/Applications/Appium.app/Contents/Resources/node/bin/node","commandProxyClientPath":"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-uiauto/build/lib/bin/command-proxy-client.js","instrumentsSock":"/var/folders/06/69krqdpj2p1gnyx5w100nsq00000gn/T/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":false,"autoDismissAlerts":false,"sendKeyStrategy":"grouped"}

    [debug] [UIAuto] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
    ...

    [debug] [UIAuto] Dynamic bootstrap path: /Users/wyb/Library/Application Support/appium/bootstrap/bootstrap-6958804ed19bc6a4.js

    [debug] [UIAuto] Reusing dynamic bootstrap: /Users/wyb/Library/Application Support/appium/bootstrap/bootstrap-6958804ed19bc6a4.js
    [debug] [iOS] Reset not set, continuing
    [debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
    [debug] [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog'

    [debug] [iOS] Creating iDevice object with udid daddfba84c5cfce3d48d3c67b7324e4688997733

    [debug] [iOS] App is not installed. Will try to install.

    [MJSONWP] Encountered internal error running command: Error: Installing /Users/wyb/Library/Developer/Xcode/DerivedData/wrz-henmzyssrrpjrtanpnymyqmvlopz/Build/Products/Debug-iphoneos/微融资.app failed
    at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/node_modules/node-idevice/main.js:159:6
    at ChildProcess.exithandler (child_process.js:193:7)
    at emitTwo (events.js💯13)
    at ChildProcess.emit (events.js:185:7)
    at maybeClose (internal/child_process.js:850:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)

    [HTTP] <-- POST /wd/hub/session 500 1182 ms - 278