iOS simulator: could not hardlink copy. Wrong path in my filesystem?

前端 未结 11 953
日久生厌
日久生厌 2021-01-07 22:48

I am using Xcode Version 6.1 (6A1052d)

I am trying to launch an app on the simulator.

The first time it always works fine. If I want to launch a second time,

相关标签:
11条回答
  • 2021-01-07 22:53

    Find the InfoPlist.strings files. And check if the version of "CFBundleShortVersionString" = "1.1"; coincides with the version of your app in Info.plist

    0 讨论(0)
  • 2021-01-07 22:53

    I had this issue too for a long time. I tried most of these solutions. I'm sure they worked for some people, but not for me...

    Then I noticed if you go to Project Settings -> Build Phases -> Embed Frameworks there is a flag for Copy only when installing... I ticked it. This problem went away.

    0 讨论(0)
  • 2021-01-07 22:54

    In my case, it was a file that was not included in the application that had the emulator. Just remove the emulator app, clean, recompile and start it. When adding the file, and make sure the "Copy items if necessary" check box is enabled

    0 讨论(0)
  • 2021-01-07 23:00

    This fixed it for me:

    SIMULATOR_NAME="iPad Air 2"
    # Erase a device's contents and settings
    xcrun simctl erase "${SIMULATOR_NAME}"
    

    Thanks to https://encyclopediaofdaniel.com/blog/xcode-6-reset-simulators-from-the-command-line/ for the explanation!

    My env: xcode 8.3.1 iOS 10.3 (14E269) SIMULATOR_NAME="iPad Air 2"

    0 讨论(0)
  • 2021-01-07 23:03

    I faced this error while leaving Build field blank using only Version on General tab. The error has gone after setting a build value and reinstalling the app.

    0 讨论(0)
  • 2021-01-07 23:04

    I experienced this issue in a multi-target project. After duplicating a target I forgot to change the "Product Bundle Identifier". Once I changed this parameter into a unique value (see tab "Build Settings"), the error disappeared.

    EDIT

    After changing the "Product Bundle Identifier" you must erase all content and settings from the simulator and clean your build folder in Xcode (Cmd+Shift+K).

    I'm using Xcode 10.1.

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