Programing

"실행 대상 iOS 장치가 구성표를 실행하는 데 유효하지 않습니다."

crosscheck 2020. 9. 20. 08:47
반응형

"실행 대상 iOS 장치가 구성표를 실행하는 데 유효하지 않습니다."


iPhone 5 / iOS 6에서 앱을 실행했지만 iPhone 4S / iOS6에서 실행하려고하면 "실행 대상 iOS 장치가 NN 구성표를 실행하는 데 유효하지 않습니다. 구성표에 빌드 가능 항목이 없습니다. 실행 지정 장치가 지원하는 아키텍처를 위해 구축 할 수 있습니다. "

이에 대한 이전 게시물을 살펴 보았지만 배포 대상에 문제가 있습니다. 제 경우에는 Base SDK를 6.1로 설정하고 Deployment Target을 5.0으로 설정했습니다.

iPhone 4에는 iOS 버전 6.0.1이 있습니다.


XCode의 버그 였고 Xcode를 닫았다가 다시 열었고 작동하기 시작했습니다.

나는 Xcode에서 다른 문제와 함께 이런 종류의 것을 여러 번 발견했습니다. 도구가 너무 멍청하다는 것은 매우 실망 스럽습니다.


XCode를 종료하고 다시 시작하십시오 (XCode 9.0.1).


나는 같은 문제가 있었다. 내가 찾은 문제는 실수로 iPad를 배포 대상으로 선택했기 때문에 XCode에서 iPhone 5가 유효하지 않은 장치임을 보여주었습니다. 여기에 이미지 설명 입력. 도움이되기를 바랍니다. 그런 다음 대상을 iPhone으로 변경하고 작동했습니다.


이것은 때때로 일종의 메모리 문제입니다. 일부 응용 프로그램을 닫고 다시 시도하십시오.

Xcode도 닫고 다시 엽니 다. 나를 위해 일했습니다.

건배.


실행 대상 iPhone은 구성표 실행에 유효하지 않습니다.

  • Xcode 종료
  • Xcode 열기
  • 깨끗한 프로젝트
  • 프로젝트 실행

작동합니다


Xcode를 다시 시작하면 문제가 자동으로 검색됩니다.


간단한 해결책.

1) X-Code 강제 종료

2) iTunes 강제 종료

3) iPhone 다시 연결

4) X- 코드 열기


Quit and Reset Xcode대부분의 문제를 다시 해결할 수 있습니다. 다른 원인은 DeviceiPhone을 지원하지 않는 것입니다.

Target-> 구성표 선택-> General-> Deployment Info-> Device-> Universal원하는 현재 장치를 선택합니다.

여기에 이미지 설명 입력


XCode 9.0.1에서이 문제가 발생했습니다.

XCode가 연결된 장치 목록을 새로 고치지 않는 것 같습니다.

장치 연결을 끊은 후에도 대상으로 선택할 수 있음을 알 수 있습니다. 따라서 XCode는 실제로 가짜 장치에 연결하려고 할 수 있습니다.

이 문제를 해결하려면 :

  1. 구성표를 편집하십시오.
  2. 구성표의 실행 파일을 다시 선택하십시오.
    • 이것은 XCode가 연결된 장치 목록을 업데이트하도록 강제하는 것 같습니다.

그래도 작동하지 않으면이 작업을 수행하기 전에 장치 (케이블)를 다시 연결해보십시오.


또는 장치 연결 해제, 장치 연결 및 구성표의 실행 파일 다시 선택의 다른 조합 일 수도 있습니다.

필사적으로 모바일 장치를 PC에 연결하는 케이블을 변경하려고 할 수도 있습니다.

하지만 이상적으로는 ... Xcode가 수정되어야합니다.


필자의 경우 문제는 Scheme-> Profile-> Executable (e 드롭 다운 빌드 구성 디버그에서 선택하고 "application".app 실행 가능)으로 선택된 실행 가능 값이 누락되었습니다.

여기에 이미지 설명 입력


장치로 이동-> 실행하려는 의도 된 장치 (iPhone6 ​​시뮬레이터)-> 장치 선택 (iPhone6 ​​선택)-> 마우스 오른쪽 버튼 클릭-> '실행 대상 메뉴 표시'가 활성화되어 있는지 확인하십시오.

