728x90

전체 글 285

CocoaPods Support & Maintenance Plans

안녕하세요. CocoaPods 유지보수 계획에 대한 공지 공유드립니다. 자세한 내용은 본문 참고해 주세요! CocoaPods Support & Maintenance Plans - CocoaPods BlogTLDR: We're still keeping it ticking, but we're being more up-front that CocoaPods is in maintenance mode. CocoaPods is about 13 years old now, and the landscape of iOS development has changed a lot in that time. I remember the fragmented islets of small sblog.cocoapods.org# 요약SPM 출시..

News 2024.09.29

shell script로 '[CP] Copy Pods Resources' 항목 제거

안녕하세요. CocoaPods을 사용하면, 프로젝트 Build Phases에 '[CP] Copy Pods Resources' 항목이 들어가는데요. 이 항목을 제거하는 shell script 공유합니다. 수동으로 지울 수는 있는데 pod install 또는 pod update 할 때마다 다시 추가되더라구요. 저처럼.. 자동화 필요하신 분들은 shell script 사용하는 것을 추천합니다! (shell script 말고 더 좋은 방법 아시는 분 있으면 공유해 주세요ㅠㅠ 꼭...) 우선 xcodeproj 모듈 설치하고sudo gem install xcodeproj   아래 스크립트 실행해주세요. 이번 글은 여기서 마무리.

iOS 2024.09.29

[Xcode 16] `force_encoding': can't modify frozen String (FrozenError) 해결방법

안녕하세요. Xcode 16에서 'pod install' 하니까 이런 에러가 발생했어요ㅠ/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/user_interface/error_report.rb:34:in `force_encoding': can't modify frozen String (FrozenError)/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project.rb:85:in `initialize': [Xcodeproj] Unable to find compatibility version string for object version `77`. (ArgumentError) 해결 방..

TroubleShooting 2024.09.27

[Xcode 16] RuntimeError - `PBXGroup` attempted to initialize an object 에러 해결방법

안녕하세요. Xcode 16으로 신규 프로젝트 생성 후 'pod init'을 하니까 에러가 발생했어요ㅠRuntimeError - `PBXGroup` attempted to initialize an object with unknown ISA `PBXFileSystemSynchronizedRootGroup` from attributes: `{"isa"=>"PBXFileSystemSynchronizedRootGroup", "exceptions"=>["D40ED03F2CA5CAF200433E18"], "path"=>"MyApp", "sourceTree"=>""}` 이때 해결방법 공유할게요. # 해결방법1. xcodeproj를 '패키지 내용 보기'로 열기 2. project.pbxproj 열기 3. 'PBXFil..

TroubleShooting 2024.09.27

[iOS] AOD 기능 여부에 따라 화면 App lifecycle 이벤트가 다르게 발생한다.

안녕하세요. AOD (Always On Display) 기능이 있냐 또는 활성화되어 있냐 여부에 따라서 화면 잠금 시 발생하는 App lifecycle 이벤트가 다르다는 것을 최근에 알게 되었습니다. AOD 기능 여부에 따라 App lifecycle 이벤트가 어떻게 발생하는지 아래에 정리해 봤어요.  AOD 기능 OFFAOD 기능 ON앱 시작1) willEnterForeground2) didBecomeActive1) willEnterForeground2) didBecomeActive앱을 background로 내리기1) willResignActive2) didEnterBackground1) willResignActive2) didEnterBackgroundbackground 앱을 화면에 올리기1) will..

TroubleShooting 2024.09.26

맥북 화면 이분할 및 이동하는 방법 + 단축키

안녕하세요. 윈도우를 쓰던 분들이 맥북을 처음 사용할 때 가장 불편하게 느끼는 것 중 하나가 바로 화면 분할이나 화면 이동이 불편하다는 점일 거예요...;;; 외부 프로그램 쓰지 않고 윈도우처럼 맥북에서 화면(창)을 이분할 하거나 전체 화면으로 하는 방법 알려드릴게요.[참고] 앞으로 설명드리는 방법은 앞서 WWDC24 Keynote에서 발표한 것처럼 macOS Sequoia (15.0) 이상에서 가능해요.macOS 버전이 낮으신 분들은 업데이트 해주세요! # 방법 1macOS Sequoia로 업데이트한 이후 '최대화' 버튼에 커서를 올려두면 아래처럼 Move & Resize (이동 및 크기 조절) 창이 나와요. 요걸 클릭하면 화면이 자동으로 이동합니다. # 방법 2'윈도우 > 이동 및 크기 조절' 메뉴..

기타 2024.09.18

8월 도쿄 3박4일 여행 (도쿄, 긴자, 다이칸야마, 롯폰기)

# 1일 차1) 츠지한 니혼바시 본점 츠지한 니혼바시 본점 · 일본 〒103-0027 Tokyo, Chuo City, Nihonbashi, 3 Chome−1−15 久栄ビル 1F4.4 ★ · 해산물 돈부리 전문점www.google.com2) 이온몰 시노노메점 이온몰 시노노메점 · 1 Chome-9-10 Shinonome, Koto City, Tokyo 135-0062 일본★★★★☆ · 슈퍼마켓www.google.com # 2일 차1) 킷테 마루노우치 킷테 마루노우치 · 2 Chome-7-2 Marunouchi, Chiyoda City, Tokyo 100-0005 일본★★★★☆ · 쇼핑몰www.google.com2) 킷테 마루노우치 안에 있는 어떤 오꼬노미야끼집 (이름 모름ㅠ)3) 요넥스 도쿄 쇼룸 YONE..

여행 2024.08.29

map, compactMap, flatMap

안녕하세요. 주로 Objective-C를 쓰다 보니... Swift의 compactMap과 flatMap이 자꾸 헷갈리더라구요.. 글로 남겨두면 안 까먹겠지 싶어 map 삼총사 공부하고 정리해 보려고요ㅎㅎ # mapSequence의 elements들을 변환시킨 결과의 배열을 반환하는 함수. 시간복잡도는 O(n)입니다. # compactMapSequence의 elements들을 변환시키고 nil이 아닌(=Optional이 아닌) 결과의 배열을 반환하는 함수.(map 결괏값이랑 비교하면 어떤 차이인지 알겠죠?) 시간복잡도는 O(n)입니다. # flatMapSequence의 elements들을 변환시키기고 single-level collection을 반환하는 함수. 여기서 single-level collect..

Swift 2024.08.18

'[WinError 193] %1은(는) 올바른 Win32 응용 프로그램이 아닙니다' 해결방법

안녕하세요. 잘 되던 chromedriver에서 갑자기 에러가 났어요. 여기서 에러가 나는 것 같아요.   해결방법은 아래처럼 chromedriver 경로에서 'THIRD_PARTY_NOTICES.chromedriver'를 'chromedriver'로 변경해서 사용하면 됩니다.(아마 webdriver-manager 모듈의 버그 같아요ㅠㅠ)  # 참고 늘모자란, 개발 :: selenium webdrivermanager(wdm) 버그https://github.com/SergeyPirogov/webdriver_manager/issues/670 [WinError 193] %1은(는) 올바른 Win32 응용 프로그램이 아닙니다 깃헙 이슈로도 등록되어있다. chromedriver.exe 이나 chromdriver..

TroubleShooting 2024.08.17