반응형
기록하는 습관을 통해 성장하자.
- [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
- [Git] SSH Key로 Push하기 원격 저장소에 ssh key를 사용해서 푸시하는 방법에 관해 기록합니다. Mac OS를 기준으로 설명합니다. 위와 같이 Github에서는 오는 8월 13일부터 패스워드를 통해 Git에 인증하는 방식을 더이상 지원하지 않고 token을 기반으로 한 인증을 사용한다고 합니다. 그래서 ssh key를 통해 인증하여 서버에 푸시할 수 있는 방법을 소개합니다. 1. SSH Key 생성하기 먼저 Terminal 또는 iTerm을 켜서 깃 저장소에 따라 아래의 명령어를 입력하여 ssh key를 생성한다. $ ssh-keygen -t rsa // bitbucket $ ssh-keygen -t ed25519 -C "your_email@example.com" // github 위 명령어를 입력하고 나면 아래와 같은 출력이.. 2021.07.28
- [iOS] Developer Mode 개발자 모드에 관해 기록합니다. 개발자 모드란? iOS 16과 watchOS 9에서 부터 사용할 수 있음. Default로 꺼져있으며, 개인정보 보호 및 보안 → 개발자 모드에서 켤 수 있음. 리부트와 시스템 업데이트를 해도 유지됨. 디벨로퍼 모드 설정을 자동화할 수 있는 툴이 있음. 개발자 모드가 왜 필요하지? 개발자가 아닌 대다수의 사용자에 대한 보안을 더욱 향상시킴. targeted attacks으로 부터 개발자 기능이 남용되고 있음. 대부분의 사용자는 개발자 기능이 디폴트로 필요하지 않음. 개발자 모드와 배포 대부분의 흔한 배포와 테스팅 흐름은 개발자 모드를 필요로 하지 않음. TestFlight Enterprise (In-House) distribution App Store 개발자 모드는 오직 .. 2024.03.12
- [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
- [iOS] Crashlytics 적용 비정상 종료(앱 충돌)를 추적하기 위한 Firebase Crashlytics 적용하는 방법을 기록합니다. 1. Firebase Console - 파이어베이스 콘솔에서 프로젝트 추가 및 다운로드 받은 GoogleService-info.plist 파일 프로젝트에 추가 2. 프로젝트 CocoaPod 설치 및 Crashlytics 추가 - 프로젝트 폴더 경로에서 Pod 생성 pod init - Podfile에 아래 코드 추가 pod 'Firebase/Analytics' pod 'Firebase/Crashlytics' - Pod 설치 pod install 3. Firebase Configure - AppDelegate 파일에 아래 코드처럼 추가 import FirebaseCore @main class AppDel.. 2023.01.03
-
[iOS] 타사 SDK 요구 사항 변경 예정
Upcoming third-party SDK requirements24년 5월 1일부터 앱스토어 커넥트에 제출되는 앱은 privacy manifest 가 제공되지 않으면 리젝됨.타사 SDK는 개발자나 사용자도 모르게 개인정보 보안을 취약하게 만들 수 있음.
2024.03.22
반응형