728x90
๋ฐ˜์‘ํ˜•

Computer Science 99

[์šด์˜์ฒด์ œ] Multiprocessing๊ณผ Multithreading์˜ ์ฐจ์ดโ€ผ๏ธ

๐Ÿ“MultiProcessing - ํ•˜๋‚˜์˜ ํ”„๋กœ๊ทธ๋žจ์„ ์—ฌ๋Ÿฌ๊ฐœ์˜ process๋กœ ๊ตฌ์„ฑํ•˜์—ฌ ๊ฐ process๋งˆ๋‹ค ํ•˜๋‚˜์˜ ์ž‘์—…(task)์”ฉ ์ฒ˜๋ฆฌํ•˜๋„๋ก ํ•˜๋Š” ๊ฒƒ ์˜ˆ์‹œ) ํฌ๋กฌ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ์‚ฌ์šฉํ•œ๋‹ค๊ณ  ํ•ด๋ณด์ž. ํฌ๋กฌ ์ฐฝ์„ ์—ฌ๋Ÿฌ๊ฐœ ๋„์šด๋‹ค๊ณ  ํ•  ๋•Œ, ์ฒซ ๋ฒˆ์งธ ํฌ๋กฌ์ฐฝ์„ ์‹คํ–‰์‹œํ‚ค๋Š” process, ๋‘๋ฒˆ์งธ ํฌ๋กฌ์ฐฝ์„ ์‹คํ–‰์‹œํ‚ค๋Š” process, ์„ธ๋ฒˆ์งธ ํฌ๋กฌ์ฐฝ์„ ์‹คํ–‰์‹œํ‚ค๋Š” process ... ์ด๋Ÿฐ์‹์œผ๋กœ ํฌ๋กฌ์ด๋ผ๋Š” ํ•˜๋‚˜์˜ ํ”„๋กœ๊ทธ๋žจ์—์„œ ์ผ์–ด๋‚˜๋Š” ์—ฌ๋Ÿฌ๊ฐœ์˜ ์ž‘์—…์„ process๋ฅผ ์—ฌ๋Ÿฌ๊ฐœ ์ƒ์„ฑํ•˜์—ฌ ํ•˜๋‚˜์”ฉ ์ฒ˜๋ฆฌํ•˜๋„๋ก ํ•ด์ฃผ๋Š” ๊ฒƒ..! ์žฅ์  - ๋…๋ฆฝ๋œ ๋ฉ”๋ชจ๋ฆฌ ์˜์—ญ์„ ๊ฐ์ž ํ• ๋‹น๋ฐ›๊ธฐ ๋•Œ๋ฌธ์— process๊ฐ„ ์„œ๋กœ์˜ ์ž์›์— ์นจํˆฌํ•  ์ˆ˜ ์—†์Œ → ์•ˆ์ •์„ฑ์ด ๋†’์Œ ๋‹จ์  - ์ž‘์—…๋Ÿ‰์ด ๋งŽ์•„์ง€๋ฉด *context switching์—์„œ์˜ ์˜ค๋ฒ„ํ—ค๋“œ ๋ฐœ์ƒ ๊ฐ€๋Šฅ (pro..

[์šด์˜์ฒด์ œ] Process์™€ thread์˜ ์ฐจ์ด (program vs process vs thread)

๐Ÿ“Program - ์ฝ”๋“œ๋กœ ๋งŒ๋“ค์–ด์ง„ ์ง‘ํ•ฉ์ฒด - ์˜ˆ์‹œ) ํฌ๋กฌ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ํ•˜๋‚˜์˜ ํ”„๋กœ๊ทธ๋žจ์ด๋ผ ํ•  ์ˆ˜ ์žˆ์Œ ๐Ÿ“Process - ํ”„๋กœ๊ทธ๋žจ์„ ์‹คํ–‰์‹œํ‚ค๋ฉด ๊ทธ๊ฒŒ process๊ฐ€ ๋จ!! (์‹คํ–‰์ค‘์ธ ํ”„๋กœ๊ทธ๋žจ์ด๊ธฐ ๋•Œ๋ฌธ์— job, task๋ผ๊ณ ๋„ ๋ถˆ๋ฆผ) - OS๋กœ๋ถ€ํ„ฐ ์‹œ์Šคํ…œ ์ž์›์„ ํ• ๋‹น๋ฐ›๋Š” ์ž‘์—…์˜ ๋‹จ์œ„ (process๋Š” ๋…๋ฆฝ๋œ memory์˜์—ญ์„ ๊ฐ์ž ํ• ๋‹น๋ฐ›์Œ) ์‹œ์Šคํ…œ ์ž์›์„ ํ• ๋‹น๋ฐ›๋Š”๋‹ค๋ผ... ์‹œ์Šคํ…œ ์ž์›์ด ๋ญ˜๊นŒ? memory์˜์—ญ์€? ์šฐ์„  ๊ทธ๋ฆผ์œผ๋กœ process๊ฐ€ ์–ด๋–ป๊ฒŒ ์ƒ๊ฒผ๋Š”์ง€ ๋ณด์ž. process์•ˆ์— code, data, stack, heap์ด ๋“ค์–ด์žˆ๋‹ค. ์–˜๋„ค๊ฐ€ ๋ฐ”๋กœ memory ์˜์—ญ..! ๐Ÿ“Memory ๊ตฌ์กฐ 1. code ์ฝ”๋“œ ์ž์ฒด๋ฅผ ๊ตฌ์„ฑํ•˜๋Š” ๋ฉ”๋ชจ๋ฆฌ ์˜์—ญ 2. data ๋ฐ์ดํ„ฐ๋Š” *์ „์—ญ๋ณ€์ˆ˜, ์ •์ ๋ณ€์ˆ˜(static), ๋ฐฐ..

