Xcode project not showing list of simulators

后端 未结 30 2124
隐瞒了意图╮
隐瞒了意图╮ 2020-12-12 18:46

I open my project in Xcode 6.1. When I try to run the project, the button is grayed out. When I try to go to Product > Clean, the option is grayed out. When

相关标签:
30条回答
  • 2020-12-12 19:02

    Also check the iOS Deployment Target under build settings. I was using Xcode 6.3 while the deployment target was set to iOS 8.4. I got the list of simulators as soon as I set it to iOS 8.3 enter image description here

    0 讨论(0)
  • 2020-12-12 19:02

    I ran into another situation where this can occur. I work with a team we use Xcode server for continuous integration. The server wasn't seeing any simulators, but only for one project. I eventually determined that this was due to the fact that the version of Xcode on our server was one release earlier, and the Xcode project was set to build to the newest version available. Simply updating Xcode solved the issue for us.

    0 讨论(0)
  • 2020-12-12 19:04

    Make sure that the project you are trying to run has deployment target equal to or less then the SDK version of your Xcode. In my case I tried to run a project which was built using iOS8.4 but I have Xcode6.1 with SDK version 8.1

    I changed the deployment target to 8.1 and it start showing me simulators.

    P.S before doing this, make sure that your code and external libraries are compatible with your new deployment target, else you have to update your Xcode.

    0 讨论(0)
  • 2020-12-12 19:04

    Go to Window then Devices and press the plus button at the bottom left to add a device and select the simulator which are required.This worked for me.

    0 讨论(0)
  • 2020-12-12 19:05

    Same Problem happened with me.. When I updated from Xcode 8 Beta 3 to Xcode 8 Beta 4, But I resolved it by this way..

    1. Go to Window -> Devices

    you can see all Devices and Simulators here

    1. Just right click on any device or simulator
    2. Tick on Show in Destination Menu (Even it is already checked, then click it twice, It may be refresh things)

    If above does not work.. as if you do not see any simulators, then..

    1. Change(degrade) the minimum deployment target of app to 8.3(not necessary)
    2. restart xcode

    It worked for me.. Hope will be helpful for someone later..

    0 讨论(0)
  • 2020-12-12 19:07

    I could not find any solution that would fix my issue. All simulators were there for all projects but the one that I needed them.

    Solution:

    Build Settings -> Architectures -> Supported Platforms:

    changed from iphoneos to iOS

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