일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- SwiftUI
- 웹뷰
- Git
- JPA
- Notification
- view
- rxswift
- iOS16
- Session
- Archive
- Xcode
- IOS
- mac
- appstore
- 개발자
- error
- MacOS
- github
- Swift
- Apple
- Realm
- Code
- FLUTTER
- window
- UIButton
- 이미지
- 한글
- darkmode
- Firebase
- geofencing
- Today
- Total
목록Swift (182)
EEYatHo 앱 깎는 이야기

Xcode -> Product -> Scheme -> Edit Scheme Run -> Info -> Build Configuration -> Release 로 변경

크래시 발생pb_check_proto3_default_value__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__원인Firebase 10.6.0 에 도입한 코드가 Xcode 15.3에서 버그 발생앱 실행을 감지하는 코드라서, Release 모드에서만 발생해결Firebase 10.22.0 에 수정됨업데이트로 해결관련 github issue

에러 상황XcodeCloud 빌드시 에러 발생Log에 나와있는 에러 문구xcodebuild: error: Could not resolve package dependencies:Package.resolved file is corrupted or malformed; fix or delete the file to continue: unknown 'PinsStorage' version '3' at '/Volumes/workspace/repository/ToyProject.xcworkspace/xcshareddata/swiftpm/Package.resolved'. 해결 방법XcodeCloud 환경의 Xcode 버전을 15.1 -> 15.3 으로 변경하여 해결

4개 파일로 간단히 구현.UIKit의 ViewController로 QR기능을 구현 한 뒤, SwiftUI로 변경하는 예시코드들. ContentViewimport SwiftUIstruct ContentView: View { @State private var uriFromQR: String = "" var body: some View { ZStack { // QR Scanner QRCameraView(uriFromQR: $uriFromQR) VStack { Spacer() // Scan 한 값을 보여주는 T..

App Product 경로/Users/{유저이름}/Library/Developer/Xcode/DerivedData/{프로젝트키값}/Build/Products/Debug-iphonesimulatorProduct : dynamicStaticToy당시 Project들 : dynamicStaticToy, SubModule1, 2, 3 App 실행파일, Embed Frameworks 경로Product 우클릭 후 Show Package Contents 하면 실행파일이 나옴Frameworks 폴더에 동적 Embed한 프레임워크들이 들어감

tuist 4.x 로 마이그레이션 중 에러 발생 The 'swift' command exited with error code 1 and message: error: the Swift tools version specification is missing a label; consider inserting 'swift-tools-version:' between the comment marker and the version specifier 해결방법 소스파일 맨 위에 swift-tools-version 의 버전을 명시 // swift-tools-version:5.9

DeepLink앱이 실행되거나, 앱 내 특정 페이지에 도달할 수 있도록 하는 링크두가지 방식이 존재. ( URL Scheme, Universal Link ) URL Scheme가장 간단하고 오래된 딥링크 방식단점다른 앱과 딥링크의 중복 가능 (iOS는 마지막에 설치한 앱이 열림, 안드는 어떤 앱을 실행할지 선택)미설치시 앱스토어 이동이 안됨링크에 앱 스킴이 노출되기 때문에, 다른 앱이 작정하고 따라할 수 있다 (보안에 취약) Universer Link두가지 단점의 보완웹 주소를 이용한 딥링크 방식. ( 웹 주소는 유일. → 중복 걱정 x )앱이 설치되어 있지 않을 때 앱스토어로 이동시킴작동 원리앱에 어떤 도메인으로 실행될 것인지 설정 ( Capability - Associated Domains )..
SwiftUI 에는 뷰의 생명주기로 onAppear과 onDisappear만 제공한다. 나는 deinit을 감지하고 싶다.. 하지만 Struct는 deinit을 오버라이드 할 수 없는걸? class의 도움을 받는다. DeinitDetector /// 구조체의 deinit을 확인하기위한 class final class DeinitDetector { deinit { var typeString = "\(type(of: T.self))" /// "SomeView.Type" typeString.removeLast(5) /// "SomeView" print("🖐🖐🖐 \(typeString): \(#function)") /// "🖐🖐🖐 NotificationView: deinit" deinitCompletion?()..