iOS 24

[M1 Mac] Hombrew MySQL ์„ค์น˜

Mysql search 1. brew search mysql  Mysql ๋‹ค์šด 2. brew install mysql 3. (์—๋Ÿฌ ๋ฐœ์ƒํ–ˆ์„๊ฒฝ์šฐ) brew install openssl * Error ๋ฐœ์ƒ ์ด์œ  : homebrew update ๋ฌธ์ œ * ์ฐธ๊ณ  : https://jinmay.github.io/2020/05/18/mysql/fix-error-installing-mysql-on-mac/ [mysql]macOS์—์„œ brew๋กœ mysql ์„ค์น˜ํ• ๋•Œ ์ฃผ์˜ํ•  ์  brew install ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด mysql์„ ์„ค์น˜ํ•  ๋•Œ, ๊ฐ€๋” ์•Œ ์ˆ˜ ์—†๋Š” ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•  ๋•Œ๊ฐ€ ์žˆ๋‹ค. openssl์„ ์žฌ์„ค์น˜ํ•ด๋ณด๊ณ  git๊ณผ gcc ๋“ฑ์„ ๋‹ค์‹œ ์„ค์น˜ํ•ด๋ณด์•„๋„ ํ•ด๊ฒฐ ํ•  ์ˆ˜ ์—†์—ˆ๋˜ ์ ์ด ์žˆ๋Š”๋ฐ ์ƒ๊ฐ์™ธ๋กœ ๊ฐ„๋‹จํ•˜๊ฒŒ jinmay.githu..

iOS 2021.11.24

[iPhone] ์•„์ดํฐ12 3G๋กœ ์žกํž๋•Œ ํ•ด๊ฒฐ๋ฐฉ๋ฒ• (iOS 15.0)

iPhone 12 pro๋ฅผ ์‚ฌ์šฉ ์ค‘์ธ๋ฐ. 2-3์ผ ์ „๋ถ€ํ„ฐ LTE๊ฐ€ ๋จนํ†ต์ด ๋˜๊ฑฐ๋‚˜ ๋„คํŠธ์›Œํฌ๊ฐ€ 3G๋กœ ์žกํžˆ๊ธฐ ์‹œ์ž‘ํ–ˆ๋‹ค. 5G๋ฅผ ์ง€์›ํ•˜๋Š” 12๋ผ์ธ์— 3G๋ผ๋‹ˆ^^ ! ํ•ด๊ฒฐ๋ฐฉ๋ฒ• 1. ์„ค์ •์— ๋“ค์–ด๊ฐ„๋‹ค. 2. ์ „์†ก ๋˜๋Š” iPhone ์žฌ์„ค์ • ํด๋ฆญ. 3. ๋„คํŠธ์›Œํฌ ์„ค์ • ์žฌ์„ค์ • ํด๋ฆญ. 4. ์žฌ๋ถ€ํŒ…๋˜๋ฉด์„œ 3G ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋œ๋‹ค.

iOS 2021.09.24

[M1 Mac] XCODE(12.5.1) unrecognized selector sent to instance ์˜ค๋ฅ˜

์˜ค๋ฅ˜ ๋‚ด์šฉ unrecognized selector sent to instance ์˜ค๋ฅ˜ ์›์ธ ์…€๋ ‰ํ„ฐ ์ธ์Šคํ„ด์Šค๋ฅผ ๋ฐ›์ง€ ๋ชปํ•œ ๊ฒƒ ํ•ด๊ฒฐ๋ฐฉ๋ฒ• 1. ๋ณ€์ˆ˜๋ช…์ด ๋ณ€๊ฒฝ๋œ ๊ฒฝ์šฐ. 2. 2์ค‘ ์—ฐ๊ฒฐ์ด ๋˜์—ˆ์„ ๊ฒฝ์šฐ. * 3. ํด๋ž˜์Šค๊ฐ€ ํด๋”์•ˆ์— ๋“ค์–ด๊ฐ”์„ ๊ฒฝ์šฐ.

iOS 2021.08.28

[M1 Mac] XCODE(12.5.1) swift ๋ฉ”๋ชจ์žฅ ๋งŒ๋“ค๊ธฐ(3),(4)