[text mining] word embedding ์ด๊ฑฐ๋ฉด ๋!

ํ…์ŠคํŠธ ๋ฐ์ดํ„ฐ ํ‘œํ˜„ ๋ฐฉ์‹ ํ…์ŠคํŠธ ๊ธฐ๋ฐ˜์˜ ๋ชจ๋ธ์„ ๋งŒ๋“ค๊ธฐ ์œ„ํ•ด์„œ๋Š” ํ…์ŠคํŠธ ๋ฐ์ดํ„ฐ๋ฅผ ์ˆซ์ž๋กœ ํ‘œํ˜„ํ•ด์•ผํ•จ ํ…์ŠคํŠธ ๋ฐ์ดํ„ฐ๋ฅผ ํ‘œํ˜„ํ•˜๋Š” ๋ฐฉ์‹(feature representation)์œผ๋กœ sparse representation์ด ๋จผ์ € ๋“ฑ์žฅํ•˜์˜€๊ณ  sparse representaion์˜ ๋‹จ์ ์„ ๋ณด์™„ํ•˜๊ธฐ ์œ„ํ•ด dense representation๊ฐ€ ๋“ฑ์žฅ sparse representation์˜ ๋Œ€ํ‘œ์ ์ธ ๊ธฐ๋ฒ•์€ one-hot encoding์ด๊ณ  dense representation์˜ ๋Œ€ํ‘œ์ ์ธ ๊ธฐ๋ฒ•์€ word embedding one-hot encoding ์ปดํ“จํ„ฐ๋Š” ๋ฌธ์ž๋ฅผ ์ดํ•ดํ•˜์ง€ ๋ชปํ•˜๊ธฐ ๋•Œ๋ฌธ์— ์ˆซ์ž๋กœ ํ‘œํ˜„ํ•ด์ค˜์•ผํ•˜๋ฉฐ one-hot encoding์€ ์—ฌ๋Ÿฌ ํ‘œํ˜„๊ธฐ๋ฒ•๋“ค ์ค‘ ๊ฐ€์žฅ ๊ธฐ๋ณธ์ ์ธ ๋ฐฉ๋ฒ• sparse representation์—..

