ios
-
[iOS] Compiling for iOS 11.0, but module 'ComposableArchitecture' has a minimum deployment target of iOS 13.0 ์ค๋ฅ ํด๊ฒฐiOS 2023. 5. 17. 13:14
SPM์ ์์ฑํ๊ณ , ๋ ๋ค๋ฅธ ๋ชจ๋์ ์ถ๊ฐํด์ import ํ๊ธฐ ์ํด Package.swift์ products์ targets๋ฅผ ์ถ๊ฐํด์ฃผ์๋ค. ์ด์ํ๊ฒ ๋น๋๋ ์ฑ๊ณตํ์ง๋ง, ๋ค์๊ณผ ๊ฐ์ ์ค๋ฅ๊ฐ ๋ฐ์ํ๋ค. Compiling for iOS 11.0, but module 'ComposableArchitecture' has a minimum deployment target of iOS 13.0: /Users/Name/Library/Developer/Xcode/DerivedData/~/Index.noindex/Build/Products/Debug-iphonesimulator/ComposableArchitecture.swiftmodule/arm64-apple-ios-simulator.swiftmodule ๋๋ ๋ถ๋ช ..
-
[iOS] Swift Package Manager (SPM) ์์ฑํ๊ธฐiOS 2023. 5. 16. 11:53
Swift Package Manager๋ก ํจํค์ง๋ฅผ ๋ง๋ค์ด์ ํ๋ก์ ํธ์ ์ถ๊ฐํด๋ณด๋ ค๊ณ ํฉ๋๋ค! 1. Package ์์ฑํ๊ธฐ ๋จผ์ Package๋ฅผ ๋ง๋ค์ด๋ณด๋๋ก ํ ๊ฒ์! Package๋ฅผ ๋ง๋๋ ๋ฐฉ๋ฒ์ ํฐ๋ฏธ๋๋ก ๋ง๋๋ ๋ฐฉ๋ฒ๊ณผ Xcode์์ ์ง์ ๋ง๋๋ ๋ฐฉ์์ด ์๋๋ฐ, ์ ๋ Xcode๋ก ๋ง๋ค์ด๋ณด๋ ค๊ณ ํฉ๋๋ค. Xcode > File > New > Package๋ฅผ ํด๋ฆญํด์ ํจํค์ง๋ฅผ ์์ฑํ ๊ฒ์. ๊ทธ๋ผ ์ด๋ ๊ฒ Package๊ฐ ์์ฑ์ด ๋ฉ๋๋ค. 2. Remote์ ์๋ ํจํค์ง ์ถ๊ฐํ๊ธฐ ์์์ ์์ฑ๋ ํจํค์ง๋ฅผ Xcode ํ๋ก์ ํธ์ ์ถ๊ฐํด๋ณผ๊ฑด๋ฐ์, ํจํค์ง ์ ํจ์ฑ ํ์ธ์ ์ํด์ ๋ฉ์๋ ํ๋๋ฅผ ์ถ๊ฐํด๋ณผ๊ฒ์! ํจํค์ง๋ฅผ remote์ ์ฌ๋ ค์ remote์ ์๋ ํจํค์ง๋ฅผ ์ถ๊ฐํ ์๋ ์๊ณ , ์ง๊ธ ๋ง๋ local์ ์๋ ํจํค์ง๋ฅผ ์ถ๊ฐํ ์..
-
[iOS] Signing & Capabilities์์ Background Modes๊ฐ ์ถ๊ฐ๋์ง ์๋ ์ค๋ฅiOS 2023. 4. 18. 17:17
๋ฐฑ๊ทธ๋ผ์ด๋์์ ์์น๋ฅผ ๋ฐ์์ค๊ธฐ ์ํด์ Signing & Capabilities์์ Background Modes๋ฅผ ์ถ๊ฐํด์ฃผ๋ ค๊ณ ํ๋ค. ๊ทผ๋ฐ ์ด๋ฐ ์ค๋ฅ ๋ฉ์์ง๊ฐ ๋์๊ณ , Cancel๊ณผ Change All ๋ฒํผ ๋ ์ค ์ด๋ค ๊ฑธ ํด๋ฆญํด๋ Background Modes๊ฐ ์ถ๊ฐ๋์ง ์์๋ค. The Background Modes capability should not be varied by configuration. Make changes to Background Modes by changing all configurations. ์ญ์ ์คํ์ค๋ฒํ๋ก์ฐ ์งฑ~ How to enable capability with Tuist iOS Tuist๋ฅผ ์ฌ์ฉํ๊ธฐ ๋๋ฌธ์ Xcode์ Setting์ ์ง์ ์ ์ผ๋ก ๋ณ๊ฒฝํ ์ ์์๋ค. T..
-
[iOS] ์๋ฎฌ๋ ์ดํฐ/์ค๊ธฐ๊ธฐ์์ ์ค์ ์ ๋น๋ํ ์ฑ์ด ๋์ค์ง ์๋ ๊ฒฝ์ฐ (Feat. Settings.Bundle)iOS 2023. 4. 5. 18:03
์ฑ ๊ฐ๋ฐ์ ํ๋ฉด์ ์์น ์๋น์ค์ ๊ด๋ จ๋ ๊ถํ์ ์ค์ ํด์ค์ผํ๋ค. ๊ทธ๋์ Info.plist์ ํ์ํ ๊ฒ๋ค์ ์ถ๊ฐํด์ฃผ๊ณ , ํ์ ๋ฉ์์ง๋ ์ ์์ ์ผ๋ก ๋จ๊ณ .. ์์น ๊ถํ ์ํ๋ ์ ์์ ์ผ๋ก ๋์ค๋ ๊ฒ์ ํ์ธํ๋ค. ๊ทผ๋ฐ! ์๋ฎฌ๋ ์ดํฐ๋ ์ค ๊ธฐ๊ธฐ์ ๋๋ค ์ฑ์ ์ค์นํด๋, ์ค์ ์์ ํด๋น ์ฑ์ ๋ณผ ์๊ฐ ์์๋ค. ๋ณดํต ์ค์ ์์ ์ฑ์ ์์น ๊ถํ ์ค์ ์ด๋ผ๋๊ฐ, ์๋ฆผ ์ค์ ์ด๋ผ๋๊ฐ, .. ๋ฑ๋ฑ์ ํ ์ ์๋๋ฐ! ์ค์ ์ ๊ทธ๋ฅ ์ฑ์ด ์์๋ค. ๐ฅถ ์์น ๊ด๋ จ ๊ถํ์ ์ฌ์ฉ์๋ก๋ถํฐ ๋ฐ๋๋ฐ๋ ๋ถ๊ตฌํ๊ณ ! ๊ทธ๋ฅ ์ค์ ์ ์ฑ์ด ์์์. ์์ ์๋์์. ๊ณ์ ์๋์์ ํฌ๊ธฐํ ๋ป~ ํ๋ค๊ฐ ์ฐฌ์ฐ์ค๋น ์ ๋์์ผ๋ก ํด๊ฒฐ ๋ฐฉ๋ฒ์ ์ฐพ์๋ค ! (โจ๋น์ฐฌ์ฐโจ) ์ผ๋จ ๋ฒ๊ทธ๋ ๋ง๋ ๊ฒ ๊ฐ๊ณ …..! (์๋ง๋..) Settings.Bundle์ ์ถ๊ฐํด์ ์ค์ ํ์ด์ง๋ฅผ ์ง์ ๋ง๋ค์ด..
-
[iOS] SnapshotTesting with SwiftUI (v1.11.0)iOS 2023. 4. 5. 08:48
SnapshotTesting SnapshotTesting์ ํตํด UI์ ์ ํจ์ฑ์ ๊ฒ์ฌํ๊ณ , ์ฝ๋ ๋ณ๊ฒฝ์ด ๋น๋ํ UI์ ์ํฅ์ ๋ฏธ์น์ง ์์๋์ง ํ์ธํ๋ค. SnapshotTesting์ด๋? Snapshot Test๋ฅผ ์ฌ์ฉํ๋ฉด ํ ์คํธ ์์ ์ UI์ ์ค๋ ์ท์ ๊ธฐ์ค์ (baseline)์ด๋ผ๊ณ ํ๋ ์ ํจํ UI ์ค๋ ์ท๊ณผ ๋น๊ตํ์ฌ UI๋ฅผ ๊ฒ์ฆํ ์ ์์ต๋๋ค. ํ ์คํธ ๋ฌ๋๋ ํ์ฌ ์ค๋ ์ท์ ๊ธฐ์ค ์ค๋ ์ท๊ณผ ๋น๊ตํ๊ณ , ์ค๋ ์ท ๊ฐ์ ์ฐจ์ด๊ฐ ์์ ๊ฒฝ์ฐ, UI๋ ๋ณ๊ฒฝ๋ ๊ฒ์ด๋ฏ๋ก ํ ์คํธ๊ฐ ์คํจํฉ๋๋ค. GitHub - pointfreeco/swift-snapshot-testing: ๐ธ Delightful Swift snapshot testing. ๐ธ Delightful Swift snapshot testing. Contribute ..
-
[iOS] Sharing Framework?iOS 2023. 2. 3. 09:51
iOS, tvOS, watchOS์์ ๋ชจ๋ ๊ณต์ ํ ์ ์๋ ํ๋ ์์ํฌ๋ฅผ ์์ฑํ ์ ์๋๊ฐ? ๊ฒฐ๋ก ์ ๋ถ๊ฐ๋ฅํ๋ค! ์๋ํ๋ฉด, ํ๋ ์์ํฌ๋ ๊ณต์ ํ ์ ์๊ณ , ์ฝ๋๋ง ๊ณต์ ํ ์ ์๋ค๊ณ ํ๋ค. ์ฑ๋ค์ ์๋ก ๋ค๋ฅธ ์ํคํ ์ณ๋ฅผ ๊ฐ์ง ๋ณ๋์ ํ๋ซํผ (iOS, tvOS, ..)์์ ์คํ๋๊ธฐ ๋๋ฌธ์, ์์ค ํ์ผ๋ค์ ๊ฐ ํ๋ซํผ์ ๋ํด ๋ณ๋๋ก ์ปดํ์ผ๋์ด์ผํ๋ค. ๊ทธ๋์ iOS ํ๋ ์์ํฌ๊ฐ ์ด๋ฏธ ์๋ ๊ฒฝ์ฐ, ํ๋ ์์ํฌ๋ฅผ ๋ณต์ ํด์ ํด๋น ํ๋ ์์ํฌ๊ฐ ๋ค๋ฅธ OS๋ฅผ ์ง์ํ๋๋ก ์์ ํ ์ ์๋ค. Combined Watch OS and iOS Framework I have created a class that is shared between iOS and Watch OS. This works just fine. However, I wante..
-
[iOS] Command CompileSwiftSources failed with a nonzero exit code ์ค๋ฅ ํด๊ฒฐiOS 2022. 7. 8. 02:45
๋ฉ์ฉกํ๊ฒ ์ ๋น๋๋๊ณ ์คํ๋๋ ์ฑ์ด.. ๊ฐ์๊ธฐ ์ด์ํ ์ค๋ฅ๋ฅผ ๋ง ๋ด๋ฉด์ ๋น๋๊ฐ ๋์ง ์์๋ค ๐ฑ ์ค๋ฅ๋ ๋ค์๊ณผ ๊ฐ์๋ค. Command CompileSwiftSources failed with a nonzero exit code์ ๊ฐ์ ์ค๋ฅ๋ค์ด ์ค์ค์ด ๋์๊ณ .. ์์ธํ ์ค๋ฅ ๋ฉ์์ง๋ ๋ค์๊ณผ ๊ฐ์๋ค. CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'RxSwift' from project 'RxSwift') CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'Kingfisher' from project 'Kingfishe..
-
[iOS] Coordinator Design Pattern ๋ฒ์ญiOS 2022. 5. 26. 13:03
Coordinator Design Pattern ๋ฒ์ญ Coordinator Design Pattern์ ์ฌ์ฉํ๋ฉด, ์ฑ์ ํ๋ฆ์ ์ ์ดํ ์ ์๊ณ ๋ด๋น๊ฒ์ด์ ๋ก์ง์ ์ปจํธ๋กค๋ฌ์ ์ง์ ๋ฃ๋ ๊ฒ์ ํผํ ์ ์์ต๋๋ค. ๋ํ ๋ทฐ์ปจํธ๋กค๋ฌ๋ฅผ ์๋ก ๋ถ๋ฆฌํ๋๋ฐ ๋์์ด ๋๊ธฐ ๋๋ฌธ์ ํ๋ก์ ํธ ์ ์ฒด์์ ๋ทฐ์ปจํธ๋กค๋ฌ๋ฅผ ์ฌ์ฌ์ฉํ ๋ ์ ์ฉํฉ๋๋ค. ๋ค์ ๋ถ๋ถ์ ๋ค๋ฃน๋๋ค. ๊ฐ๋ณ ์ฝ๋๋ค์ดํฐ ์์ฑ ์ฝ๋๋ค์ดํฐ ํ๋ฆ ํ์ฉ ์ฝ๋๋ค์ดํฐ๋ฅผ ์ฌ์ฉํ์ฌ ๋ทฐ์ปจํธ๋กค๋ฌ ๊ฐ์ ๋ฐ์ดํฐ ์ ๋ฌ ํ๋ก์ ํธ์ ์์ค ์ฝ๋๋ ํ๋จ์์ ํ์ธํ ์ ์์ต๋๋ค. ์์ํ๊ธฐ ๋จผ์ ๋ชจ๋ Coordinator๊ฐ ์ค์ํ ํ๋กํ ์ฝ Coordinator๋ฅผ ์์ฑํด๋ณด๊ฒ ์ต๋๋ค. import UIKit protocol Coordinator { func start() func coordinate(to co..