๐ŸŽ iOS/Error Handling

[Error, Xcode] ํฐ ๋นŒ๋“œ ์—๋Ÿฌ - Unable to prepare DEVICE for development, Failed to prepare device for development ERROR ํ•ด๊ฒฐ๋ฒ•

TechYeon 2022. 2. 22. 19:02

ํฐ์œผ๋กœ ๋นŒ๋“œ ์‹œ ๋ฐœ์ƒํ•œ ์—๋Ÿฌ ^^

์•„๋ž˜ ์—ฌ๋Ÿฌ ๊ฐ€์ง€ ํ•ด๊ฒฐ๋ฐฉ๋ฒ•๋“ค์ด ์žˆ์œผ๋‹ˆ ํ•ด๋‹นํ•˜๋Š” ๊ฒฝ์šฐ๋ฅผ ์ฐพ์•„ ํ•ด๋ณด๊ธธ!!

์•ˆ๋˜๋ฉด ์ฐจ๋ก€๋Œ€๋กœ ๋‹ค ํ•ด๋ณด๊ธธ!!


[๐ŸŒฑ์—๋Ÿฌ ๋‚ด์šฉ]

Unable to prepare DEVICE for development

Please check the connection to the device, and review all errors in the Devices and Simulators window.

Windows > Devices and Simulators ๋“ค์–ด๊ฐ€๋ฉด

์•„๋ž˜์™€ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค.

"Failed to prepare device for development."
"If you are certain that Xcode supports development on this device, try disconnecting and reconnecting the device."

 


[๐ŸŒฑSolution 1. ํฐ ์žฌ๋ถ€ํŒ…]

์ผ๋‹จ ์ฒซ ๋ฒˆ์งธ, ํ•ธ๋“œํฐ ์žฌ๋ถ€ํŒ… ^^

์•ˆ๋˜๋ฉด ์•„๋ž˜ ํ”„๋กœ์„ธ์Šค๋ฅผ ํ•ด๋ณผ ๊ฒƒ!

  • Delete the app from the phone
  • Clean the Build Folder with: โŒ˜ + shift + K
  • Delete derived data
  • Unpair device (from โŒ˜ + shift + 2 window)
  • Disconnect iPhone
  • Restart iPhone
  • Restart Mac
  • Trust

๊ตฌ๊ธ€๋งํ•˜๋‹ˆ ๋Œ€๋ถ€๋ถ„์ด ํ•ธ๋“œํฐ ์žฌ๋ถ€ํŒ…!!! ๋‚˜๋„ ์˜ˆ์ „์— ์ด๊ฑธ๋กœ ํ–ˆ์—ˆ๋Š”๋ฐ ์•ˆ๋๋‹ค...

https://stackoverflow.com/questions/64974291/xcode-error-failed-to-prepare-device-for-development

 

Xcode error: Failed to prepare device for development

I have updated to Xcode 12.3 beta. device version is 14.2, but Xcode complaining: Errors were encountered while preparing your device for development. Please check the Devices and Simulators Window.

stackoverflow.com


[๐ŸŒฑSolution 2. iPhone ์—ฐ๊ฒฐ ๋Š๊น€ ํ˜„์ƒ ํ•ด๊ฒฐ]

์—ฐ๊ฒฐ์„ ์ด ๋ฌธ์ œ์ธ๊ฑฐ ๊ฐ™๋‹ค๋Š” ๋Š๋‚Œ์ด ๋“ ๋‹ค๋ฉด...

 

1. ์•„๋ž˜ ๊ฒฝ๋กœ์—์„œ ํ„ฐ๋ฏธ๋„ ์‹คํ–‰

์‘์šฉ ํ”„๋กœ๊ทธ๋žจ –> ์œ ํ‹ธ๋ฆฌํ‹ฐ – > ํ„ฐ๋ฏธ๋„ 
(Applications –> Utilities –> Terminal)

2. ์•„๋ž˜ ๋ช…๋ น์–ด ์‹คํ–‰

% sudo killall -STOP -c usbd

3. macOS ๋น„๋ฐ€๋ฒˆํ˜ธ ์ž…๋ ฅ


[๐ŸŒฑSolution 3. Xcode ์—…๋ฐ์ดํŠธ]

๋‚˜์˜ ๊ฒฝ์šฐ, ํ•ด๊ฒฐ๋œ ๋ฐฉ๋ฒ•,,,

๋‚ด ํฐ์œผ๋กœ ํ•ด๋„ ์•ˆ๋˜๊ณ  ๋‹ค๋ฅธ ํฐ์œผ๋กœ ํ–ˆ์„ ๋•Œ๋„ ์•ˆ๋˜๋Š” ๊ฒฝ์šฐ!!!!! Xcode์— ๋ฌธ์ œ๊ฐ€ ์žˆ์Œ์„ ์ง๊ฐํ–ˆ๋‹ค.

๊ทธ๋Ÿฌ๋‚˜ ํ•ด๊ฒฐ๋ฒ•์„ ์ฐพ์ง€ ๋ชปํ–ˆ๋Š”๋ฐ, Xcode ์—…๋ฐ์ดํŠธ ์•ˆ ํ–ˆ๋”๋ผ,,,;;;

Xcode ์—…๋ฐ์ดํŠธํ•˜๋‹ˆ๊นŒ ๋ฐ”๋กœ ํ•ด๊ฒฐ๋จ!!!!!

728x90
๋ฐ˜์‘ํ˜•