[M1 Mac] XCODE(12.5.1) swift ๋ฉ”๋ชจ์žฅ ๋งŒ๋“ค๊ธฐ(1),(2) ์ ์‹ฌ์‹œ๊ฐ„์ด๋‚˜ ํ‡ด๊ทผ ํ›„์— ์งฌ์งฌ์ด ๊ฐ•์˜๋ฅผ ๋ณด๋ฉฐ swift๋กœ ๋ฉ”๋ชจ์žฅ์„ ๋งŒ๋“ค์—ˆ๊ณ  core Data ๊ตฌํ˜„ ์ „๊นŒ์ง€ ๊ณต๋ถ€ํ–ˆ๋‹ค. ๋ณด๊ณ  ๋”ฐ๋ผ ํ•˜๋Š” ๊ฑด ์‰ฝ์ง€๋งŒ ์ดํ•ด๊ฐ€ ์™„์ „ํžˆ ๋˜์ง€ ์•Š์•„ #1 - #2๊นŒ์ง€์˜ ๊ฐ•์˜ ๋‚ด์šฉ์„ ์ •๋ฆฌํ•ด๋ณด๋ ค truecode-95.tistory.com ์ด์–ด์„œ ์ž‘์„ฑํ•ด๋ณด๋Š” swift ๋ฉ”๋ชจ์žฅ ๋งŒ๋“ค๊ธฐ 8. data source ๊ตฌํ˜„ 8-1. MemoListTableViewContoller.swift -> numberOfSection method delete 8-2. tableView method dumyData ์ˆซ์ž๋ฅผ return 8-3. ์•„๋ž˜ tableView method ์ฃผ์„ ์ œ๊ฑฐ 8-4. ์‹๋ณ„์ž identifier ๊ฐ’ ํ™•์ธํ•˜๊ธฐ ..

iOS 2021.08.26

[M1 Mac] XCODE(12.5.1) Unable to boot device due to insufficient system resources. Domain: NSPOSIXErrorDomain Code: 67 Failure Reason:... ํ•ด๊ฒฐ

์˜ค๋ฅ˜ ๋‚ด์šฉ : Unable to boot device due to insufficient system resources. Domain: NSPOSIXErrorDomain Code: 67 Failure Reason: The current system settings are not sufficient to allow booting additional simulators: maxFiles: 12288, openFiles: 10500, enforcedFilesBuffer: 1868 Recovery Suggestion: Please see Simulator Help for information on adjusting resource limits. ์›์ธ : ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ๋ฅผ ์‹คํ–‰ํ•  ๋•Œ ํ™œ์„ฑ ํ”„๋กœ์„ธ์Šค์˜ ์ตœ๋Œ€ ๊ฐ’ ๋˜๋Š” ์—ด๋ฆฐ..

iOS 2021.08.19

[M1 Mac] XCODE(12.5.1) Showing Recent MessagesSigning for "" requires a development team. Select a development team in the Signing & Capabilities editor. ํ•ด๊ฒฐ

์—๋Ÿฌ ๋‚ด์šฉ : "ํ”„๋กœ์ ํŠธ ํŽธ์ง‘๊ธฐ์—์„œ ๊ฐœ๋ฐœํŒ€์„ ์„ ํƒํ•˜์„ธ์š”" ์ฆ‰, ํ•„์ˆ˜ ์ •๋ณด ๊ฐ’์ด ๋ˆ„๋ฝ๋˜์—ˆ๋‹ค๋Š” ์˜๋ฏธ์ด๋‹ค. 1. Accounts ์— Apple ID ์ž…๋ ฅ 2. ํ”„๋กœ์ ํŠธ ์—๋””ํ„ฐ ํด๋ฆญ -> Signing & Capabilities -> Team -> Personal Team ํด๋ฆญ

iOS 2021.08.17

[M1 Mac] XCODE(12.5.1) swift vs Objective-C

