Appium [iOS] Instruments crashed on startup

前端 未结 5 1744
日久生厌
日久生厌 2020-12-21 10:56

Maybe somebody can help me.

When appium tries to run application, the screen flashes with app splash screen, as if appium tries to launch app multiple times. This be

相关标签:
5条回答
  • 2020-12-21 11:25
    Target failed to run: Permission to debug com.myapp.iphone was denied. 
    The app must be signed with a development identity (e.g. iOS Developer).
    

    You application should be signed with developers key. Click here for documentation

    0 讨论(0)
  • 2020-12-21 11:26

    I also struggled with this problem and found that you need to enable UI automation in developer option in you iDevice

    How to enable UI Automation 1. switch off the iDevice, 2. then connect it to the Mac running Xcode 3. before switching it back on to have Developer options appear. 4. tap on developer option and Enable UI automation

    0 讨论(0)
  • 2020-12-21 11:33

    In my case, the following command made my life hell:

    rm -rf $HOME/Library/Developer/Xcode/iOS\ DeviceSupport/*
    

    So don't add it to the build step.

    To fix the issue: Restart device > run Xcode > connect device > build & run the app > stop & quit Xcode

    Now verify launching app without crashing the instruments.

    0 讨论(0)
  • 2020-12-21 11:36

    If you are using iOS Simulator, do the following...

    In Appium, go to Developer Settings, Check Custome Server Flags and write --native-instruments-lib in the text box.

    Now start Appium Server.

    Hope this helps!

    0 讨论(0)
  • 2020-12-21 11:36

    BlockquoteTarget failed to run: Permission to debug com.myapp.iphone was denied. The app must be signed with a development identity (e.g. iOS Developer). Blockquote

    You should give your developer identity while creating the .ipa...

    If you are creating ipa file through terminal, you can follow the given link [blog]: Xcode "Build and Archive" from command line

    0 讨论(0)
提交回复
热议问题