블로그 이미지
Every unexpected event is a path to learning for you.

카테고리

분류 전체보기 (2737)
Unity3D (817)
Programming (474)
Server (33)
Unreal (4)
Gamebryo (56)
Tip & Tech (228)
협업 (58)
3DS Max (3)
Game (12)
Utility (136)
Etc (96)
Link (32)
Portfolio (19)
Subject (90)
iOS,OSX (53)
Android (14)
Linux (5)
잉여 프로젝트 (2)
게임이야기 (3)
Memories (20)
Interest (38)
Thinking (38)
한글 (30)
PaperCraft (5)
Animation (408)
Wallpaper (2)
재테크 (18)
Exercise (3)
나만의 맛집 (3)
냥이 (10)
육아 (16)
Total
Today
Yesterday
04-26 06:22

윈도우즈10에서 크롬을 잘 쓰고 있었는데,

갑자기 이상한 현상이 나타나기 시작했다.

조금쯤 웹서핑을 하다 보면 어느 순간,

마우스가 움직이지 않고 키보드 입력도 되지 않으며,

ctrl+alt+del키를 눌러도 아무 반응이 없어서,

결국 전원키를 눌러 컴퓨터를 재부팅할 수밖에 없는 현상이

하루에도 몇번씩 발생하였다.

그래서 인터넷을 검색해 봤더니,

플래시 플러그인을 중지시키면 된다고 나와서 그대로 해보았는데,

별 효과가 없었다.

다른 방법도 여러가지 시도해 보았는데,

여전히 먹통 현상은 해결되지 않았다.

 

그러던 중에, 드디어 검색을 통해 해결 방법을 찾았다.

다음과 같이 하면 된다.

  1. chrome://flags로 접속
  2. GPU 레스터화 항목으로 스크롤해서 이동
  3. 콤보박스를 클릭해서,  '사용 설정됨' 선택

 

위와 같이 설정해 주고 난 후에는, 신기하게도

더이상 크롬 사용 중에 컴퓨터가 먹통되는 현상이 사라졌다.



출처: https://pgmaru.tistory.com/86 [PgMaru]

 

크롬 사용시 컴퓨터가 다운되는 현상과 해결 방법

윈도우즈10에서 크롬을 잘 쓰고 있었는데, 갑자기 이상한 현상이 나타나기 시작했다. 조금쯤 웹서핑을 하다 보면 어느 순간, 마우스가 움직이지 않고 키보드 입력도 되지 않으며, ctrl+alt+del키를

pgmaru.tistory.com

 

반응형
Posted by blueasa
, |

iOS 빌드 실행 에러로 한동안 iOS 앱 업데이트를 못하고 있다가 에러를 해결하고 오랜만에 iOS 업데이트 신청을 했다. 앱에 큰 문제가 없어 바로 통과할 줄 알았는데 다음과 같은 이유로 거절당했다.

Guideline 4.8 - Design - Sign in with Apple

We noticed that your app uses a third-party login service but does not offer Sign in with Apple. Apps that use a third-party login service for account authentication must offer Sign in with Apple to users as an equivalent option.

Next Steps

To resolve this issue, please revise your app to offer Sign in with Apple as an equivalent login option.

Resources

  • Review the

sample code

on Apple Developer Support to learn more about implementing Sign in with Apple in your app.

  • Read the Sign in with Apple

Overview

to learn more about the benefits Sign in with Apple offers users and developers.

Please see attached screenshot for details.

이게 무엇인가 하고 찾아보니 2020년 4월 이후로는 다른 소셜 로그인을 제공하는데 애플 로그인을 같이 제공하지 않으면 기존 앱도 업데이트 거절 사유가 된다고 되어있다. 만약 다른 소셜 로그인을 제공하지 않는다면 애플 로그인이 필수는 아니다. 서비스 중인 앱에서 구글 로그인을 제공하고 있어서 애플 로그인을 적용해야 했다.

Apple로 로그인 버튼 추가


