development

Xcode 8 |

big-blog 2020. 12. 4. 19:41
반응형

Xcode 8 | iOS 10 시뮬레이터“답장에서 반환 된 오류 : 연결이 잘못되었습니다.”


나는에서 응용 프로그램을 실행하려고하고 있지만 아이폰 OS (10) 시뮬레이터를 사용하여 xcode8내가 자주 이러한 경고를 얻을. 한 번에 두 개씩 무작위로 나타나며 그 원인이 무엇인지 분명하지 않습니다.

아래는 오류 이미지입니다.

오류 스크린 샷.

나는 다음 일을 시도했다.

  • 앱 정리 및 다시 빌드
  • xcode 및 시뮬레이터 다시 시작
  • 파생 데이터 지우기 및 응용 프로그램 다시 작성.

나도 같은 오류가 발생했습니다. 내 경우에는 문제는 내가 작업을 하였다 엑스 코드 7.3 과 그 시뮬레이터 내가 폐쇄 이후에 열려 엑스 코드 (7) 과 열 엑스 코드 (8) 및 시도 실행중인 응용 프로그램을하고 위의 오류가 발생했습니다.

두 시뮬레이터가 모두 열려 있었기 때문에 그 일이 발생했다고 생각합니다. 이전 시뮬레이터를 닫으면 해결되었습니다. xcode 8 이 시뮬레이터와의 연결을 설정하는 동안 문제가있는 것 같습니다 .


이 오류를 제거하려면 다음 단계를 따르십시오.이 오류는 내 쪽에서 잘 작동하고 있으며 이러한 단계가 당신에게도 효과가 있기를 바랍니다.

 i)Remove multiple xcode versions.
ii)Quit all Xcode and simulators. 
iii)Only one version you opened.
iv)Go to Xcode  -> Preferences

여기에 이미지 설명 입력

v) 위치로 이동 여기에 이미지 설명 입력vi) 명령 줄 도구에 대한 적절한 버전 설정 (Xcode 버전)

vii) 파생 데이터 클릭 여기에 이미지 설명 입력

viii) 그런 다음 파생 데이터로 이동하여 해당 폴더를 삭제합니다. 아래 이미지 참조여기에 이미지 설명 입력

ix) 시뮬레이터 재설정 콘텐츠 설정을 클릭하고 xcode 및 시뮬레이터를 종료하고 지우기를 열고 xcode를 빌드하고 실행하십시오.


"파생 데이터"폴더를 삭제하지 않고

과거와 동일한 규칙이 Xcode 8과 Xcode 9 간 전환에 적용됩니다.

  1. Xcode, Instruments, Simulator.app 및 Console 종료
  2. xcode- 작업 할 버전 선택
  3. 사용하려는 Xcode 버전을 시작하십시오.

위의 단계로 문제가 해결되지 않으면 위 단계를 반복 할 수 있지만> 2 번 후에 "sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService"를 추가합니다.

https://forums.developer.apple.com/thread/79301에서


두 개의 Xcode 버전이있을 때 직면 한 동일한 문제이지만 시뮬레이터의 두 인스턴스를 열 때 동일한 오류가 발생하는 문제가 발생했습니다.이 문제를 해결하는 가장 좋은 방법은 실행 명령입니다.

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

파생 된 데이터를 제거합니다.


SimPholders를 사용하고 XCode 명령 줄 도구를 다른 버전의 XCode로 설정했기 때문에 시뮬레이터의 두 번째 인스턴스를 시작하지 않았지만 비슷한 문제가 발생했습니다. 이 문제를 해결하려면 XCode 환경 설정을 열고 위치 탭에서 명령 줄 도구 버전이 현재 작업중인 XCode 버전과 일치하는지 확인하십시오.


위의 어느 것도 나를 위해 일하지 않았습니다.

시뮬레이터를 선택하고 "실행"을 누르는 대신 시뮬레이터 양식 "개발자 도구 열기"메뉴를 먼저 열어 문제를 해결했습니다. 그 후 모두 잘 작동했습니다.

여기에 이미지 설명 입력


아래 스크린 샷과 유사한 문제가 발생했습니다.

스크린 샷 1

Xcode 7과 시뮬레이터를 닫아 해결했습니다.

Xcode 8 및 시뮬레이터에서 작업 할 때 Xcode 7 시뮬레이터가 열려 있지 않아야합니다.

Below is screenshot of simulator state for Xcode 7 when you're working on Xcode 8.

스크린 샷 2


In my case, I was open a project a Xcode 8, and the emulator for this version, then open this project on Xcode 7.3.1, when I create an emulator it shows the alert.

My Solution: Close all version of Xcode => Clear Derived Data => Quit Xcode => Open Xcode => Choose File => Open Recent.


Force Quit.. Xcode and simulator. This kind of issue happned because maybe you are try to run more than one different version Xcode at same time.


I just had this issue when attempting to debug an iOS application from Xamarin, which uses Xcode to run apps in the simulator. I was initially targeting a 9.7" iPad Pro, attempted to change the simulated device to an iPad Air 2 (still on iOS 10), but the simulator didn't respond. After quitting and relaunching the simulator it appeared to load okay, so I changed back to the previous device - not sure whether changing devices actually did anything but I haven't seen the error message in the few times I've run my app since.


Solved it by closing all xcode and simulator. Don't ask me why. It was happening on the beta version for me


I had similar issue, what I did is I closed the simulator and all the Xcode and I went to the terminal and typed to see any Xcode application running then I killed it. I had one Xcode running in the background.

Command to see if Xcode is running,

ps -e | grep -i xcode

Use kill comment to kill any runing Xcode app, I used

kill -9 <pid>

The Same issue I have faced in my case i stopped all applications and restarted my mac and every thing is OK


Simple And fast Remedies..

1.Quit all xCode and reopen the xCode which you need to work...


I had this problem too, but I did below process it's working fine.

You have both Xcode 8.x.x and 9 running on your Mac, which causes the problem. Only run one Xcode at a time (Quit another Xcode, don't let another Xcode runing in background!).


이것은 컴퓨터에 둘 이상의 Xcode 버전이 설치되어있을 때 발생할 수 있습니다. 먼저 모든 버전의 Xcode를 종료 (닫기 만하는 것이 아님)해야합니다.


다른 일을 한 후에 장치를 변경하는 것이 효과가 있었던 것 같습니다. 내 컴퓨터를 다시 시작할 필요가 없었습니다.

참고 URL : https://stackoverflow.com/questions/39722524/xcode-8-ios-10-simulator-error-returned-in-reply-connection-invalid

반응형