분류 전체보기(344)
-
iOS 버전별 점유율 확인
애플에서 제공하는 iPhone, iPad iOS 점유율 developer.apple.com/kr/support/app-store/ App Store - 지원 - Apple Developer App Store App Store에서 Mac, iPhone, iPad, Apple Watch 및 Apple TV용 앱을 쉽게 찾고 구입하고 다운로드할 수 있습니다. 앱을 배포할 준비가 되면, 앱을 빌드하고 App Store에 배포하는 데 필요한 모든 것을 App developer.apple.com
2020.11.27 -
[알림] 최신 코드 서명 형식 사용
iOS14.2로 업데이트 하고 난 후 구버전 앱을 실행하니 아래와 같은 알림창이 나타남. 'XXX'의 업데이트가 필요함 이 앱은 앞으로 출시될 iOS 버전과 호환되지 않습니다. 이 앱의 개발자가 앱을 업데이트하여 호환성을 향상해야 합니다. # 앱에 새 서명이 필요한지 확인 % codesign -dv /path/to/MyApp.app CodeDirectory v=20400 보다 작은경우 re-signed 을 해야 한다. # 리사인(re-signed) % codesign -s "Your Codesign Identity" -f --preserve-metadata /path/to/MyApp.app 더 알아보기 https://developer.apple.com/documentation/xcode/using_the..
2020.11.27 -
WKHTTPCookieStore
# 조회 WKHTTPCookieStore *cookieStore = WKWebsiteDataStore.defaultDataStore.httpCookieStore; [cookieStore getAllCookies:^(NSArray * _Nonnull cookies) { for (NSHTTPCookie *cookie in cookies){ NSLog(@"%@", [cookie description]); } }]; WKHTTPCookieStore *cookieStore = self.webView.configuration.websiteDataStore.httpCookieStore; [cookieStore getAllCookies:^(NSArray * _Nonnull cookies) { for (NSHTTPCoo..
2020.11.24 -
NSHTTPCookieStorage
# 전체 조회 for(NSHTTPCookie *cookie in [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies]) { NSLog(@"%@", [cookie description]); } # URL지정 조회 NSURL *url = [NSURL URLWithString:@"https://wonyount2.tistory.com"]; for (NSHTTPCookie *cookie in [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookiesForURL:url]) { NSLog(@"%@", [cookie description]); } # 등록 NSHTTPCookieStorage *cookieStorage = [NSHTTP..
2020.11.24 -
Xcode 프로젝트 내부 특정 클래스 사용여부 확인
UIWevView 를 제거하고 WKWebView를 사용하게 변환하는 작업중 UIWebView를 사용하는 라이브러리 및 숨겨진 코드를 찾기위해 사용함. 터미널에서 Xcode 프로젝트 경로로 이동 > grap -r "UIWevView" . > grep -rl "UIWebView" . > find . -type f | grep -e ".a" -e ".framework" | xargs grep -s UIWebView
2020.11.07 -
#available과 @available
#available 여러 플랫폼에서 서로 다른 처리를 결정하기 위해서 if 또는 guard문과 같이 사용된다. (*은 필수) if #available(iOS 11.0, *) { // iOS 11, 12, 13, ... } else { // iOS 10 이하 버전 } @available 함수, 클래스, 프로토콜을 플랫폼 별로 제한할때 사용한다. #available과 다르게, 컴파일할때 경고 또는 오류를 생성합니다. @available(iOS 11, *) func test() { } iOS 11을 포함한 그 이상의 버전에서만 test함수를 호출 할 수 있다. deployment target가 지정된 11보다 낮을 경우 test함수를 호출하기위해 #available를 사용해야 한다. if #available(..
2020.11.04