기존에 사용하던 버튼 디자인에 애플의 애플 로그인 디자인 가이드에 벗어나지 않도록 버튼을 추가하고 iOS 에서만 애플 로그인이 가능하도록 만들었다. 안드로이드에서 애플 로그인을 사용하려면 좀 더 복잡한 개발 과정을 거쳐야 하고 안드로이드에서 애플 로그인을 사용할 사용자를 고려하기엔 가성비가 좋지 않았다.

애플 로그인 플러그인


구글 로그인 플러그인 처럼 애플 로그인도 플러그인이 있을거라고 생각하고 여러 자료를 찾아보다가 한 블로그에서 좋은 플러그인 두 가지를 찾게 되었다.

Unity Technology에서 제공하는 SignInWithApple

https://assetstore.unity.com/packages/tools/sign-in-with-apple-154202

GitHub에 오픈 소스로 올라와있는 apple-signin-unity

https://github.com/lupidan/apple-signin-unity

서비스에서 Firebase Auth를 사용하고 있기 때문에 Firebase Auth와의 사용법이 나와있는 GitHub 오픈 소스 플러그인을 사용하기로 했다.

apple-signin-unity 설치 및 세팅


플러그인 설치 방법은 GitHub에 여러가지 방법으로 자세하게 나와있다.

https://github.com/lupidan/apple-signin-unity#installation

Apple로 로그인을 사용하려면 Apple Developer에서 Apple ID Configuration을 수정하거나 XCode에서 수동으로 설정할 수 있다.

XCode에서 수동으로 Sign in with Apple을 설정하는 방법

https://github.com/lupidan/apple-signin-unity#manual-entitlements-setup

Firebase Auth와 연동하려면 Firebase Authentication의 Sign-in method에서 Apple을 사용 설정한다. iOS에서 사용하려면 추가적인 설정은 필요없다.

Apple로 로그인 구현


일단 간단하게 사용중인 페이지에 Apple로 로그인을 GitHub에서 설명하는 그대로 구현했다.

SignInView.cs

