[SwiftUI] Info.plist
·
Dev/SwiftUI
SwiftUI를 다시 공부해보려고 UIKit에서 사용하던 것들을 이것저것 적용해보던 차, 무언가 이상한 걸 인지했다.바로, info.plist가 폴더에 없다는 것. Xcode 13 이후 프로젝트를 다시 만들어보고, 여기저기 눌러봐도 보이지 않아서 검색해보았는데 Xcode 13 이후 애플이 의도적으로 info.plist를 숨겼다는 걸 알게 되었다. 아래는 공식문서에 기재된 관련 내용이다. Projects created from several templates no longer require configuration files such as entitlements and Info.plist files. Configure common fields in the target’s Info tab, and b..
[Swift] unowned vs weak
·
Dev/Swift
해당 게시글은 iOS 면접스터디 SweepSwift에서 진행한 질문 중 제가 담당 했던 질문의 답변 내용을 정리 및 보강한 내용입니다. unowned와 weak의 차이점을 설명하세요.캡처 리스트, 객체간의 참조 등의 경우인 강한 참조 순환(Strong Reference Cycle)로 인한 메모리 누수를 방지하기 위해 사용되는 참조 타입입니다. 차이점은 아래와 같습니다. unownedunwoned를 참조하는 경우 값(value)이 항상 존재한다고 가정하기 때문에 할당해제를 해도 인스턴스가 메모리에서 해제되지 않습니다.unowned는 값에 바로 접근할 수 있습니다. 대신 unowned 참조는 할당해제가 된 상태일 때 nil로 설정되지 않기 때문에 (즉, 객체가 ARC에 의해 메모리가 해제되어도 값이..
[Error] Library not loaded: @rpath no such file
·
Dev/Issue
환경- iOS 17 ↑- Swift vesrion 5.9- Xcode version 15 문제 iOS 17, Swift 5.9, Xcode 15 환경에서 프로젝트를 실제 기기에서 실행할 때 dyld[5106]: library not loaded: @rpath/rxswift.framework/rxswift와 같은 긴 오류 메시지가 발생했다. 이 오류는 프로젝트가 이전에 임포트했던 패키지 프레임워크(특히 RxSwift)를 찾지 못하여 앱이 기기에 로드되지 않는 문제였다. 접근'dyld[5106]: library not loaded: @rpath' 키워드로 검색해봤다. 찾아보니까 General 탭의 Frameworks, Libraries, and Embedded Content 설정을 확인해야 하는 것 같았다...
[Error] Could not get GOOGLE_APP_ID in Google Services file from build environme
·
Dev/Issue
개발환경iOS: 17 이상Swift 버전: 5.9Xcode 버전: 15 문제Firebase Messaging 기능을 테스트하던 중 "Could not get GOOGLE_APP_ID in Google Services file from the build environment"라는 오류 메시지를 만났다. 해결문제 접근 순서:번들 ID 확인Firebase에 저장된 번들 ID와 프로젝트의 번들 ID가 일치하는지 확인했다. 둘은 정확히 일치했다.GoogleService-Info.plist 파일 재다운로드 및 확인혹시 모를 파일 문제 때문에 GoogleService-Info.plist 파일을 여러 번 다시 다운로드하여 정확성을 확인했다. 이전 경험상 파일 이름이 잘못되어 문제가 발생한 적도 있었기 때문이다.오류..
[WWDC23] Keynote
·
APPLE
WWDC23 키노트를 통해 애플이 iOS 17에서 사용자 개성, 개인 정보 보호, 그리고 편리함을 얼마나 깊이 고려했는지 확인할 수 있었다. iOS 17에서 주목할 만한 주요 업데이트들을 정리했다. https://developer.apple.com/videos/play/wwdc2023/101/?time=1009 Keynote - WWDC23 - Videos - Apple DeveloperThe Apple Worldwide Developers Conference kicks off with exciting news, inspiration, and new opportunities. Join the worldwide developer...developer.apple.com 1. 통화 / 연..
[SwiftUI] VStack vs LazyVStack
·
Dev/SwiftUI
ViewIn SwiftUI, a view can be likened to a viewController in UIKit. It serves as a fundamental building block for constructing user interfaces, allowing users to define the structure and appearance of their app's content. VStackAccording to the official documentation, in SwiftUI, a VStack signifies the vertical arrangement of a view's subviews. It's noteworthy that a VStack renders all its ..