๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ

(103)
[iOS] ์ฝ”๋“œ๋กœ ํ™”๋ฉด ๋ฐ๊ธฐ ์กฐ์ ˆ, ์ž๋™ ์ž ๊ธˆ ํ™œ์„ฑํ™”/๋น„ํ™œ์„ฑํ™” (์ ˆ์ „๋ชจ๋“œ) ํ•˜๊ธฐ(Swift, Objective-c) iOS ์ฝ”๋“œ๋กœ ํ™”๋ฉด ๋ฐ๊ธฐ ์กฐ์ ˆ, ์ž๋™ ์ž ๊ธˆ ํ™œ์„ฑํ™”/๋น„ํ™œ์„ฑํ™” (์ ˆ์ „๋ชจ๋“œ) ํ•˜๊ธฐ ์˜ค๋Š˜์€ ์•„์ดํฐ์˜ ํ™”๋ฉด์„ ์ œ์–ดํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ๋จผ์ €, ์š”์ฆ˜๊ฐ™์ด QR์„ ๋งŽ์ด ์‚ฌ์šฉํ•˜๋Š” ๋‚ ๋„ ์—†์„๊ฑฐ์—์š”.... ํ™”๋ฉด์ด ์–ด๋‘์šฐ๋ฉด QR์ธ์‹์ด ์ž˜ ์•ˆ๋˜๋ฏ€๋กœ QR ์‹คํ–‰์‹œ ํ™”๋ฉด์ด ์ตœ๋Œ€๋กœ ๋ฐ๋„๋ก ์ œ์–ดํ•˜๋Š” ๋กœ์ง์ด ํ•„์š”ํ•˜๊ฒ ์ฃ ~? ์ตœ๋Œ€ ๋ฐ๊ธฐ, ๋ฐ๊ธฐ๋ฅผ ์กฐ์ ˆํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ๋˜ํ•œ, ์ ˆ์ „๋ชจ๋“œ๋ฅผ ๋น„ํ™œ์„ฑํ™”์‹œํ‚ค๋ฉด ํ™”๋ฉด์ด ์ž๋™์œผ๋กœ ์ž ๊ธˆ ๋˜์ง€ ์•Š๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. โœ”๏ธ 1. ํ™”๋ฉด ๋ฐ๊ธฐ ์กฐ์ ˆํ•˜๊ธฐ UIScreen.main.brightness ๋กœ ํ™”๋ฉด ๋ฐ๊ธฐ๋ฅผ ์กฐ์ ˆํ•ฉ๋‹ˆ๋‹ค. ์ด๋•Œ, birghtness๋Š” floatํ˜•์œผ๋กœ 0.0~1.0์˜ ๊ฐ’์„ ๊ฐ€์ง‘๋‹ˆ๋‹ค. ์ตœ๋Œ€์˜ ๋ฐ๊ธฐ๋ฅผ ํ•˜๋ ค๋ฉด 1.0์œผ๋กœ ์„ค์ •ํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค. ํ˜„์žฌ ๋ฐ๊ธฐ๋ฅผ ๋ฐ›์•„์™€ ์ตœ๋Œ€(1.0)์ด ์•„๋‹Œ..
[MacOS] BitBar๋กœ 1์ผ 1์ปค๋ฐ‹ํ•ด๋ณด์ž BitBar๋กœ 1์ผ 1์ปค๋ฐ‹ํ•˜๊ธฐ ๊ฐœ๋ฐœ์ž๋ถ„๋“ค ์ž”๋””๐ŸŒฑ์ฑ„์šฐ๊ธฐ ๋งŽ์ด ํ•˜์ž–์•„์š”. 1์ผ 1์ปค๋ฐ‹ ๋ชฉํ‘œ ๋‹ค๋“ค ์„ธ์šฐ์‹œ์ฃ ~~? ํ•˜์ง€๋งŒ ๋งค์ผ ๋ธŒ๋ผ์šฐ์ €๋ฅผ ํ†ตํ•ด github์— ๋“ค์–ด๊ฐ€ ์ž”๋””๋ฅผ ํ™•์ธ ํ•˜๋Š”๊ฑด ์—ฌ๊ฐ„ ๊ท€์ฐฎ์€ ์ž‘์—…์ด ์•„๋‹ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ์ €๋Š” ํ•ธ๋“œํฐ ์œ„์ ฏ์„ค์ •๋„ ํ•ด๋†“์•˜์ง€๋งŒ, ๋” ์‰ฝ๊ฒŒ ํ™•์ธํ•˜๊ธฐ์œ„ํ•ด!! BitBar๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ฐ์Šคํฌํƒ‘์—์„œ Github ์ž”๋”” ์ƒํƒœ๋ฅผ ์†์‰ฝ๊ฒŒ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค. ์ž”๋””๋ง๊ณ ๋„ BitBar์— ์œ ์šฉํ•œ ํ”Œ๋Ÿฌ๊ทธ์ธ๋“ค์ด ๋งŽ๋”๋ผ๊ณ ์š”๐Ÿ‘๐Ÿป์„ค์น˜๋ฐฉ๋ฒ•์„ ์ตํ˜€์„œ ํ™œ์šฉํ•˜๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. โœ”๏ธ1. BitBar ์„ค์น˜ํ•˜๊ธฐ brew๋ฅผ ์ด์šฉํ•˜์—ฌ bitbar๋ฅผ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค. โœ— brew cask install bitbar ๋งŒ์•ฝ ์„ค์น˜์‹œ Unknown command ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค๋ฉด ๋‹ค์Œ ๋ช…๋ น์–ด๋กœ ์„ค์น˜ โœ— brew install --cask bitb..
[iOS] URL Scheme ์‚ฌ์šฉํ•˜์—ฌ ๋‹ค๋ฅธ ์•ฑ๊ณผ ํ†ต์‹ ํ•˜๊ธฐ URL Scheme๋กœ ๋‹ค๋ฅธ ์•ฑ๊ณผ ํ†ต์‹ ํ•ด๋ณด์ž iOS์—์„œ๋Š” URL Scheme์„ ํ†ตํ•ด ๋‹ค๋ฅธ ์•ฑ๊ณผ ํ†ต์‹ ์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค! URL Scheme์„ ํ†ตํ•ด ๋‹ค๋ฅธ ์•ฑ์˜ ์‹คํ–‰์„ ์š”์ฒญํ•˜๊ฑฐ๋‚˜ ๊ฐ„๋‹จํ•œ ๋ฐ์ดํ„ฐ๋ฅผ ์ „๋‹ฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด ์ „ํ™”ํ•˜๊ณ  ์‹ถ์€ ๋ฒˆํ˜ธ๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ๋ฐ”๋กœ ์ „ํ™” ์–ดํ”Œ๋กœ ์—ฐ๊ฒฐ๋˜์–ด ์ „ํ™”๋ฅผ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. *์‹ค์ œ ๊ธฐ๊ธฐ๋กœ ํ…Œ์ŠคํŠธ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ์—์„œ๋Š” sms๋งŒ ๊ฐ€๋Šฅ! ๐Ÿ”ฅ iOS Built-in URL Scheme iOS๋Š” ๊ธฐ๋ณธ์œผ๋กœ ์„ค์น˜๋œ ๋ฉ”์ผ, ์ „ํ™”, ๋ฉ”์‹œ์ง€ ์ง€๋„ ์•ฑ๊ณผ ํ†ต์‹ ํ•  ์ˆ˜ ์žˆ๋Š” ๋‚ด์žฅ URL Scheme์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ์ž์„ธํ•œ ์ •๋ณด์™€ ์‚ฌ์šฉ๋ฒ•์€ ์•„๋ž˜ ์‚ฌ์ดํŠธ์—์„œ ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๐Ÿ˜Š About Apple URL Schemes About Apple URL Schemes This document describes..
[Xcode] Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: [name length] > 0' ์—๋Ÿฌ ํ•ด๊ฒฐํ•˜๊ธฐ, ์Šคํ† ๋ฆฌ๋ณด๋“œ ์‚ญ์ œ ์—๋Ÿฌ ํ•ด๊ฒฐ ๐Ÿ’ก ์—๋Ÿฌ ๋‚ด์šฉ : Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: [name length] > 0' ๐Ÿ’ก ์›์ธ : ์Šคํ† ๋ฆฌ๋ณด๋“œ ์ง€์šฐ๊ณ  ๊ฐœ๋ฐœํ•˜๊ธฐ ์œ„ํ•ด, Info.plist ์—์„œ Storyboard Name ๊ฐ’์„ ์‚ญ์ œํ•œ ๊ฒฝ์šฐ!! ๐Ÿ’ก ํ•ด๊ฒฐ: ๊ฐ’์ด ์•„๋‹Œ ํ–‰ ์ž์ฒด๋ฅผ ์‚ญ์ œํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค!!๐Ÿ‘๐Ÿป
[Xcode] iOS ๋ฒ„์ „๋ณ„ ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ ์„ค์น˜ ๋ฐ ์ถ”๊ฐ€ํ•˜๊ธฐ Xcode ์„ค์น˜ ์‹œ ๊ธฐ๋ณธ์ ์œผ๋กœ ์ตœ์‹  iOS ๋ฒ„์ „์œผ๋กœ ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ๊ฐ€ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ์ „ ๋ฒ„์ „ ๋“ฑ ๋‹ค๋ฅธ ๋ฒ„์ „์˜ iOS๋กœ ํ…Œ์ŠคํŠธํ•ด์•ผ ํ•˜๋Š” ๊ฒฝ์šฐ iOS ๋ฒ„์ „๋ณ„ ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ ์„ค์น˜ ๋ฐ ์ถ”๊ฐ€ํ•˜๋Š” ๋ฒ•์„ ์•Œ๋ ค๋“œ๋ฆฝ๋‹ˆ๋‹ค. ๐Ÿ’ก ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ iOS ๋ฒ„์ „๋ณ„ ์„ค์น˜ 1. Xcode > Preferences 2. Components ๋ฉ”๋‰ด์—์„œ ํ•„์š”ํ•œ iOS ๋ฒ„์ „์˜ ๋‹ค์šด๋กœ๋“œ ๋ฒ„ํŠผ์„ ๋ˆ„๋ฅด๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋‹ค์šด๋กœ๋“œ๊ฐ€ ์ง„ํ–‰๋ฉ๋‹ˆ๋‹ค. ๋‹ค์šด๋กœ๋“œ๊ฐ€ ์™„๋ฃŒ๋˜๋ฉด ํŒŒ๋ž€์ƒ‰ ์ฒดํฌ๋ฐ•์Šค๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. ๐Ÿ’ก ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ iOS ๋ฒ„์ „ ์ˆ˜์ • 1. Window > Devices and Simulators 2. ์ขŒ์ธก ํ•˜๋‹จ์˜ + ๋ฒ„ํŠผ์„ ํด๋ฆญ 3. ๋‹ค์šด ๋ฐ›์€ iOS ๋ฒ„์ „์œผ๋กœ ์ƒˆ๋กœ์šด ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ๋ฅผ ํด๋ฆญํ•ด์ค๋‹ˆ๋‹ค. ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ ์ด๋ฆ„, Device Type๊ณผ ํ•จ๊ป˜ ๋‹ค์šด๋กœ๋“œํ•œ iOS ๋ฒ„์ „์œผ๋กœ ์„ค์ • ํ›„..
[Error, Xcode] Info.plist ๊ฒฝ๋กœ ์ด๋™์‹œ info.plist cannot be found ํ•ด๊ฒฐํ•˜๊ธฐ Info.plist ๊ฒฝ๋กœ ์ด๋™์‹œ ์—๋Ÿฌ ํ•ด๊ฒฐ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค. info.plist cannot be found ํ•ด๊ฒฐํ•˜๊ธฐ info.plist ๊ฒฝ๋กœ๋ฅผ ์ฐพ์ง€ ๋ชปํ•˜์—ฌ ์ปดํŒŒ์ผ์ด ์—๋Ÿฌ ๋‚˜๋Š” ๊ฒฝ์šฐ 'build input file cannot be found' ์™€ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋‚˜๋Š”๋ฐ, ํ•ด๋‹น ํ”„๋กœ์ ํŠธ์˜ TARGETS > Build Settings > Packaging > Info.plist File ๊ฐ’์ธ info.plist์˜ ๊ฒฝ๋กœ๋ฅผ ํ˜„์žฌ ๊ฒฝ๋กœ์— ๋งž๊ฒŒ ์ˆ˜์ •ํ•˜๋ฉด ํ•ด๊ฒฐ!!!๐Ÿ˜Š
[DB ๋ชจ๋ธ๋ง/์„ค๊ณ„] Metadata(๋ฉ”ํƒ€๋ฐ์ดํ„ฐ) ๋ž€? ๐Ÿ’ก Metadata(๋ฉ”ํƒ€๋ฐ์ดํ„ฐ) ๋ž€? ์ƒ์„ฑ๋˜๋Š” ์ •๋ณด์˜ ์–‘์ด ๋„ˆ๋ฌด ๋งŽ์€ ์š”์ฆ˜, ํ•„์š”ํ•œ ์ •๋ณด๋ฅผ ํŒ๋ณ„ํ•˜๋Š” ๊ฒŒ ์ค‘์š”ํ•˜๋‹ค. ๋Œ€์šฉ๋Ÿ‰ ๋ฐ์ดํ„ฐ ์‹œ๋Œ€์—์„œ ์ •๋ณด๋ฅผ ํšจ๊ณผ์ ์œผ๋กœ ์ž…์ˆ˜, ์กฐ์ง, ๊ด€๋ฆฌํ•˜๊ธฐ ์œ„ํ•ด ์ƒ๊ฒจ๋‚œ Metadata(๋ฉ”ํƒ€๋ฐ์ดํ„ฐ)์— ๋Œ€ํ•ด ์•Œ์•„๋ณด์ž. โœ”๏ธ Meta + Data Meta๋Š” ์˜์–ด์—์„œ ์ ‘๋‘์‚ฌ๋กœ ์“ฐ์ด๋ฉฐ ~์— ๋Œ€ํ•ด์„œ๋ผ๋Š” ๋œป์œผ๋กœ ์“ฐ์ธ๋‹ค. Data์™€ ํ•ฉ์ณ์ง„ ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ๋Š” ์ง์—ญํ•˜๋ฉด '๋ฐ์ดํ„ฐ์— ๋Œ€ํ•œ ๋ฐ์ดํ„ฐ' ๋ผ๊ณ  ํ•  ์ˆ˜ ์žˆ๋‹ค. โœ”๏ธ '๋‹ค๋ฅธ ๋ฐ์ดํ„ฐ๋ฅผ ์„ค๋ช…ํ•ด ์ฃผ๋Š” ๋ฐ์ดํ„ฐ' '์†์„ฑ์ •๋ณด'๋ผ๊ณ ๋„ ๋ถˆ๋ฆฌ๋Š” ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ๋Š” '๋ฐ์ดํ„ฐ์— ๊ด€ํ•œ ๊ตฌ์กฐํ™”๋œ ๋ฐ์ดํ„ฐ', '๋‹ค๋ฅธ ๋ฐ์ดํ„ฐ๋ฅผ ์„ค๋ช…ํ•ด ์ฃผ๋Š” ๋ฐ์ดํ„ฐ'์ด๋‹ค. ์‰ฝ๊ฒŒ ์„ค๋ช…ํ•˜๋ฉด, Metadata(๋ฉ”ํƒ€๋ฐ์ดํ„ฐ)๋Š” ๋ฐ์ดํ„ฐ ํ•ญ๋ชฉ๊ณผ ๊ทธ์— ๋”ฐ๋ฅธ ๋ฐ์ดํ„ฐ ๊ฐ’์ด๋ผ๊ณ  ํ•  ์ˆ˜ ์žˆ๋‹ค. ๊ตฌ์กฐํ™”๋œ ์ •๋ณด๋ฅผ ๋ถ„์„, ๋ถ„๋ฅ˜ํ•˜๊ณ , ..
[Error, Xcode] Xcode 12.3์—์„œ Building for iOS Simulator, but the linked and embedded framework '*.framework' was built for iOS + iOS Simulator ํ•ด๊ฒฐํ•˜๊ธฐ Xcode 12.3์—์„œ์„œ Building for iOS Simulator, but the linked and embedded framework '*.framework' was built for iOS + iOS Simulator ์—๋Ÿฌ ๋ฐœ์ƒ์‹œ ํ•ด๊ฒฐํ•˜๊ธฐ [ERROR] Building for iOS Simulator, but the linked and embedded framework '*.framework' was built for iOS + iOS Simulator [Solution] Target > Build Settings > Validate Workspace > Yes๋กœ ๋ณ€๊ฒฝ ๊ด€๋ จ ๋งํฌ Building for iOS Simulator, but the linked framework '****.fram..

๋ฐ˜์‘ํ˜•