[๋น„ํŠธ์ฝ”์ธ] ๋น„ํŠธ์ฝ”์ธ ์ฑ„๊ตด์ด๋ž€? ์‰ฝ๊ฒŒ ์„ค๋ช…! โ›

๋น„ํŠธ์ฝ”์ธ์€ 2009๋…„์— ์‹œ์ž‘๋œ ์•”ํ˜ธํ™”ํ์ฃ ?? ์•”ํ˜ธํ™”ํ์˜ ๊ฐ€์žฅ ํฐ ํŠน์ง•์€ ์–ด๋Š๋‚˜๋ผ๋“  ์ •๋ถ€, ๊ธฐ์—…, ์€ํ–‰ ๋“ฑ์—์„œ ์ปจํŠธ๋กคํ•  ์ˆ˜ ์—†๋Š” ํ™”ํ๋ผ๋Š” ์ ์ธ๋ฐ์š”, ์ด์ค‘ ํ•˜๋‚˜๊ฐ€ ๋น„ํŠธ์ฝ”์ธ ์ž…๋‹ˆ๋‹ค! ์–ด์จ‹๋“  ๋ˆ„๊ตฐ๊ฐ€๋Š” ์ด ํ™”ํ๋ฅผ ์ฐ์–ด๋‚ด์•ผ ์‚ฌ๋žŒ๋“ค์ด ์‚ฌ๊ณ  ํŒ” ์ˆ˜ ์žˆ๋Š”๊ฑฐ๊ฒ ์ฃ ?? ์ด๋•Œ ์•”ํ˜ธํ™”ํ๋ฅผ ์ฐ์–ด๋‚ด๋Š”๊ฑธ ์ฑ„๊ตดํ•œ๋‹ค๊ณ  ํ‘œํ˜„ํ•˜๋Š”๋ฐ์š”! ์™œ ๊ทธ๋ ‡๊ฒŒ ํ‘œํ˜„์„ ํ•˜๋ƒ๊ตฌ์š”? ๋Œ€๊ฒŒ ๋น„ํŠธ์ฝ”์ธ์„ '๊ธˆ'์— ๋น„์œ ๋ฅผ ๋งŽ์ด ํ•ฉ๋‹ˆ๋‹ค ๊ธˆ์ด ๊ฐ€์ง„ ํฌ์†Œ์„ฑ ๋•Œ๋ฌธ์— ๊ทธ ๊ฐ€์น˜๋ฅผ ์ธ์ •๋ฐ›๋“ฏ์ด ๋น„ํŠธ์ฝ”์ธ๋„ ์ฐ์–ด๋‚ผ ์ˆ˜ ์žˆ๋Š” ์ตœ๋Œ€๋Ÿ‰์ด ์ •ํ•ด์ ธ์žˆ์–ด์š”! ์ด๋Ÿฐ์ ๊ณผ ๋”๋ถˆ์–ด ๊ธˆ๊ด‘์—์„œ ๊ธˆ์„ ์ฑ„๊ตดํ•˜๋Š” ๊ฒƒ์— ๋น„์œ ํ•˜์—ฌ ๋น„ํŠธ์ฝ”์ธ๋„ ์ฑ„๊ตดํ•œ๋‹ค๊ณ  ํ‘œํ˜„ํ•ฉ๋‹ˆ๋‹ค ๐Ÿ˜Š ๊ทธ๋ ‡๋‹ค๋ฉด ์ฑ„๊ตด์€ ์–ด๋–ป๊ฒŒ ํ•˜๋‚˜์š”?? ๋น„ํŠธ์ฝ”์ธ์„ ์ฑ„๊ตดํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” ์ปดํ“จํ„ฐ๋Š” ๊ต‰์žฅํžˆ ์–ด๋ ค์šด ์ˆ˜ํ•™๋ฌธ์ œ๋ฅผ ํ’€์–ด์•ผํ•˜๋Š”๋ฐ์š”, ๋ฌธ์ œ๋ฅผ ํ’€๋ฉด ๋ธ”๋ก ํ•˜๋‚˜๋ฅผ ๋ฐ›์Šต๋‹ˆ๋‹ค. ๋ธ”๋ก..

