본문 바로가기
iOS

IOS 14 대응

by _dreamgirl 2021. 2. 5.
반응형

 

1.  XCode 12 이상 버전 업데이트

- 기본적으로 애플스토어에 등록된 앱은 매년 4월 전으로 새로운 XCode 버전에서 빌드하여 앱 제출해야함
현재는 XCode 12부터 IOS 14에 지원한다.

XCode 12.1

Prepare build

2. Build System 변경에 대한 오류 수정

The Legacy Build System will be removed in a future release. You can configure the selected build ststem and this deprecation message in File > Project Settings.

오류 메시지가 나옴.

프로젝트는 Project Build System - Legacy Build System(Deprecated)

New Build System으로 변경하고 라이브러리 빌드시 오류가 나옴

Lexical or Preprocessor issue

헤더 파일을 찾지 못함

- XCode에서 File - Project Settings - Build System에 Legacy Build System은 Deprecated되어 New Build System으로 변경해야 함. 일정은 정확하게 알 수 없지만 추후 지원하지 않는다고 한다.

-> 우리 프로젝트는 빌드 시 라이브러리내 헤더 파일을 못찾는 에러가 나왔다. Build Setttings에서 Framework Search Paths를 recursive로 변경하였다.

3. Apple SDK Library 변경

- Target Integrity
AssetsLibrary is deprecated. Consider migrating to Photos instead
AddressBookUI is deprecated. Consider migrating to ContacksUI instead
AdressBook is deprecated. Consider migrating to Contacts instead
MobileCoreServices has been renamed. Use CoreServices instaed

-> 프로젝트에서 해당 프레임워크를 사용하는 부분이 없는데 기본적으로 추가된 것으로 파악하고 모두 새로운 프레임워크로 변경하였다.

 

developer.apple.com/documentation/assetslibrary

 

Apple Developer Documentation

 

developer.apple.com

developer.apple.com/documentation/addressbookui

 

Apple Developer Documentation

 

developer.apple.com

4. 서버와의 통신 Timeout 문제

+ (instancetype)requestWithURL:(NSURL *)URL cachePolicy:(NSURLRequestCachePolicy)cachePolicy timeoutInterval:(NSTimeInterval)timeoutInterval;

timeoutInterval 값을 수정하여 확인

+ 시간 정보를 출력하여 비교해봄

-(void)printCurrentTimeStamp{

 NSDateFormatter *format = [ [NSDateFormatter alloc] init ] ;
 [format setTimeZone:[NSTimeZone timeZoneWithName:@"Asia/Seoul"]];
 [format setDateFormat:@"yyyyMMdd HH:mm:ss:SSS"];

 NSDate *nowDate = [NSDate date];
 NSString *dateString = [format stringFromDate:nowDate];
 NSLog(@"currentTime : %@". dateString)'

}

+ GCDWebServer 분석

www.programmersought.com/article/4174607267/

 

GCDWebServer - Programmer Sought

GCDWebServer Summary Keywords: iOS server framework, based on GCD GCDWebServer is a modern and lightweight HTTP 1.1-based server designed to be embedded in OS X and iOS applications. Its implementation considered the following objectives from the outset: A

www.programmersought.com

GCDWebServer 객체를 생성하고 자원을 호출하기 위해서 GCDWebServerAsyncProcessBlock으로 통신을 보낸다.

GCDWebServerCompletionBlock




반응형

'iOS' 카테고리의 다른 글

Objective C로 HTTP 통신하여 데이타 연동하기  (0) 2021.07.02
iOS Static Library vs. Framework  (0) 2021.06.24
네트워크 속도 그리고 파일 디버깅  (0) 2021.02.01
WKWebView 대응  (2) 2020.12.03
IOS 푸시 서비스  (1) 2020.11.20

댓글