Swift ๊ณต๋ถ€๋ฅผ ํ•˜๋˜ ์ค‘, Objective-C์–ธ์–ด๋ฅผ ์•Œ๊ฒŒ ๋˜์—ˆ๊ณ  ์ด ๋‘˜์˜ ์ฐจ์ด์ ์„ ์ •๋ฆฌํ•ด๋ณด๋ ค๊ณ  ํ•œ๋‹ค. ์ฐจ์ด์  Swift Objective-C Object-C๋ฅผ ๋ณด์™„ํ•œ ์–ธ์–ด์ด๋‹ค. C์–ธ์–ด์—์„œ ํŒŒ์ƒ๋˜์—ˆ๋‹ค. ์ฆ๊ฐ ์—ฐ์‚ฐ์ž๊ฐ€ ์—†๋‹ค. ++,-- ์ฆ๊ฐ ์—ฐ์‚ฐ์ž๊ฐ€ ์žˆ๋‹ค. ์„ธ๋ฏธ์ฝœ๋ก (;)์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š”๋‹ค. ์„ธ๋ฏธ์ฝœ๋ก (;)์„ ์‚ฌ์šฉํ•œ๋‹ค. ๋ณ€์ˆ˜ ํƒ€์ž…์ด ๋’ค์— ๋‚˜์˜จ๋‹ค. ๋ณ€์ˆ˜ ํƒ€์ž…์ด ์˜†์— ๋‚˜์˜จ๋‹ค. String ์ž๋ฃŒํ˜•์ด ์žˆ๋‹ค. String ์ž๋ฃŒํ˜•์ด ์—†๋‹ค. ํฌ์ธํ„ฐ๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š”๋‹ค. ์˜ค๋ธŒ์ ํŠธ ํƒ€์ž… ์˜†์— ํฌ์ธํ„ฐ(*)๋ฅผ ๋ถ™์ธ๋‹ค. func ํ•จ์ˆ˜์ด๋ฆ„(์ธ์ž๋ช…1: ์ธ์žํƒ€์ž…1....) -> ๋ฆฌํ„ด ํƒ€์ž… {} -(๋ฆฌํ„ดํƒ€์ž…) ํ•จ์ˆ˜์ด๋ฆ„:(์ธ์žํƒ€์ž…1)์ธ์ž๋ช…....{} ๋ณ€์ˆ˜ ํƒ€์ž…์„ ๊ผญ ๋ช…์‹œ ํ•˜์ง€ ์•Š์•„๋„๋จ ๋ณ€์ˆ˜ ํƒ€์ž…์„ ๊ผญ ๋ช…์‹œ ํ•ด์•ผํ•œ๋‹ค. ๋ฌธ์ž์—ด์— switch/..

iOS 2021.08.14

[M1 Mac] XCODE(12.5.1) swift ๋ฉ”๋ชจ์žฅ ๋งŒ๋“ค๊ธฐ(1),(2)

์ ์‹ฌ์‹œ๊ฐ„์ด๋‚˜ ํ‡ด๊ทผ ํ›„์— ์งฌ์งฌ์ด ๊ฐ•์˜๋ฅผ ๋ณด๋ฉฐ swift๋กœ ๋ฉ”๋ชจ์žฅ์„ ๋งŒ๋“ค์—ˆ๊ณ  core Data ๊ตฌํ˜„ ์ „๊นŒ์ง€ ๊ณต๋ถ€ํ–ˆ๋‹ค. ๋ณด๊ณ  ๋”ฐ๋ผ ํ•˜๋Š” ๊ฑด ์‰ฝ์ง€๋งŒ ์ดํ•ด๊ฐ€ ์™„์ „ํžˆ ๋˜์ง€ ์•Š์•„ #1 - #6๊นŒ์ง€์˜ ๊ฐ•์˜ ๋‚ด์šฉ์„ ์ •๋ฆฌํ•ด๋ณด๋ ค๊ณ  ํ•œ๋‹ค. 1. ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ ๋ฐ ์„ค์ •ํ•˜๊ธฐ [M1 Mac] XCODE(12.5.1) ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ ํ›„ Git ์—ฐ๋™ 1. project ์ƒ์„ฑํ•˜๊ธฐ Choose options for your new project : iOS - APP - Next Product Name ํ”„๋กœ์ ํŠธ์— ์‚ฌ์šฉํ•  ์ œ๋ชฉ์„ ์ž…๋ ฅ Team ์• ํ”Œ ๊ฐœ๋ฐœ์ž ๊ณ„์ •์„ ์„ ํƒ / ์—†๋‹ค๋ฉด ๋น„์›Œ๋‘์ž. Organization Identifier ํšŒ์‚ฌ๋ช….. truecode-95.tistory.com 2. Main UI ๊ตฌ์„ฑํ•˜๊ธฐ 2-1. ViewControl..