[xcode] xcode์— audio asset ์ถ”๊ฐ€ (local๋ง๊ณ ..!)

xcode์— ์Œ์•…ํŒŒ์ผ์„ ์ถ”๊ฐ€! #xcode audio asset #asset catalog #audio file upload #add music asset 1. xcode์—์„œ File > New > File... ํด๋ฆญ 2. ์Šคํฌ๋กค์„ ์ข€ ๋‚ด๋ ค์„œ Resource์˜ Asset Catalog ํด๋ฆญ 3. ์›ํ•˜๋Š”๋Œ€๋กœ assest ๋ฌถ์Œํด๋”์˜ ์ด๋ฆ„ ๋ณ€๊ฒฝํ•˜๊ณ  audio๋ฐ์ดํ„ฐ ๊ทธ ์•ˆ์— ๋„ฃ์œผ๋ฉด ๋!! ๋”๋ณด๊ธฐ reference : https://developer.apple.com/library/archive/qa/qa1913/_index.html Technical Q&A QA1913: Accessing Audio Files in Asset Catalogs Technical Q&A QA1913 Accessing Audio Fi..

[ios] swift MVVM vs MVC ์ฐจ์ด

MVVM : MVC์™€ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๊ฐœ๋ฐœ์— ์ฃผ๋กœ ์‚ฌ์šฉ๋˜๋Š” ๋””์ž์ธ ํŒจํ„ด Model - View - ViewModel ๐Ÿ’ก MVC์™€ MVVM ๋‹จ์ˆœ์ฐจ์ด Controller๊ฐ€ ์•„๋‹Œ ViewModel ๊ณ„์ธต์„ ๊ฐ€์ง€๊ณ  ์žˆ์Œ ViewModel ๋˜ํ•œ Controller์ฒ˜๋Ÿผ View์™€ Model์˜ ์ค‘๊ฐ„ ๊ณ„์ธต ์—ญํ• ์„ ํ•จ 1. Model : ๋ฐ์ดํ„ฐ์™€ ๊ด€๋ จ๋œ ์ฝ”๋“œ๋ฅผ ๋‹ด๊ณ  ์žˆ๋Š” ๊ณ„์ธต (MVC์˜ Model๊ณผ ๋งˆ์ฐฌ๊ฐ€์ง€) ๋ฐ์ดํ„ฐ๋ฅผ ๋‹ด์•„๋‘๊ธฐ ์œ„ํ•œ ๊ตฌ์กฐ์ฒด๋“ค(struct) ๋„คํŠธ์›Œํฌ ๋กœ์ง JSON ํŒŒ์‹ฑ ์ฝ”๋“œ ๋“ฑ ... struct Person { // Person์— ๋Œ€ํ•œ ๋ฐ์ดํ„ฐ ๋‹ด์€ ๊ตฌ์กฐ์ฒด let name: String var age: Int init(json: JSON) { // JSON ํŒŒ์‹ฑ name = json["name"].s..

[xcode] xcode๋นŒ๋“œ์‹œ ์ปดํ“จํ„ฐ ์ฃฝ์Œ/xcode ๋ฉ”๋ชจ๋ฆฌ ๋ˆ„์ˆ˜ํ˜„์ƒ/xcode memory leak (ํ•ด๊ฒฐ๋ฐฉ๋ฒ•O)

์ผ๋‹จ ํ˜„์žฌ xcode๋ฒ„์ „์„ ํ™•์ธํ•ด๋ด…๋‹ˆ๋‹ค ๋ฒ„์ „์ด 13.1์ด๋ผ๋ฉด? ํ•ด๊ฒฐ๋ฐฉ๋ฒ•์€ 13.2๋กœ ์—…๊ทธ๋ ˆ์ด๋“œํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค swift-frontend memory usage | Apple Developer Forums I had the same issue and had to downgrade Xcode to 12.5.1 and the issue is gone. First I tried removing some code, including GeometryReader to avoid the problem, but it did not work. Tried other things such as restart Xcode, mac, launching other projects, developer.apple.com

[swift] Alamofire๋ž€? Alamofire ์‚ฌ์šฉ๋ฒ• ๋ฝ€๊ฐœ๊ธฐ

Alamofire : ๋น„๋™๊ธฐ๋กœ ์ˆ˜ํ–‰ํ•˜๋Š” swift๊ธฐ๋ฐ˜์˜ HTTP ๋„คํŠธ์›Œํ‚น ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ (ํ†ต์‹  ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ) ๐Ÿ’ก ์™œ ํ•„์š”ํ•œ๊ฐ€ ? - ์„œ๋ฒ„์™€ ํ†ต์‹ ์„ ํ•˜๊ธฐ ์œ„ํ•ด ! ๋” ๊ตฌ์ฒด์ ์œผ๋ก , ์„œ๋ฒ„์—์„œ jsonํ˜•์‹์˜ ๋ฐ์ดํ„ฐ๋ฅผ ๋ฐ›์•„์˜ค๋ ค๋ฉด HTTP ํ†ต์‹ ์„ ํ•ด์•ผํ•˜๋ฉฐ HTTP ํ†ต์‹  ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜ ์ตœ๊ฐ•์ž Alamofire๋ฅผ ์ด์šฉํ•ด๋ณด์ž ! Apple์˜ Foundation ํ”„๋ ˆ์ž„์›Œํฌ์—์„œ ์ œ๊ณตํ•˜๋Š” URL ๋กœ๋”ฉ ์‹œ์Šคํ…œ์„ ๊ธฐ๋ฐ˜์œผ๋กœ ๊ตฌ์ถ•๋˜์–ด์žˆ์Œ URLSession ๋ฐ URLSessionTask ๊ฐ™์€ ํด๋ž˜์Šค๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์‰ฝ๊ฒŒ ๊ตฌํ˜„๋˜์–ด์žˆ์Œ Alamofire๋Š” CocoaPods๋ฅผ ์‚ฌ์šฉํ•ด ์‰ฝ๊ฒŒ ์„ค์น˜ ๊ฐ€๋Šฅ ์‚ฌ์šฉ๋ฒ• Alamofire๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด์„  ์ œ์ผ ๋จผ์ € import Alamofire ํ•ด์คŒ โœฑ ์ฐธ๊ณ  ) Alamofire ver5 ์ดํ›„๋ถ€ํ„ฐ๋Š” AF ๊ฐ€ Se..