나를 위해 그것은 활성화되었습니다. 나는 그랬다.


프로젝트 정보 세트 개발 대상으로 이동하여 4.3 또는 5.1.1로 이동하고 대상에서도 동일합니다.


XCode 9에서이 문제에 직면했지만 나중에 어떤 이유로 "Devices & Simulators"창에서 실행 대상을 확인하지 않았 음을 깨달았습니다.

여기에 이미지 설명 입력


Select your project, Under Targets, select your main target, then on the Build Settings Tab, there is one field that says "Valid Architectures". Make sure "armv7" is also there. You probably only have armv7s right now.


I am using XCode 8.2.1 having same problem.

Solution:

->Go to Devices

-> Add additional simulators

->Right Click simulator u are using

->Show in Run Destination Menu <-Enable this Option


For me Xcode failed to copy symbols for connected device due to low disk space. First check if you have symbols connected device under /Users/$USERNAME/Library/Developer/Xcode/iOS\ DeviceSupport/.

Since I had iOS 8.3 (12F70) installed on my device the path for me was /Users/$USERNAME/Library/Developer/Xcode/iOS DeviceSupport/8.3 (12F70)/Symbols The size of this directory should be around 2.5GB. When I got this issue the size was 484 KB.

To fix it I

  1. Free up about 3GB of disk space. You can delete folders for any unsupported devices that you might have under /Users/$USERNAME/Library/Developer/Xcode/iOS\ DeviceSupport/
  2. Disconnected device from Xcode and closed Xcode.
  3. Removed the folder in above path (everything under 8.3(12F70).
  4. Start Xcode and connected the device.
  5. Xcode should start Copying symbols once done the size of the folder should be around 2.5GB

This happened to me because I switched branches in source control with unshared schemes.

My xcuserdata folder was git-ignored, and it contained a scheme I forgot to share. This meant I was trying to use a scheme that was from a completely different code branch.

I remade the scheme which fixed the problem, and marked it as shared so that it would be in the xcshareddata folder and checked into source control.


For my case, check the target -> Build Settings -> Search "Mach-O Type" and check the value, it should be Executable/Dynamic Library/Static Library. For other type values, the target could NOT be built and run.


This is similar to Kunal Gupta's comment, but I got this error after running an Xcode project on an actual iPad (the deployment target was changed to iPad and I wanted to run it on my iPhone simulator). Remember to change the deployment info after you use an actual device/simulator, especially when switching from iPad to iPhone.


Swift 3 or 4 Xcode 8 or 9 One thing you can do is click the Project file to open up General Settings, Capabilities etc.

  1. Choose Build Settings
  2. Search for Base SDK
  3. Make sure debug AND release have the same build type.

I had debug set to ios 11.0 and release set to macOS 10.13 They must be the same in order to Archive


In my Case,

I open my iPhone here is the alert appearing in my iPhone for Trust and Don't Trust. I click on Trust. It works fine.

여기에 이미지 설명 입력


Switching to a different USB port and restarting Xcode solved the problem. Experienced this issue on iMac running Xcode 9.1 whenever I tried connecting any iOS device to one specific USB port. If your USB ports stopped working, check this.

  • Open the Apple Menu > About this Mac > More Info > System Report > USB and check that the device appears in the USB Device Tree. If it is not here try another USB cable.

여기에 이미지 설명 입력


나는 특정 케이블 + 장치 조합 (아마도 나쁜 접촉)에서 이것을 발견했습니다 .XCode를 다시 시작하면 한두 번의 실행에만 도움이되고 다시 발생합니다. 케이블 / 장치를 변경하는 것이 저에게 효과적이었습니다.


xcode 버그, 10.0 베타 3 (10L201y)까지


제 경우이 문제는 아키텍처 (빌드 설정-> 아키텍처)를 표준 아키텍처-$ (ARCHS_STANDARD)로 변경하여 수정되었습니다.

유효한 아키텍처에 arm64 armv7 armv7s 가 있는지 확인하십시오 .

참고 URL : https://stackoverflow.com/questions/16049665/the-run-destination-ios-device-is-not-valid-for-running-the-scheme

반응형