반응형

전체 글 416

[Android Studio] Installed Build Tools Revision 31.0.0 is corrupted 에러 해결 방법

안드로이드 스튜디오 Installed Build Tools Revision 31.0.0 is corrupted 오류 해결 방법 새 컴퓨터에 안드로이드 스튜디오를 설치하고 빌드를 진행하니 아래와 같은 오류가 발생했다. 오류 Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. > Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option..

[iOS] 앱 서명 인증서? 생성, 내보내기 및 삭제 (signing certification)

앱 서명이란? (What is app signing?) 디바이스에 앱을 실행하고 앱 서비스를 사용하거나, 지정된 디바이스에서 테스트하거나 앱스토어에 제출하기 위해 꼭 필요한 과정 Xcode는 앱을 build 하고 archive 하는 과정에서 서명을 진행 계정 당 생성할 수 있는 인증서 개수가 제한됨 팀의 다른 사람과 공유하려면 서명 인증서를 내보내기 한 후, 다른 사람의 Mac에서 내보낸 파일을 두 번 클릭하여 키체인에 서명 인증서를 설치 계정 당 생성할 수 있는 인증서 개수 Type Apple Developer Program Enterprise Apple Development 2 2 Apple Distribution 3 2 주요 인증서 종류 Apple Development iOS, tvOS, watch..

간단하고 빠른 JSON Parser Online

쉽고 빠르게 JSON을 파싱 할 수 있는 online 웹페이지 http://json.parser.online.fr/ Json Parser Online json.parser.online.fr 기본 Side-by-side 방식이며, 오른쪽에 String parse와 JS eval 두 형식으로 표시됨 옵션 종류 화면 표시 방식, 형식, 색상, 타입 표시 등의 옵션 옵션 - Eval Json 설정 해제 본인은 String aprse와 Eval Json를 모두 볼 필요가 없고, 긴 Json의 경우 자리를 많이 차지하기 때문에 설정 해제하였다. 옵션 - Show JS types 설정 object, array, boolean 등의 타입을 표시 옵션 - Show Array Index 설정 배열의 인덱스를 표시 옵션 -..

IT/팁 2021.08.25

[Swift / Objective-c] String 특정 문자열 치환, 제거 (replace)

iOS에서 특정 문자열을 치환하거나 제거하는 방법 Swift var string = "안녕하세요. 샘플입니다." string = string.replacingOccurrences(of: ".", with: "!") print(string)// 안녕하세요! 샘플입니다! Objective-c NSString *string = @"안녕하세요. 샘플입니다."; string = [string stringByReplacingOccurrencesOfString:@"." withString:@"!"]; NSLog(@"%@", string); // 안녕하세요! 샘플입니다! 특정 문자열을 제거할 경우는 withString에 ""(@"")를 넣어주면 된다.

[Xcode] Build error fat framework 에러 해결 방법

Xcode Build 시 아래와 같은 오류 발생 시 해결 방법 오류 Building for iOS, but the linked and embedded framework 'framework_name.framework' was built for iOS + iOS Simulator. 해당 오류는 framework가 iOS 실물 기기와 시뮬레이터를 모두 동작하게 하는 아키텍처를 지원하는 fat framework기 때문에 발생합니다. 해결방법 방법 1. .xcframework 파일 생성 방법 2. TARGETS > Project Name > Build Setting > Build Options > Validate Workspace를 Yes 설정 참고사항 본인은 소스코드를 전달받았을 때 해당 에러가 발생했습니다. ..

iOS/오류 해결 2021.08.23

[Swift / Objective-c] 자동 잠금 활성화/비활성화 (절전모드)

자동 잠금(절전모드) 상태 활성화/비활성화 처리하기 절전모드를 비활성화시키면 화면이 자동으로 잠금 되지 않음 참고 URL: https://developer.apple.com/documentation/uikit/uiapplication/1623070-idletimerdisabled Swift // 자동 잠금 비활성화 UIApplication.shared.isIdleTimerDisabled = true // 자동 잠금 활성화 UIApplication.shared.isIdleTimerDisabled = false Objective-c // 자동 잠금 비활성화 [UIApplication sharedApplication].idleTimerDisabled = YES; // 자동 잠금 활성화 [UIApplicatio..

[objective-c] Hex Color를 UIColor로 변환하기 (Hex to UIColor)

Hex 컬러를 UIColor로 변환하는 방법 Utils.m +(UIColor *)colorWithRGBHex:(NSUInteger)RGBHex alpha:(CGFloat)alpha { CGFloat red = ((CGFloat)((RGBHex & 0xFF0000) >> 16)) / 255.0f; CGFloat green = ((CGFloat)((RGBHex & 0xFF00) >> 8)) / 255.0f; CGFloat blue = ((CGFloat)((RGBHex & 0xFF))) / 255.0f; return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } 사용 방법 UIColor* color = [Utils colorWithREGHex..

[objective-c] UIView 그라데이션 넣기 (CAGradientLayer)

UIView에 gradient 넣는 방법 일반적으로 두 가지 색상으로 가로 또는 세로 그라데이션을 넣는 방법이다. 가로 그라데이션과 세로 그라데이션 적용 방법 Utils.m +(void)setVerticalGradient:(id)viewId topColor:(UIColor*)topColor bottomColor:(UIColor*)bottomColor { [self setGradient:viewId isVertical:YES firstColor:topColor secondColor:bottomColor]; } +(void)setHorizontalGradient:(id)viewId leftColor:(UIColor*)leftColor rightColor:(UIColor*)rightColor { [self s..

[Sourcetree] authentication failed 오류 해결 (인증 오류)

Sourcetree remote 과정 중 인증 오류가 발생하는 경우, 인증 요청 시 계정 정보를 키체인에 저장을 해서 계속 인증 오류가 발생하는 경우 해결하는 방법! 오류 발생 원인 Sourcetree에서 remote 시 계정 정보를 잘못 입력 + 키체인에 비밀번호 저장 체크 발생 오류 Authentication failed (Invalid username or password.) 해결 방법 SourceTree 폴더로 이동하여 [계정아이디@STAuth-github.com] 파일 삭제 - SourceTree 폴더 경로 : 라이브러리 > Application Support > SourceTree - 라이브러리 폴더 이동 방법 : 파인더 선택 상태에서 화면 상단 메뉴 선택 상태에서 키 누르면 나타남

IT/기타 2021.07.06

[MAC] 소스트리 Github 간단 연동 방법 (Sourcetree)

MAC에서 소스트리를 사용해 Github와 연동하는 방법 준비 Sourcetree 설치 Github 계정 연동 방법 1. Github repository 생성 1.1. Repository name, 공개 여부, 파일 등 설정 1.2. Repository 생성 완료. HTTPS URL 확인 2. 소스트리 실행 및 URL 복제 2.1. 새로 만들기... > URL에서 복제 선택 2.2. 원본 URL 입력 칸: 1.2.에서 확인한 HTTPS URL 입력 2.3. 목적지 경로 입력칸: github repository를 가져올 경로 2.4. 이름 입력칸: 소스트리에서 표시할 프로젝트 이름 2.5. 프로젝트 복제 완료 (생성된 이름 확인 및 프로젝트 창 열림) 3. 프로젝트창 실행 및 사용법 3.1. 목적지에 프로..

IT/Git 2021.06.29
반응형