[swift] Metal vs OpenGL

Metal vs OpenGL ๐Ÿ“ข ํ˜„์žฌ Apple ์ž…์žฅ : OpenGL deprecate ์‹œํ‚ฌ ๊ฒƒ์ด๋ฏ€๋กœ Metal ์‚ฌ์šฉ ๊ถŒ์žฅ! OpenGL : Open Graphics Libaray ์‹ค๋ฆฌ์ฝ˜ ๊ทธ๋ž˜ํ”ฝ์Šค์‚ฌ์—์„œ ๋งŒ๋“  2์ฐจ์› ๋ฐ 3์ฐจ์› ๊ทธ๋ž˜ํ”ฝ์Šค ํ‘œ์ค€ API 3D ๊ฒŒ์ž„์—์„œ ํ•„์š”ํ•œ ์ž…์ฒด๊ฐ, ํ…์Šค์ณ, ๊ทธ๋ฆผ์ž์˜ ๋ณ€ํ™” ๋“ฑ์„ ํ‘œํ˜„ํ•˜๊ธฐ ์œ„ํ•ด ๋งŽ์€ ์—ฐ์‚ฐ๋“ค์ด ํ•„์š”ํ•˜๋ฉฐ, ์†Œํ”„ํŠธ์›จ์–ด๋งŒ์œผ๋กœ๋Š” ํ•œ๊ณ„๊ฐ€ ์žˆ์Œ. ํ•˜๋“œ์›จ์–ด ๊ฐ€์† ๊ธฐ๋Šฅ ์ด ํ•„์ˆ˜์  ! → ์ด๋Ÿฐ ๋ณต์žกํ•œ ์—ฐ์‚ฐ๊ณผ ํ•˜๋“œ์›จ์–ด ์ œ์–ด๋ฅผ ๋Œ€์‹  ํ•ด์ฃผ๋Š” ๊ฒƒ์ด 3D graphic library๋“ค์ด๊ณ  OpenGL์ด ๊ทธ ์ค‘ ํ•˜๋‚˜ OpenGL ES : OpenGL for Embedded System ๋ชจ๋ฐ”์ผ๊ณผ ๊ฐ™์€ ์ž„๋ฒ ๋””๋“œ ์‹œ์Šคํ…œ์„ ์œ„ํ•œ OpenGL OpenGL์˜ subset Metal ์• ํ”Œ ์ด ๊ฐœ๋ฐœํ•œ ํ”„๋ ˆ..

