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

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

(103)
[Swift] ์Šค์œ„ํ”„ํŠธ ์กฐ๊ฑด๋ฌธ(Conditional Statements) ์Šค์œ„ํ”„ํŠธ ์กฐ๊ฑด๋ฌธ(Conditional Statements) if๋ฌธ switch๋ฌธ ๐ŸŽ if๋ฌธ if ๋‹จ๋…์ ์œผ๋กœ ์‚ฌ์šฉํ•ด๋„ ๋˜๊ณ , else if, else์™€ ์กฐํ•ฉํ•ด์„œ ์‚ฌ์šฉ. if ๋’ค์˜ ์กฐ๊ฑด ๊ฐ’์—๋Š” Bool ํƒ€์ž…์˜ ๊ฐ’๋งŒ ์œ„์น˜ํ•ด์•ผ ํ•˜๋ฉฐ, ์กฐ๊ฑด ๊ฐ’์„ ๊ฐ์‹ธ๋Š” ์†Œ๊ด„ํ˜ธ๋Š” ์„ ํƒ์‚ฌํ•ญ. [๊ธฐ๋ณธ ํ˜•ํƒœ] if ์กฐ๊ฑด { /* ์‹คํ–‰ ๊ตฌ๋ฌธ */ } else if ์กฐ๊ฑด { /* ์‹คํ–‰ ๊ตฌ๋ฌธ */ } else { /* ์‹คํ–‰ ๊ตฌ๋ฌธ */ } let myAge = 20 if myAge 50 { print("50 ์ดˆ๊ณผ") } else {// ๊ฐœ๋ฐœ์ž์˜ ์˜๋„์— ๋”ฐ๋ผ else๋ฌธ๋„ ์ƒ๋žต ๊ฐ€๋Šฅ print("50") } ์Šค์œ„ํ”„ํŠธ์˜ ์กฐ๊ฑด์—๋Š” ํ•ญ์ƒ Bool ํƒ€์ž…์ด ๋“ค์–ด์™€์•ผ ํ•œ๋‹ค. ์Šค์œ„..
[Error, Xcode] Invalid Pre-Release Train. The train version '0.3' is closed for new build submissions ์—๋Ÿฌ ํ•ด๊ฒฐ ๐Ÿ‘ฟXcode์—์„œ Archives์—์„œ distiribution์‹œ ๋ฐœ์ƒํ•˜๋Š” ์—๋Ÿฌ [์—๋Ÿฌ ๋‚ด์šฉ] iTunes Store Operation Failed ERROR ITMS-90186: "Invalid Pre-Release Train. The train version '0.3' is closed for new build submissions" [Solution] ์•ฑ ์Šคํ† ์–ด์— ์ƒˆ ๋ฒ„์ „์„ ์ถœ์‹œํ•  ๋•Œ๋Š” Version์ด ๋ฐ˜๋“œ์‹œ ์˜ฌ๋ผ๊ฐ€์•ผ ํ•จ!! Target > General > Identity > Version ์ˆ˜์ • ๊ธฐ์กด ๋ฒ„์ „์ด 1.6.1์ด๋ฉด 1.6.2 ๋ฒ„์ „์œผ๋กœ ์˜ฌ๋ ค์ค๋‹ˆ๋‹ค.
[Swift] ์Šค์œ„ํ”„ํŠธ ๋ฐ์ดํ„ฐ ํƒ€์ž…(Swift data type) - 3. ์—ด๊ฑฐํ˜• ํƒ€์ž… (enum) 1. Swift ๊ธฐ๋ณธ ๋ฐ์ดํ„ฐ ํƒ€์ž… 1 - 1. ๊ธฐ๋ณธ ๋ฐ์ดํ„ฐ ํƒ€์ž… (Bool, Int, UInt, Float, Double, Character, String) 1 - 2. Any, AnyObject, nil, Typealias >>https://lxxyeon.tistory.com/23 [Swift] ์Šค์œ„ํ”„ํŠธ ๋ฐ์ดํ„ฐ ํƒ€์ž…(Swift data type) - 1.๊ธฐ๋ณธ ๋ฐ์ดํ„ฐ ํƒ€์ž…, Any, AnyObject, nil, Typealias ๐Ÿ’ก Swift ๋ฐ์ดํ„ฐ ํƒ€์ž… ํŠน์ง• - ๋ชจ๋“  ๋ฐ์ดํ„ฐ ํƒ€์ž…์˜ ์ด๋ฆ„์€ ์ฒซ ๊ธ€์ž๋ฅผ ๋Œ€๋ฌธ์ž๋กœ ์ž…๋ ฅํ•œ๋‹ค. - ๋ชจ๋“  ๋ฐ์ดํ„ฐ ํƒ€์ž…(Int, Float, Double, Bool, String, Array, Dictionary, Set ๋“ฑ)์€ ๋ชจ๋‘ Struct (๊ตฌ์กฐ์ฒด)๋ฅผ ๊ธฐ.. lxxyeon.ti..
[Error, Xcode] ํฐ ๋นŒ๋“œ ์—๋Ÿฌ - Unable to prepare DEVICE for development, Failed to prepare device for development ERROR ํ•ด๊ฒฐ๋ฒ• ํฐ์œผ๋กœ ๋นŒ๋“œ ์‹œ ๋ฐœ์ƒํ•œ ์—๋Ÿฌ ^^ ์•„๋ž˜ ์—ฌ๋Ÿฌ ๊ฐ€์ง€ ํ•ด๊ฒฐ๋ฐฉ๋ฒ•๋“ค์ด ์žˆ์œผ๋‹ˆ ํ•ด๋‹นํ•˜๋Š” ๊ฒฝ์šฐ๋ฅผ ์ฐพ์•„ ํ•ด๋ณด๊ธธ!! ์•ˆ๋˜๋ฉด ์ฐจ๋ก€๋Œ€๋กœ ๋‹ค ํ•ด๋ณด๊ธธ!! [๐ŸŒฑ์—๋Ÿฌ ๋‚ด์šฉ] 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 ..
[Swift] ์Šค์œ„ํ”„ํŠธ ๋ฐ์ดํ„ฐ ํƒ€์ž…(Swift data type) - 1.๊ธฐ๋ณธ ๋ฐ์ดํ„ฐ ํƒ€์ž…, Any, AnyObject, nil, Typealias ๐Ÿ’ก Swift ๋ฐ์ดํ„ฐ ํƒ€์ž… ํŠน์ง• - ๋ชจ๋“  ๋ฐ์ดํ„ฐ ํƒ€์ž…์˜ ์ด๋ฆ„์€ ์ฒซ ๊ธ€์ž๋ฅผ ๋Œ€๋ฌธ์ž๋กœ ์ž…๋ ฅํ•œ๋‹ค. - ๋ชจ๋“  ๋ฐ์ดํ„ฐ ํƒ€์ž…(Int, Float, Double, Bool, String, Array, Dictionary, Set ๋“ฑ)์€ ๋ชจ๋‘ Struct (๊ตฌ์กฐ์ฒด)๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ๊ตฌํ˜„๋˜์–ด ์žˆ๋‹ค. (์‰ฝ๊ฒŒ ์„ค๋ช…ํ•˜์ž๋ฉด, ์šฐ๋ฆฌ๊ฐ€ ์ˆซ์ž๋ฅผ ํ‘œํ˜„ํ•˜๊ณ  ์‹ถ์„ ๋•Œ Int ๋ผ๊ณ  ์ž…๋ ฅํ•ด์„œ ๋ฐ”๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก Swift์— ๋ฏธ๋ฆฌ ๊ตฌ์กฐ์ฒด ๋ผ๋Š” ๊ฒƒ์œผ๋กœ ๋งŒ๋“ค์–ด์ ธ ์žˆ๋‹ค๋Š” ์˜๋ฏธ) Reference Type : class, function, closure ๋“ฑ - ์Šค์œ„ํ”„ํŠธ๋Š” ๋ฐ์ดํ„ฐ ํƒ€์ž… ์—„๊ฒฉํ•˜๊ฒŒ ๊ด€๋ฆฌํ•˜๋ฏ€๋กœ ์•”์‹œ์ ์œผ๋กœ ์ด๋ฃจ์–ด์ง€๋Š” ๋ฐ์ดํ„ฐ ํƒ€์ž…์˜ ๋ณ€ํ˜•์œผ๋กœ๋ถ€ํ„ฐ ์ผ์–ด๋‚  ์ˆ˜ ์žˆ๋Š” ์˜ˆ๊ธฐ์น˜ ์•Š์€ ๊ฒฐ๊ณผ๋ฅผ ์ผ์œผํ‚ค๋Š” ๊ฒฝ์šฐ๋ฅผ ๋ฐฉ์ง€ํ•ด์•ผ ํ•œ๋‹ค. 1. Swift ๊ธฐ๋ณธ ๋ฐ์ดํ„ฐ ํƒ€์ž… ..
[iOS, SwiftUI] ํ•˜์ด๋ธŒ๋ฆฌ๋“œ(Hybrid) ์•ฑ์ด๋ž€ ? ์›น๋ทฐ<->๋„ค์ดํ‹ฐ๋ธŒ ํ†ต์‹  ๊ตฌํ˜„ํ•˜๊ธฐ, (SwiftUI + WebView evaluateJavaScript + javascript messagehandler) ํ•˜์ด๋ธŒ๋ฆฌ๋“œ ์•ฑ(Hybid Application) ?๊ทธ์ „์— ๋จผ์ € ์•Œ์•„์•ผ ํ•  ๊ฒƒ: 1. ๋„ค์ดํ‹ฐ๋ธŒ ์•ฑ(Native App):  Android ๋˜๋Š” iOS ๊ฐ™์€ ์–ด๋–ค ๊ตฌ์ฒด์ ์ธ ํ”Œ๋žซํผ๋งŒ์„ ์œ„ํ•ด ๋งŒ๋“ค์–ด์ง„ ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์„ ๋„ค์ดํ‹ฐ๋ธŒ ์•ฑ(Native App)์œผ๋กœ ๋””๋ฐ”์ด์Šค์— ๋‹ค์šด๋กœ๋“œํ•˜์—ฌ ์„ค์น˜ํ•  ์ˆ˜ ์žˆ๋Š” ์•ฑ์žฅ๊ฐ ์šด์˜์ฒด์ œ์— ์ตœ์ ํ™”๋œ ๋ฐฉ์‹์œผ๋กœ ๋งŒ๋“ค์–ด์ง€๋ฏ€๋กœ ์•ฑ์˜ ๊ตฌ๋™ ์†๋„๊ฐ€ ๋น ๋ฅด๊ณ  ์•ˆ์ •์ ๋†’์€ ์‚ฌ์–‘์˜ ๊ทธ๋ž˜ํ”ฝ์œผ๋กœ ์›ํ•˜๋Š” ๋””์ž์ธ์„ ๊ตฌํ˜„ ๊ฐ€๋Šฅ๋‹จ ๋‹ค๋ฅธ ์šด์˜์ฒด์ œ์—์„œ ํ˜ธํ™˜์ด ๋˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์— ์•ˆ๋“œ๋กœ์ด๋“œ์™€ iOS ์•ฑ์„ ๋ณ„๋„๋กœ ๊ฐœ๋ฐœํ•ด์•ผ ํ•จ์•ฑ์— ์ˆ˜์ •์‚ฌํ•ญ์ด ์ƒ๊ธฐ๋Š” ๊ฒฝ์šฐ ์•ฑ ๋งˆ์ผ“์˜ ์‹ฌ์‚ฌ๋ฅผ ๊ฑฐ์น˜๊ณ  ์ „์ฒด ์—…๋ฐ์ดํŠธ๋ฅผ ์ง„ํ–‰ 2. ์›น ์•ฑ(Web App):  ๋ฐ์Šคํฌํ†ฑ ๋˜๋Š” ๋ชจ๋ฐ”์ผ ๋””๋ฐ”์ด์Šค์˜ ๋ธŒ๋ผ์šฐ์ €์—์„œ ์•ก์„ธ์Šค ํ•  ์ˆ˜ ์žˆ๋Š” ์•ฑ์žฅ์ธํ„ฐ๋„ท ๋ธŒ๋ผ์šฐ์ €๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ์ž‘๋™ํ•˜๊ธฐ..
[iOS, swift] ์†Œ์…œ ๋กœ๊ทธ์ธ(social login) ๊ตฌํ˜„ํ•˜๊ธฐ - ์• ํ”Œ(Apple) ๊ณ„์ • ์†Œ์…œ ๋กœ๊ทธ์ธ - ์• ํ”Œ ๋กœ๊ทธ์ธ(Sign in with Apple)์„ ๊ตฌํ˜„ํ•ด๋ณด์ž. ์š”์ฆ˜ ์–ดํ”Œ์—์„œ๋Š” ํ•„์ˆ˜๋กœ ๋“ค์–ด๊ฐ€๋Š” ์†Œ์…œ ๋กœ๊ทธ์ธ์„ ๊ตฌํ˜„ํ•œ๋‹ค๋ฉด, ์• ํ”Œ๋กœ๊ทธ์ธ์„ ๊ตฌํ˜„ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์• ํ”Œ์€ 2019๋…„ ์• ํ”Œ ๋กœ๊ทธ์ธ ๊ธฐ๋Šฅ์„ ๋ฐœํ‘œ์™€ ๋™์‹œ์— ์•ฑ ๋‚ด์— ๋‹ค๋ฅธ ์†Œ์…œ ๋กœ๊ทธ์ธ ์„œ๋น„์Šค๋ฅผ ์‚ฌ์šฉ ์‹œ ํ•„์ˆ˜๋กœ ์• ํ”Œ ๋กœ๊ทธ์ธ์„ ์ œ๊ณตํ•ด์•ผ ํ•œ๋‹ค๋Š” ์‹ฌ์‚ฌ์ง€์นจ๋„ ํ•จ๊ป˜ ๋‚ด๋†“์•˜๊ธฐ ๋•Œ๋ฌธ!! Apple๋กœ ๋กœ๊ทธ์ธ์— ๋Œ€ํ•œ ์‹ ๊ทœ ๊ฐ€์ด๋“œ๋ผ์ธ - ๋‰ด์Šค - Apple Developer ์‚ฌ์šฉ์ž์˜ Apple ID๋กœ ์•ฑ๊ณผ ์›น์‚ฌ์ดํŠธ์— ๋กœ๊ทธ์ธํ•˜๋„๋ก ํ•˜์—ฌ ๋กœ๊ทธ์ธ ๊ณผ์ •์„ ๊ฐ„์†Œํ™”ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ฐœ์ธ์ •๋ณด ๋ณดํ˜ธ ๋ฐ ๋ณด์•ˆ ๊ธฐ๋Šฅ์„ ๊ฐ–์ถ˜ Apple๋กœ ๋กœ๊ทธ์ธ์„ ํ™œ์šฉํ•˜์—ฌ ์‚ฌ์šฉ์ž๊ฐ€ ๊ณ„์ •์„ ์„ค์ •ํ•˜๊ณ  ๋ฐ”๋กœ ์‹œ developer.apple.com ๋”ฐ๋ผ์„œ, ์ด์ œ๋Š” ํ•„์ˆ˜๊ฐ€ ๋œ ์• ํ”Œ ๋กœ๊ทธ์ธ์„ ๊ตฌํ˜„ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ..
[Error, Xcode] App Store Connect Operation ErrorERROR ITMS-90087: "Unsupported Architectures. The executable for .framework contains unsupported architectures '[x86_64, i386]'." ์—๋Ÿฌ ํ•ด๊ฒฐ๋ฒ• [ERROR] App Store Connect Operation Error ERROR ITMS-90087: "Unsupported Architectures. The executable for .framework contains unsupported architectures '[x86_64, i386]'." ์™ธ๋ถ€ SDK๋ฅผ ํ”„๋กœ์ ํŠธ์— import ํ•ด์„œ ๊ฐœ๋ฐœํ•œ ๊ฒฝ์šฐ ๋ฐœ์ƒํ•œ ์—๋Ÿฌ์ž…๋‹ˆ๋‹ค. debug๋ชจ๋“œ์—์„œ๋Š” ๋นŒ๋“œ์— ๋ฌธ์ œ๊ฐ€ ์—†๊ณ  archive์—์„œ๋„ ๋ฌธ์ œ๊ฐ€ ์•ˆ๋˜๋Š”๋ฐ ๋งˆ์ง€๋ง‰ distributionํ•  ๋•Œ ๋ฐœ์ƒํ–ˆ์–ด์š”.^_^ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์ด ๋ฐ”๋กœ ์žˆ์–ด์„œ ํ•ด๊ฒฐํ–ˆ์Šต๋‹ˆ๋‹ค ํœด๐Ÿ˜Š ์ฐธ๊ณ  ๋งํฌ >> https://stackoverflow.com/questions/42641806/check-and-remove-unsupported-archi..

๋ฐ˜์‘ํ˜•