일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
- Archive
- Firebase
- Apple
- 개발자
- error
- JPA
- Realm
- Git
- SwiftUI
- Xcode
- Code
- geofencing
- Swift
- Session
- IOS
- window
- appstore
- FLUTTER
- view
- 이미지
- 한글
- Notification
- MacOS
- 웹뷰
- rxswift
- iOS16
- mac
- github
- darkmode
- UIButton
- Today
- Total
목록IOS (176)
EEYatHo 앱 깎는 이야기

에러 내용 Archive 후, appstore upload를 진행할 때 발생. Asset validation failed Invalid Pre-Release Train. The train version '15.1.1' is closed for new build submissions (ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) Asset validation failed This bundle is invalid. The value for key CFBundleShortVersionString [15.1.1] in the Info.plist file must contain a higher version than that of the previously approved versi..

Scene의 화면회전 제어 로직이 변경되면서, 기존에 사용하던 UIDevice 방식은 deprecated 되었다. // is deprecated let value = UIInterfaceOrientation.landscapeRight.rawValue UIDevice.current.setValue(value, forKey: "orientation") 해당 방식으로 강제 화면 회전시, 친절하게 아래와 같은 에러가 발생한다. ( UIWindowScene.requestGeometryUpdate 를 사용해달라는 말. ) 새로 사용해야 될 함수 : 적용 코드 : /// 화면 가로로 바꾸기 if #available(iOS 16.0, *) { let windowScene = UIApplication.shared.con..
고차함수 ( Higher-order function ) 함수(클로저)를 파라미터로 받거나, 함수를 리턴하는 함수 Swift에서 제공하는 고차함수를 셀수도 없이 많다. 자주 사용하는 순으로 정리한다. map filter reduce forEach compactMap flatMap map Array에서 모든 값들에게 같은 연산을 적용한 새로운 Array를 만든다. let cast = ["Vivien", "Marlon", "Kim", "Karl"] let lowercaseNames = cast.map { $0.lowercased() } // ["vivien", "marlon", "kim", "karl"] let letterCounts = cast.map { $0.count } // [6, 6, 3, 4] fi..

배경 설명 아래처럼, 네비게이션바에 커스텀 뷰를 넣는 식으로 사용하고 있었는데 navigationItem.titleView = myCustomView iOS16 에서 네비게이션바의 UI가 깨졌다. 버튼들이 클릭이 안되고, 가운데로 몰리고, 보이지 않는 경우도 있었다. 가운데로 검색바는 찌그러졌었다. iOS16 에서 UIKit 이 변경된게 무엇인지 발표하는 WWDC 도 살펴보았고, iOS16, navigation Bar 기타 등등.. 여러 구글링을 해도 답이 보이지 않았다. ( 이런거나 계속 나오고 -ㅅ- ) 삽질 끝에 발견한 현상 iOS16 이전에는, titleView 의 부모가 _UINavigationBarContentView 였다. _UINavigationBarContentView 는 titleVie..

파이어베이스에서 Crashlytics를 사용하려면 디버그 기호파일(dSYM)을 업로드 해야한다. 수동으로 dSYM파일을 다운 or 추출해서 업로드하는 방법도 있지만, 빌드 마지막 단계에 Xcode에서 제공하는 Run Script를 삽입하여, 자동으로 업로드하는 방법이 있다. 관련 링크 https://firebase.google.com/docs/crashlytics/get-started?authuser=0&hl=ko&platform=ios#uikit https://firebase.google.com/docs/ios/installation-methods?authuser=0&hl=ko 1. dSYM 추출 여부 세팅 Build Settings dSYM 검색 Debug Information Format에서 Deb..

UIImageView 이미지 다운로드 구현 Placeholder Image 지원 Image 넣는 부분은 main queue로 작업 외부 라이브러리 없이 URLSesstion dataTask 사용 extension UIImageView { func imageDown(urlStr: String, placeholderImage: UIImage? = nil) { func _setImage(image: UIImage?) { DispatchQueue.main.async { [weak self] in self?.image = image } } // 캐싱 체크 if let image = ImageCacheManager.shared.getImage(urlStr) { _setImage(image: image) return..
웹뷰에서 내려오는 status code 로 에러처리를 하려하는데, 테스트할 만한 stub이 없어서 정리. 테스트할 status code URL 404 https://github.com/qwdscxzvdw 502 https://scrap.uznam8x.space/ 코드 /* 웹뷰 response가 오고 난 후, 다시한번 탐색여부를 결정하는 대리자 메소드 statusCode로 에러처리 decidePolicyFor navigationAction에서 탐색을 거부했다면 이 대리자까지 오지않음 */ func webView(_ webView: WKWebView, decidePolicyFor navigationResponse: WKNavigationResponse, decisionHandler: @escaping (W..