using UnityEngine; using System.Collections.Generic; using System; using Firebase.Auth; using AppleAuth; using AppleAuth.Native; using AppleAuth.Enums; using AppleAuth.Extensions; using System.Text; using System.Security.Cryptography; using AppleAuth.Interfaces; public class SignInView : MonoBehaviour { private IAppleAuthManager _appleAuthManager; public override void OnClose() { } public override void OnOpen() { #if UNITY_IOS // Apple로 로그인 켜기 if (AppleAuthManager.IsCurrentPlatformSupported) { var deserializer = new PayloadDeserializer(); _appleAuthManager = new AppleAuthManager(deserializer); } #else // Apple로 로그인 끄기 #endif } private void Update() { _appleAuthManager?.Update(); } private void OnClickSignInWithApple() { // 로더 켜기 var rawNonce = GenerateRandomString(32); var nonce = GenerateSHA256NonceFromRawNonce(rawNonce); var loginArgs = new AppleAuthLoginArgs(LoginOptions.IncludeEmail | LoginOptions.IncludeFullName, nonce); _appleAuthManager.LoginWithAppleId( loginArgs, async credential => { try { var appleIdCredential = credential as IAppleIDCredential; var identityToken = Encoding.UTF8.GetString(appleIdCredential.IdentityToken); var authorizationCode = Encoding.UTF8.GetString(appleIdCredential.AuthorizationCode); var firebaseCredential = OAuthProvider.GetCredential( "apple.com", identityToken, rawNonce, authorizationCode); // 파이어베이스와 계정 연동 await FirebaseManager.Instance.Auth.SignInWithCredentialAsync(firebaseCredential); // 처음 Apple로 로그인시 이름이 있으면 파이어베이스 유저 업데이트 if (appleIdCredential.FullName != null) { var userName = appleIdCredential.FullName.ToLocalizedString(); var profile = new UserProfile(); profile.DisplayName = userName; await FirebaseManager.Instance.Auth.CurrentUser.UpdateUserProfileAsync(profile); } } catch (AggregateException ex) { // 로그인 실패 토스트 메세지 } catch (Exception ex) { // 로그인 실패 토스트 메세지 } finally { // 로더 끄기 } }, error => { var authorizationErrorCode = error.GetAuthorizationErrorCode(); switch (authorizationErrorCode) { case AuthorizationErrorCode.Canceled: break; case AuthorizationErrorCode.Unknown: case AuthorizationErrorCode.InvalidResponse: case AuthorizationErrorCode.NotHandled: case AuthorizationErrorCode.Failed: // 로그인 실패 토스트 메세지 break; } // 로더 끄기 }); } private string GenerateRandomString(int length) { const string charset = "0123456789ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvwxyz-._"; var cryptographicallySecureRandomNumberGenerator = new RNGCryptoServiceProvider(); var result = string.Empty; var remainingLength = length; var randomNumberHolder = new byte[1]; while (remainingLength > 0) { var randomNumbers = new List<int>(16); for (var randomNumberCount = 0; randomNumberCount < 16; randomNumberCount++) { cryptographicallySecureRandomNumberGenerator.GetBytes(randomNumberHolder); randomNumbers.Add(randomNumberHolder[0]); } for (var randomNumberIndex = 0; randomNumberIndex < randomNumbers.Count; randomNumberIndex++) { if (remainingLength == 0) { break; } var randomNumber = randomNumbers[randomNumberIndex]; if (randomNumber < charset.Length) { result += charset[randomNumber]; remainingLength--; } } } return result; } private string GenerateSHA256NonceFromRawNonce(string rawNonce) { var sha = new SHA256Managed(); var utf8RawNonce = Encoding.UTF8.GetBytes(rawNonce); var hash = sha.ComputeHash(utf8RawNonce); var result = string.Empty; for (var i = 0; i < hash.Length; i++) { result += hash[i].ToString("x2"); } return result; } }

위 코드는 사용중인 코드에서 Apple로 로그인 부분만 가져온 코드라서 그대로 사용하면 컴파일 에러가 발생할 수 있습니다.

추가 내용


플러그인을 사용하니 Apple로 로그인 구현은 생각보다 어렵지 않았다.
Quick login도 있었지만 테스트 과정에서 Quick login은 필요하지 않다고 판단해서 구현하지 않았다.
Apple로 로그인은 있지만 로그아웃은 개발자가 구현할 수 없었다. Apple ID 사용 중단은 유저가 설정에서 Apple ID를 사용하지 않을 앱을 정해 로그아웃해야한다.
그리고 유저의 FullName은 처음으로 Apple로 로그인 할 때에만 가져오고 나머지는 null 값을 가져온다.
만약에 유저가 이메일 숨기기를 통해 Apple로 로그인을 한다면 유저의 이메일은 <unique-alphanumeric-string>@privaterelay.appleid.com과 같은 형식을 따르게 된다.

참고 자료


Sign in with Apple | Tools | Unity Asset Store

lupidan/apple-signin-unity

Authenticate Using Apple and Unity | Firebase

lupidan/apple-signin-unity

[Unity] Apple Login과 Firebase 인증

 

 

 

[출처]

velog.io/@jinuku/Unity%EC%97%90%EC%84%9C-Apple%EB%A1%9C-%EB%A1%9C%EA%B7%B8%EC%9D%B8-%EA%B5%AC%ED%98%84

 

Unity에서 Apple로 로그인 구현

플러그인을 사용해서 Unity에서 Apple로 로그인을 쉽게 구현해보고 Firebase Auth와 연동합니다.

velog.io

 

반응형
Posted by blueasa
, |
ld: '/Users/tomykim/Documents/FacebookSDK/FacebookSDKs-iOS-4.28.0/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginButton.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

 

위와같은 오류메세지가 뜬다면

 

Build Settings 에서 Enable Bitcode를 "No"로 바꿔주세요.



출처: https://tom7930.tistory.com/50 [Dr.kim의 나를 위한 블로그]

 

IOS SWIFT bitcode 오류 해결 (does not contain bitcode)

ld: '/Users/tomykim/Documents/FacebookSDK/FacebookSDKs-iOS-4.28.0/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginButton.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode..

tom7930.tistory.com

 

 

[참조] gigas-blog.tistory.com/236

 

[Xcode] ENABLE_BITCODE

# Xcode11 Version 11.6 (11E708) 을 사용하고 있습니다. 은행권 보안 솔루션을 적용중에 아래와 같은 오류가 발생하였습니다. ld: '/Users/gigas/Documents/...)' does not contain bitcode. You must rebuild it..

gigas-blog.tistory.com

 

반응형
Posted by blueasa
, |

구글 플레이(Google Play)에 앱 배포 시 오류가 발생할 경우 해결 방법입니다.

 

오류 내용

업로드 실패

디버그가 가능한 APK를 업로드했습니다. 

보안상의 이유로 Google Play에 게시하기 전에 디버그를 사용 중지해야 합니다.

 

오류 발생 원인

이 오류의 발생 원인은 AndroidManifest.xml 파일의 debuggable 속성이 true로 지정된 상태로 APK 파일이 생성되었기 때문입니다.

 

 

해결방법

해결 방법은 간단합니다.

먼저 AndroidManifest.xml 파일을 열고 application 태그 속성의 debuggable을 false로 지정하여 저장합니다.

 

위의 설정이 완료되면 APK 파일을 다시 생성하여 구글 플레이에 업로드합니다.



출처: https://h5bak.tistory.com/279 [이준빈은 호박머리]

 

Google Play 디버그가 가능한 APK를 업로드했습니다.

구글 플레이(Google Play)에 앱 배포 시 오류가 발생할 경우 해결 방법입니다. 오류 내용 업로드 실패 디버그가 가능한 APK를 업로드했습니다. 보안상의 이유로 Google Play에 게시하기 전에 디버그를

h5bak.tistory.com

 

 
반응형
Posted by blueasa
, |

[링크] sqlitebrowser.org/

 

DB Browser for SQLite

DB Browser for SQLite The Official home of the DB Browser for SQLite Screenshot What it is DB Browser for SQLite (DB4S) is a high quality, visual, open source tool to create, design, and edit database files compatible with SQLite. DB4S is for users and dev

sqlitebrowser.org

 

반응형
Posted by blueasa
, |

Tag 이름과 Branch 이름이 같으면 Push 할 때 Error가 난다.

 

[결론] Tag와 Branch 이름은 같게 만들지 말자..

 

 

[참조] jira.atlassian.com/browse/SRCTREE-1474

 

[SRCTREE-1474] Pushing Branch With the Same Name as a Tag Fails - Create and track feature requests for Atlassian products.

When a branch has the same name as a tag, it errors when pushing to origin. Steps to reproduce: Add a Git repository. Push to a remote. Create a branch (eg. stsp-420). Create a tag on master with the same name (eg. stsp-420). Push the created tag to the re

jira.atlassian.com

 

반응형
Posted by blueasa
, |

Xcode의 계정 변경 등의 상황에서 Provisioning Profiles을 삭제하여 깔끔하게 정리해야 할 경우가 아주 가끔 있습니다.

다음 경로에서 Provisioning Profiles을 삭제할 수 있습니다.

 

~/Library/MobileDevice/Provisioning Profiles

 

[출처] minsone.github.io/mac/ios/delete-provisioning-profiles

 

[Xcode]Provisioning Profiles 삭제하기

Xcode의 계정 변경 등의 상황에서 Provisioning Profiles을 삭제하여 깔끔하게 정리해야 할 경우가 아주 가끔 있습니다. 다음 경로에서 Provisioning Profiles을 삭제할 수 있습니다. ~/Library/MobileDevice/Provisionin

minsone.github.io

 

반응형
Posted by blueasa
, |