반응형
기록하는 습관을 통해 성장하자.
- [iOS] UNUserNotificationCenter를 이용해서 로컬 푸시하기! iOS앱에서 로컬 노티피케이션을 푸시하기 위해서 UNUserNotificationCenter를 사용해보겠습니다. UNUserNotificationCenter는 앱 또는 앱의 확장에 대한 알림과 관련된 활동을 관리하기 위한 중심 객체라고 합니다. alert, badge, sound를 통해 사용자에게 알림을 주고 알림을 스케쥴링할 수 있습니다. 먼저 사용자에게서 권한을 얻어야 합니다. func requestNotiAuth() { let authOptions = UNAuthorizationOptions(arrayLiteral: .alert, .badge, .sound) UNUserNotificationCenter .current() .requestAuthorization(options: authOptions).. 2021.01.05
- [iOS/Xcode] 아카이브했을 때 발생하는 UIInterfaceOrientation 이슈 에러 내용: Asset validation failed Invalid bundle. The “UIInterfaceOrientationPortrait” orientations were provided for the UISupportedInterfaceOrientations Info.plist key in the {Project Bundle Identifier} bundle, but you need to include all of the “UIInterfaceOrientationPortrait, UIInterfaceOrientationPortraitUpsideDown, UIInterfaceOrientationLandscapeLeft, UIInterfaceOrientationLandscapeRight” ori.. 2024.03.08
- [iOS/Xcode] Missing file libarclite_iphoneos.a (Xcode 14.3) Xcode 14.3 이상 버전에서 Pod 관련 에러 발생한 내용을 기록합니다. 에러 내용: SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a'; try increasing the minimum deployment target 원인: Xcode 14.3 부터 위 에러 발생 해결: Podfile에 아래 내용 추가 post_install do |installer| installer.generated_projects.each do |project| project.targets.e.. 2024.03.08
- [Swift] 알고리즘에 필요한 Tip 정리 스위프트 알고리즘을 시작하면서 필요한 내용을 정리한 것을 올립니다! 시간 날 때마다 계속 추가할 예정..! 기본 입력 받기 (input의 타입은 String)var input = readLine()! Int형 한 개의 숫자 입력 받기var num = Int(readLine()!)! "1 2 3 4 5"와 같은 공백 있는 숫자 입력 받기// split - ReturnType: [SubString]var nums = readLine()!.split(separator: " ").map {Int($0)!}// components - ReturnType: [String]var nums = readLine()!.components(separatedBy: " "). map {Int($0)!} "12345"와 같은 공.. 2024.05.21
- [iOS] Developer Mode 개발자 모드에 관해 기록합니다. 개발자 모드란? iOS 16과 watchOS 9에서 부터 사용할 수 있음. Default로 꺼져있으며, 개인정보 보호 및 보안 → 개발자 모드에서 켤 수 있음. 리부트와 시스템 업데이트를 해도 유지됨. 디벨로퍼 모드 설정을 자동화할 수 있는 툴이 있음. 개발자 모드가 왜 필요하지? 개발자가 아닌 대다수의 사용자에 대한 보안을 더욱 향상시킴. targeted attacks으로 부터 개발자 기능이 남용되고 있음. 대부분의 사용자는 개발자 기능이 디폴트로 필요하지 않음. 개발자 모드와 배포 대부분의 흔한 배포와 테스팅 흐름은 개발자 모드를 필요로 하지 않음. TestFlight Enterprise (In-House) distribution App Store 개발자 모드는 오직 .. 2024.03.12
- [iOS/Xcode] EXC_BAD_ACCESS 에러: Thread 1: EXC_BAD_ACCESS 원인: 해당 에러 원인이 다양하므로 원인 파악 필요 해결: 에러 원인 파악을 위한 아래 설정 필요 XCode 상단 Product 메뉴 -> [Scheme] -> [Edit Scheme] 탭 선택 Run ->[Diagnostics] 탭 -> [Zombie Objects] 체크 로그를 통해 해당 에러가 발생한 원인을 확인할 수 있음. 2024.03.08
-
[iOS] 타사 SDK 요구 사항 변경 예정
Upcoming third-party SDK requirements24년 5월 1일부터 앱스토어 커넥트에 제출되는 앱은 privacy manifest 가 제공되지 않으면 리젝됨.타사 SDK는 개발자나 사용자도 모르게 개인정보 보안을 취약하게 만들 수 있음.
2024.03.22
반응형