After installing Xcode 7 I can't build and run projects anymore as document fails to open

前端 未结 8 2134
忘掉有多难
忘掉有多难 2021-01-03 04:34

EDIT: This question refers to teh pre-release version of Xcode 7, hence it may not be relevant if you are running the currently released version as some issues may have been

相关标签:
8条回答
  • 2021-01-03 04:37

    Try deleting and reinstalling your Xcode beta, it worked for me on Xcode beta 3

    0 讨论(0)
  • 2021-01-03 04:44

    I ran into the same issue with xcode 7 beta 3.

    I had my deployment target set to 8.3. Setting it to 9.0, cleaning the build, and restarting xcode worked for me.

    0 讨论(0)
  • 2021-01-03 04:47

    I am not sure which answer to accept as for me what worked was installing a later beta (beta 5). I had filed a bug to Apple a couple of months ago so I assume they solved this problem by updating Xcode.

    Anyone experiencing this with the current official release?

    I post this as answer for now but if anyone has a more detailed explanation I will be happy to remove my answer and accept yours.

    0 讨论(0)
  • 2021-01-03 04:51

    It seems this is a common issue. Found an answer over at Apple's developer forums:

    https://forums.developer.apple.com/thread/11706

    In case the link goes dead or you have no access, this is the accepted answer:

    Correct Answer by seancook on Jul 21, 2015 5:58 PM

    I experienced this, too, on El Capitan. NIBs wouldn't load, no Sims present, and unable to launch Simulators through the Xcode/Open Developer Tool/Simulator menu. After fighting it for a few hours I've finally got it working. Here's what worked for me (YMMV): I noticed a message in Console.app along the lines of the Simulator runtime not being code signed. I went to the path it described "/Library/Developer/CoreSimulator/Profiles/Runtimes" and removed the runtimes that I had there. They were old runtimes, so I assume that some check in Xcode now applies that didn't previously. Who knows?
    After doing this, I could finally launch the Simulator via the Xcode/Open Developer Tool menu. Unfortunately, the Simulator still wasn't being shown as a run target in my workspace, so I kept spelunking... I then went into the Simulator's Hardware/Devices/Manage Devices menu and added a new iOS9 device. It didn't seem to do anything, so I quit out of Xcode and Simulator.app. I then re-started Simulator.app (via Xcode/ODT/Simulator) and lo and behold the expected iOS9 simulators were displayed. I closed and re-opened Xcode, changed the target OS for my project, and the Sims were finally displayed as run targets.

    HTH.

    0 讨论(0)
  • 2021-01-03 04:53

    First of all, your stack trace does not show anything relevant with the answer which I found, however, my stack trace also seemed me irrelevant. But it worked for me and hope that works for you:

    Someone from Apple staff gave the answer at: https://forums.developer.apple.com/thread/3978

    What was said is "We saw this in the labs at WWDC. The crash was caused by an offending custom color picker. Try removing any custom color pickers you have installed on your system"

    In brief, delete related color picker from your system, close the xcode and relaunch.

    0 讨论(0)
  • 2021-01-03 04:58

    Verify you have the latest Xcode Beta installation with Xcode-beta open click "About Xcode" and check the build number.

    Then check the Current build number of the latest Xcode-beta on the Xcode Downloads Page:

    https://developer.apple.com/xcode/downloads/

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