iOS 2021.08.13

[M1 Mac] XCODE(12.5.1) ios13 modal (Presentation Automatic -> FullScreen)

๊ฐ•์˜๋ฅผ ๋ณด๋ฉฐ ๋ฉ”๋ชจ ์•ฑ ํ”„๋กœ์ ํŠธ๋ฅผ ํ•˜๋˜ ์ค‘. ๊ธ€์„ ์ž…๋ ฅํ•˜๊ณ  ์ €์žฅ ์‹œ tableView.reloadData()๊ฐ€ ์•ˆ๋จน๋Š” ์ด์Šˆ๊ฐ€ ๋ฐœ์ƒ.. ์›์ธ์€ ios13 ๋ชจ๋‹ฌ ๋ฐฉ์‹์˜ ๋ณ€๊ฒฝ์œผ๋กœ ๋ทฐ๊ฐ€ ์™„์ „ํžˆ dismiss ๋˜์ง€ ์•Š๊ณ  viewWillAppear ํ˜ธ์ถœ์ด ์•ˆ ๋˜๊ธฐ ๋•Œ๋ฌธ. ์ด๋Ÿฐ ๊ฒฝ์šฐ ํ•ด๊ฒฐ๋ฐฉ์•ˆ์€ Presentation Automatic -> FullScreen์œผ๋กœ ๋ณ€๊ฒฝํ•˜๋ฉด ๋œ๋‹ค. ๊ฐ•์˜ : https://www.youtube.com/watch?v=HSQ4cVQzSj4&list=TLPQMTEwODIwMjEXfKm70laFcg&index=2 ์ฐธ๊ณ  : https://stackoverflow.com/questions/56435510/presenting-modal-in-ios-13-fullscreen

iOS 2021.08.12

[M1 Mac] XCODE(12.5.1) swift life cycle

1. init storyboard ์—์„œ View Controller๋“ค์„ ๋งŒ๋“ค ๊ฒฝ์šฐ View Controller์˜ ๊ฐ์ฒด๊ฐ€ ์ƒ์„ฑ๋  ๋•Œ ์ดˆ๊ธฐํ™” ์ž‘์—…์„ ํ•˜๋Š” ๋ฉ”์†Œ๋“œ. ์ฆ‰. ๋ทฐ๋ฅผ ๋งŒ๋“ค ๋•Œ ์‚ฌ์šฉํ•  ์ •๋ณด๋ฅผ ๋ทฐ ์ปจํŠธ๋กค๋Ÿฌ์— ์ €์žฅํ•˜๋Š” ๋‹จ๊ณ„ 2. loadView ํ™”๋ฉด์— ๋‚˜ํƒ€๋‚ผ View๋ฅผ ๋งŒ๋“œ๋Š” ๋ฉ”์†Œ๋“œ 3. viewDidLoad View Controller ๋‹จ ํ•œ ๋ฒˆ๋งŒ ํ˜ธ์ถœ, ์ฃผ๊ธฐ์ ์œผ๋กœ ๋ฐ์ดํ„ฐ๊ฐ€ ๋ณ€๊ฒฝ๋˜๊ฑฐ๋‚˜ ํ•˜๋Š” ํ–‰์œ„๋Š” ๋‹ค๋ฅธ ๋ฉ”์†Œ๋“œ์—์„œ ์ •์˜ override func viewDidLoad() { super.viewDidLoad() } 4. viewWillAppear View Controller์˜ ํ™”๋ฉด์ด ์˜ฌ๋ผ์˜ค๊ณ  ๋‚œ ์ดํ›„์— ํ˜ธ์ถœ๋˜๋Š” ๋ฉ”์†Œ๋“œ override func viewWillAppear(_ animated: Bool) { } ..

iOS 2021.08.11