[swift] swiftui Text ์‚ฌ์ด์ฆˆ์— ๋งž์ถฐ์„œ frameํฌ๊ธฐ ์ •ํ•˜๊ธฐ (fixedSize)

์˜ˆ์‹œ : ์•„๋ž˜ ์ฝ”๋“œ๋ฅผ ์‹คํ–‰์‹œํ‚ค๋ฉด struct Title: View { var body: some View { VStack { Text("Statistics") Rectangle() .foregroundColor(.red) .frame(height: (5.0)) } } } ์œ„์™€ ๊ฐ™์ด ๋นจ๊ฐ„์ค„์ด ์ƒ๊ธด๋‹ค. ํ•˜์ง€๋งŒ ๋‚ด๊ฐ€ ์›ํ•˜๋Š” ๊ฑด..!! ์ด๋ ‡๊ฒŒ text ์‚ฌ์ด์ฆˆ์— ๋งž์ถฐ์„œ frameํฌ๊ธฐ๊ฐ€ ์ง€์ •๋˜๊ธธ ๋ฐ”๋ž€๋‹ค. ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ฝ”๋“œ๋ฅผ ์ˆ˜์ •ํ•˜๋ฉด ๋œ๋‹ค !!!! struct Title: View { var body: some View { VStack { Text("Statistics") Rectangle() .foregroundColor(.red) .frame(height: (5.0)) }.fixedSize() } } ํ•ด๊ฒฐ๋ฐฉ๋ฒ• :..

[htop] htop install ์—๋Ÿฌ 'E: Unable to locate package htop' ํ•ด๊ฒฐ๋ฐฉ๋ฒ• !!

htop install ํ•˜๋ ค๊ณ  ํ• ๋•Œ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์—๋Ÿฌ๋ฉ”์„ธ์ง€๊ฐ€ ๋œจ๋Š” ๊ฒฝ์šฐ ..! user@test:~$ sudo apt-get install htop Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package htop ํ•ด๊ฒฐ๋ฐฉ๋ฒ•์€ ๋งค์šฐ ๊ฐ„๋‹จํ•˜๋‹ค sudo apt-get update ๋ฅผ ํ•ด์ฃผ๊ณ  ๋‹ค์‹œ installํ•˜๋ฉด ๋œ๋‹ค !!! user@test:~$ sudo apt-get update Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Get:2 http://archive.ubu..

[python] ํ…์ŠคํŠธ ํŒŒ์ผ ์ž๋ฅด๊ธฐ (text file crop)

