728x90 ๋ฐ์ํ iOS Error6 [iOS Error ํด๊ฒฐ๋ฒ ํฌํจ] Unable to prepare device for development ์๋ ํ์ธ์ Foma ๐ป ์ ๋๋ค! ์ค๋์ ์์ดํฐ์ ์ ๋ฐ์ดํธ ํ๊ณ ๋งฅ๊ณผ ์ฐ๊ฒฐ์์ผ์ ํ๋ก์ ํธ๋ฅผ ํ์ธํด๋ณด๋ ค๊ณ ํ๋๋ ์๋์ ๊ฐ์ ์ค๋ฅ๊ฐ ๊ณ์ ๋จ๋๋ผ๊ตฌ์.. "Unable to prepare device for development. Please check tthe connection to the device, and review all errors in the Device and Simulators window" ์ด์ฌํ ๊ตฌ๊ธ๋ง ํด๋ณธ ๊ฒฐ๊ณผ ํด๊ฒฐ๋ฒ์ ์์ดํฐ ์ ๋ฐ์ดํธ์ ๋ง๊ฒ Xcode๋ ์ ๋ฐ์ดํธ๋ฅผ ํด์ค์ผ ๋๋ฐ์ด์ค ์ฌ๋ฐ๋ฅด๊ฒ ์คํ์ด ๋ฉ๋๋ค. ๋งฅ์ ์๋ ์ฑ์คํ ์ด๋ก ์ด๋ํ์๋ฉด Xcode์ ์ ๋ฐ์ดํธ๋ผ๊ณ ๋์ด์์ ๊ฑฐ์์. ์ ๋ฐ์ดํธ ์์ผ์ค ๋ค ๋๋ฐ์ด์ค๋ฅผ ์ฐ๊ฒฐํ๋ฉด ์ ์์ ์ผ๋ก ์คํ๋๋ ๊ฒ์ ๋ณผ ์ ์์ต๋๋ค. 2022. 2. 21. [iOS Error] UICollectionView ReusableView ์๋ฌ ์๋ ํ์ธ์ Foma ๐ป ์ ๋๋ค! ์ค๋ ๋ง๋ ์๋ฌ๋ ๋ฐ๋ก ์์ ๊ฐ์ด 'NSInternalInconsistencyException' ์ค๋ฅ ์์ต๋๋ค. ์ด๊ฒ ๋ฌด์จ ๋ง์ด๋๋ฉด ์ปฌ๋ ์ ๋ทฐ์์ ReusableView๋ฅผ ์ฌ์ฉํ๋๋ฐ dequeReusableCell๋ก ๋ณดํต๊ณผ ๊ฐ์ด ์ธํ ํ๊ธฐ ๋๋ฌธ์ ๋๋ค. ์ ์ฝ๋๋ฅผ ๋ณด๋ฉด ์๋์ ๊ฐ์ด ์ปฌ๋ ์ ๋ทฐ ํค๋์ ํธํฐ๋ฅผ ReusableView๋ก ๋ง๋ค์ด์ ์ธํ ํ๋๋ฐ์. ์๋์ ๊ฐ์ด dequeํ๋ ๋ถ๋ถ์ด ์ผ๋ฐ ์ ๊ณผ ๊ฐ์ด dequeReusableCell๋ก ๋์ด์์ต๋๋ค. func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -.. 2021. 11. 10. [iOS Error] The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions ์๋ ํ์ธ์ Foma ๐ป ์ ๋๋ค! ์ค๋์ ์ ๋ชฉ๊ณผ ๊ฐ์ด ํ์ ์ถ๋ก ์๋ฌ๋ฅผ ๋ง๋๊ฒ ๋์๋๋ฐ์. "The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions " ์๋ ๊ทผ๋ฐ... ๋ถ๋ช ์ ์๋ ์๋๋๋ฐ ์ ์ด๋ฐ ์ค๋ฅ๊ฐ ๋จ์ง...? ํ๊ณ ๊ตฌ๊ธ๋งํด์ ์ฐพ์๋ณด์๋๋ Xcode 12 Beta์์ ์๊ธฐ๋ ์ค๋ฅ๋ผ๊ณ ํ๋ค์... ํด์์ ํด๋ณด๋ฉด ์๋์ ๊ฐ์ต๋๋ค. "์ปดํ์ผ๋ฌ์์ ํด์ํ๊ธฐ์ ๋ ์ฝ๋๊ฐ ๋๋ฌด ๋ณต์กํด..ใ ์ข๋ง ์ชผ๊ฐ์ ์จ์ค..." ์ ์๋ ์ฝ๋๊ฐ ์ด์ ๊ฐ์ด ๋์ด์์์ด์.. (์ filterํด๋๊ณ ... map์ ๋ ์ผ์ง...) filter์ ๋๊ฐ์.. 2021. 11. 2. [Error ํด๊ฒฐ๋ฒ ํฌํจ] Attempt to present on <> from <> which is already presenting <> ์๋ ํ์ธ์ Foma ์ ๋๋ค! ์ค๋ ๋ง๋ ์๋ฌ๋ ๋ทฐ์ปจํธ๋กค๋ฌ์์ dismiss๋๋ฉด ๋๋ฆฌ๊ฒ์ดํธ๋ก ์ ํธ๋ฅผ ๋ณด๋ด์ ์ธ๊ทธ์ ์ฐ๊ฒฐ๋ ๋ค๋ฅธ ๋ทฐ์ปจํธ๋กค๋ฌ๋ก ์ด๋ํ๊ฒ ๊ตฌํํ๋ ค๊ณ ํ๋๋ฐ ์์ ๊ฐ์ ์ค๋ฅ๊ฐ ๋ด์ต๋๋ค. ์์ธ์ ์ฐพ์๋ณด๋ ํ์ฌ ๋ทฐ์ปจํธ๋กค๋ฌ๊ฐ rootViewController๊ฐ ์๋์ฌ์ ์๊ธด ๋ฌธ์ ๋ผ๊ณ ํด์. ์คํ์ค๋ฒํ๋ก์ฐ์๋ ์ ์ผ ์์์ธต์ ์๋ ๋ทฐ์ปจํธ๋กค๋ฌ๋ฅผ ์ฐพ์์ ๊ฑฐ๊ธฐ์ ์ด๋ํด๋ผ ์ด๋ฐ์์ผ๋ก ํด๊ฒฐ๋ฒ์ด ์๋๋ฐ ์ ๋ ์๋๋๋ผ๊ตฌ์ ..ใ ์ ๊ฐ ์ฐพ์๋ธ ํด๊ฒฐ๋ฒ์ performSegue๋ก ์ด๋ํ๊ธฐ ์ ์ 1์ด ๋๋ ์ด๋ฅผ ์ฃผ๊ณ ์ด๋์ํค๋ ํด๊ฒฐ๋์์ต๋๋ค. extension ViewController:OtherViewControllerDelegate { func someFunction() { DispatchQueue.main.asyncAft.. 2021. 5. 13. [Error ํด๊ฒฐ๋ฒ ํฌํจ] NSGenericException,reason:Unable to activate constraint with anchors ์๋ ํ์ธ์ Foma ์ ๋๋ค! ์ค๋ ๋ง๋ ์๋ฌ ๋ ์ฝ๋๋ก ์คํ ๋ ์ด์์์ ์ก์๋ ๋ฐ์ํ๋๋ฐ์. ์๋์ ๊ฐ์ด... ์ปจ์คํธ๋ ์ธ์ ํ์ฑํ์ํฌ ์ ์๋ค... ๊ทธ๊ฑด ๋ถ๋ฒ์ด๋ค... ๋ผ๊ณ ํ๋๋ฐ ์ด์ ๋ ๊ฐ๋จํ์ต๋๋ค. ๋ค์๊ณผ ๊ฐ์ด ์ปจ์คํธ๋ ์ธ์ ์ค์ ํด์ค ๋ค์ addSubview๋ก ๋ฃ์ด์คฌ๋๋ฐ ๋จผ์ addSubview๋ฅผ ํ ๋ค์ ์ปจ์คํธ๋ ์ธ์ ์ก์์ค์ผํ์ต๋๋ค. skView.translatesAutoresizingMaskIntoConstraints = false skView.centerXAnchor.constraint(equalTo:view.centerXAnchor) .isActive = true skView.centerYAnchor.constraint(equalTo:view.centerYAnchor) .isActive = tru.. 2021. 5. 13. [ํด๊ฒฐ๋ฒ ํฌํจ] duplicate symbols for architecture x86_64 ์๋ ํ์ธ์ ์๋ฌ์์ง๊ฐ Foma ์ ๋๋ค... ์ค๋๋ถํฐ๋ ์๋ฌ๋ฅผ ๋ ์ด์ ๋์ด๊ฐ์ง์๊ณ ๋ชจ์๋ณด๋ ค๊ณ ํด์. ์์ ๋ถํฐ ์๋ฌ๋ฅผ ๋ง๋๋ฉด ๋นจ๋ฆฌ ๊ณ ์น๊ธฐ์๋ง ๊ธ๊ธํ๊ณ ๊ณ ์น๋ฉด ์๋ํ๋ฉด์ ๋์ด๊ฐ๋์ ์ด ์๋๋ฐ์. ์ค๋์ ์์ ์ ๋๊ฐ์ ์๋ฌ๋ฅผ ๋ง๋ฌ๋๋ฐ ์ด๋ป๊ฒ ํด๊ฒฐํด์ผํ ์ง ๋ชฐ๋ผ ๋ช์๊ฐ์ ํค๋งธ์ต๋๋ค. ๊ทธ๋์ ํญ์ ์๋ฌ๋ฅผ ์์งํด์ ํด๊ฒฐ ๋ฐฉ๋ฒ์ ๊ธฐ๋กํด๋ ์ด๋ค ์๋ฌ๋ฅผ ๋ง๋๋ ์ซ์ง(?)์๋ Foma๊ฐ ๋๋๋ก ํ ๊ฑฐ์์. Error ์ค๋์ ์๋ฌ๋ ๋ฐ๋ก ์ ๋ชฉ์์๋ณด์๋ค์ํผ "duplicate symbols for architecture x86_64" ๋ผ๋ ์๋ฌ๋ฅผ ๋ง๋ฌ์ต๋๋ค. ๋ญ ๊ฐ๋จํ๊ฒ ํด์ํ๋ฉด 117๊ฐ ์ฌ๋ณผ์ด ๋ณต์ ๋์ด ์๋ค?? ์ด๊ฒ ๋ฌด์จ ์๋ฆฌ์ง? ํ๊ณ ๋ฐ๋ก ๊ตฌ๊ธ์ ๊ฒ์ํด๋ดค์ต๋๋ค. ์ญ์๋ ๋ง์ ์ฌ๋๋ค์ด ๊ฒช์๋ ์๋ฌ์์ด์. (์คํ ์ค๋ฒ ํ๋ก์ฐ ์ต๊ณ .. 2020. 11. 21. ์ด์ 1 ๋ค์ 728x90 ๋ฐ์ํ