programing

Xcode 프로젝트에 시뮬레이터 목록이 표시되지 않음

nasanasas 2020. 9. 17. 07:58
반응형

Xcode 프로젝트에 시뮬레이터 목록이 표시되지 않음


Xcode 6.1에서 프로젝트를 엽니 다. 프로젝트를 실행하려고하면 버튼이 회색으로 표시됩니다. 로 이동하려고 Product > Clean하면 옵션이 회색으로 표시됩니다. 시뮬레이터 목록을 볼 때 My Mac일반적으로 iOS Device. 시뮬레이터를 다시 가져 오려면 어떻게해야합니까?


프로젝트 이름을 클릭합니다 (실행 버튼 오른쪽). 세 가지 옵션이 나타납니다.

  1. 구성표 편집
  2. 새로운 계획
  3. 계획 관리

"새 구성표"를 클릭 한 다음 팝업 창에서 "확인"을 클릭 할 수 있습니다.

시뮬레이터 목록이 다시 나타납니다.


실행하려는 프로젝트가 deployment targetXcode의 SDK 버전과 같거나 그 이하 인지 확인하십시오 . 제 경우에는 사용하여 빌드 한 프로젝트를 실행하려고했지만 iOS8.4Xcode6.1과 SDK 버전 8.1이 있습니다.

배포 대상을 8.1로 변경하고 시뮬레이터를 표시하기 시작합니다.

PS이 작업을 수행하기 전에 코드와 외부 라이브러리가 새 배포 대상과 호환되는지 확인하십시오. 그렇지 않으면 Xcode를 업데이트해야합니다.


시도해보세요, 매력처럼 작동했습니다! 나를 위해

아래 단계를 따르십시오

1) 아래와 같이 파생 데이터 정리 ,

 rm -rf ~/Library/Developer/Xcode/DerivedData/

OR

 Xcode---> Preferences--->Location--->Derived Data

파생 데이터

2) 배포 정보에서 배포 대상 변경

그것은의 동일 또는 더 적은 다음 SDK의 버전 엑스 코드

여기에 이미지 설명 입력

3) Xcode 종료

여기에 이미지 설명 입력

4) Xcode다시 열면 시뮬레이터 목록이 표시됩니다.

여기에 이미지 설명 입력

이것이 누군가에게 도움이되기를 바랍니다.


내 문제를 해결할 해결책을 찾을 수 없습니다. 모든 프로젝트에 모든 시뮬레이터가 있었지만 내가 필요했던 시뮬레이터였습니다.

해결책:

빌드 설정-> 아키텍처-> 지원되는 플랫폼 :

iphoneos 에서 iOS로 변경


또한 iOS Deployment Target아래 빌드 설정을 확인하십시오 . 배포 대상이 iOS 8.4로 설정되어있는 동안 Xcode 6.3을 사용하고있었습니다. iOS 8.3으로 설정하자마자 시뮬레이터 목록을 받았습니다.여기에 이미지 설명 입력


아래의 Cmd가 내 문제를 해결했습니다.

$ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

제 경우에는 Xcode 8로 업그레이드하고 나중에 다른 버전 7.3.1을 다운로드 한 다음 ( "Xcode 7.3.1"로 이름 변경) Xcode 8에서 시뮬레이터 목록을 가져올 수 없습니다.


제 경우에는 실수로 시스템 파인더-> 라이브러리-> 장치-> 코어 시뮬레이터에서 iOS 장치를 삭제했습니다.

따라서 시뮬레이터는 ios 장치를 제외하고 Xcode 프로젝트에 나열되지 않습니다.

I solved this by adding ios simuulators from Xcode->Window->Devices->Add simulators

여기에 이미지 설명 입력

Hope it'll help someone.


If you renamed Xcode.app since first launch, the iOS Simulator becomes unavailable. This is mentioned in the Xcode 6.1 Release Notes:

Renaming Xcode.app after running any of the Xcode tools in that bundle may cause iOS Simulator to be no longer be available. Either rename Xcode.app back to what it was when first launched or restart your Mac. (16646772)


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.


Solution: Build Settings -> Architectures -> Supported Platforms: changed from iphoneos to iOS

Confirmed works in Xcode Version 9.0 (9A235)


Sometimes the simulator you have might not be the simulator specified in Build Settings. Make sure that simulator package is downloaded for your IOS Deployment Target


If Your problem is due to multiple (versions of) xcode

Then follow following steps

1. Cleaning Derived Data Go to Xcode preferences -> Select location tab -> select little gray arrow on /Users/apple/Library/Developer/Xcode/DerivedData. You will be redirect to folder From there select Derived Data folder and Delete.
여기에 이미지 설명 입력

2. Completely Quite The Xcode and reopen

This will solve your problem. Happy coding :)


check in your project's build settings , make certain you select Latest iOS (iOS 8.1).


I still had my iOS Device, but all my simulators were gone.

I tried every suggested solution I could find on stackoverflow.

Eventually, I deleted the Xcode app and downloaded it again from the App Store. After installation, the simulators were back.


Looks like Xcode hides that menu when the window is a certain size. You have to make your window quite large before it comes back.


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..


Small but a effective solution. In my case i updated to my xcode to 9.2 version and simulators disappeared.

I found this solution and it worked for me and for others also.

**

Just quit your xcode and restart again. You will have simulators.

**


For those coming from Unity, even if you manage to make them show up (by changing Build Settings > Supported Platforms to iOS it would not run in the simulator.

Instead, you need to select this Simulator SDK :

여기에 이미지 설명 입력

And make sure something other than Metal exist.

여기에 이미지 설명 입력

Then the simulator device list will be there from start.


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.


I had this happen to me after an update to a new Xcode. Running

xcode-select --install

fixed it for me.


Just go to Xcode -> Window -> Devices

Click + at the bottom left

Add your new Simulator


Quite Xcode and Open it again, it will show. For me it's worked.


If you just updated Xcode, you may need to restart your computer before simulators become available again.


After upgrading to Xcode 10.3, the list of simulators was empty. I rebooted and it was resolved.

This doesn't necessarily answer the OP's specific question, but this was the first place I ended up in researching my Xcode 10.3 upgrade issue.


I had the same issue, generated from an imported project, the project had 10.3 as deployment target and I only had 10.0 installed, changing the deployment target to 10.0 solved my issues.


For anyone struggling with this, I tried the mentioned options without success. Turns out all I needed to do was just quit and relaunch Xcode. Simple things can be annoying sometimes.


In my case I had created a static library target for tvOS in Xcode 8.3.3, and the tvOS simulator was not showing up in the list. Eventually found out that TARGETED_DEVICE_FAMILY in the Build Settings was set to 1,2 instead of 3. Leaving this here incase anyone else encounters the same problem.


I just needed a good, old fashioned restart the computer. When uninstalling and reinstalling XCode didn't do the job, I restarted out of pure frustration....lo and behold! After a restart, everything was as it should be.


I simply Renamed my Xcode file in Application folder to something else and renamed it back to Xcode.

Worked


Check if in the app store under xcode it says GET instead of installed, delete your current version and get the new one

참고 URL : https://stackoverflow.com/questions/26690730/xcode-project-not-showing-list-of-simulators

반응형