#ํŒŒ์ด์ฌ ํ…์ŠคํŠธ ํŒŒ์ผ ๋‚ ๋ฆฌ๊ธฐ #python textfile crop #python textfile delete line ๋‹ค์Œ๊ณผ ๊ฐ™์€ ํ…์ŠคํŠธํŒŒ์ผ์ด ์žˆ๋‹ค๊ณ  ํ•˜์ž ์—ฌ๊ธฐ์„œ ํŠน์ • line ํ˜น์€ ์—ฌ๋Ÿฌ๊ฐœ์˜ line์„ ์ง€์šฐ๊ณ  ์‹ถ๋‹ค๋ฉด..?? ์ ˆ๋ฐ˜์„ ๋‚ ๋ ค๋ฒ„๋ฆฌ๊ณ  ์‹ถ๋‹ค๋ฉด?? line 1 of the text file line 2 of the text file line 3 of the text file line 4 of the text file line 5 of the text file # 1. ํ…์ŠคํŠธ ํŒŒ์ผ ์ฝ์–ด๋“ค์ด๊ธฐ # filename์— ํ…์ŠคํŠธํŒŒ์ผ ๊ฒฝ๋กœ๋ฅผ string์œผ๋กœ ๋„ฃ์–ด์ค€๋‹ค filename = './textfile.txt' text_file = opend(filename).readlines() # 2. ์ง€์šฐ๊ณ  ์‹ถ์€ li..

[Xcode] Compiling failed: extra tokens at the end of #sourceLocation directive ์—๋Ÿฌ ํ•ด๊ฒฐ โ€ผ๏ธ

xcode preview๊ธฐ๋Šฅ์„ ์‚ฌ์šฉํ•˜๋ ค๊ณ  ํ•˜๋ฉด ์ž๊พธ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค Compiling failed: extra tokens at the end of #sourceLocation directive ์ด์™€ ๊ฐ™์€ ์—๋Ÿฌ๋Š” xcode ๋ฒ„๊ทธ๋ผ๊ณ  ํ•œ๋‹ค. if ๋ฌธ์ด๋‚˜ ํด๋กœ์ €์™€ ๊ฐ™์ด '{' ๊ด„ํ˜ธ ์—ด๊ธฐ ๋ถ€๋ถ„์— ์ฃผ์„์ด ์žˆ์œผ๋ฉด ๋ฐœ์ƒํ•˜๋Š” ์˜ค๋ฅ˜๋ผ๊ณ  ํ•œ๋‹ค. ์‹ค์ œ๋กœ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•œ ์ง€์ ์œผ๋กœ ๊ฐ€๋ณด๋‹ˆ ๊ด„ํ˜ธ ์—ด๊ธฐ ๋ถ€๋ถ„์— ์ฃผ์„์ด ๋‹ฌ๋ ค์žˆ์—ˆ๋‹ค ์ € ์ฃผ์„์„ ์‚ญ์ œํ•ด์ฃผ๊ณ  ๋‹ค์‹œ ๋นŒ๋“œํ•˜์˜€๋”ฐ ! Build Success !!

[Xcode] Simulator Error ํ•ด๊ฒฐ๋ฐฉ๋ฒ• : ld: in /Users/../.../Pods/FirebaseAnalytics/Frameworks/FIRAnalyticsConnector.framework/FIRAnalyticsConnector(FIRAnalyticsConnector_e321ed8e3db06efc9803f6c008e67a34.o), building for iOS Simulator, but linking in obj..

์ด๋ฒˆ์— ์•„์ด๋งฅ M1์„ ๊ตฌ๋งคํ•˜๊ณ  simulator๋ฅผ ์‚ฌ์šฉํ•  ๋•Œ๋งˆ๋‹ค ์—๋Ÿฌ์™€ ๋งˆ์ฃผํ•˜์—ฌ,, ๊ต‰์žฅํžˆ ๋ถˆํŽธํ–ˆ๋‹ค,,ใ…Ž ๋‚ด๊ฐ€ ๋งˆ์ฃผํ•œ ์—๋Ÿฌ๋Š” ld: in /Users/../.../Pods/FirebaseAnalytics/Frameworks/FIRAnalyticsConnector.framework/FIRAnalyticsConnector(FIRAnalyticsConnector_e321ed8e3db06efc9803f6c008e67a34.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/.../.../Pods/FirebaseAnalytics/Frameworks/FIRAnalyticsConnector.framework/FIR..

728x90
๋ฐ˜์‘ํ˜•