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

카테고리

분류 전체보기 (2731)
Unity3D (814)
Script (91)
Extensions (14)
Effect (3)
NGUI (77)
UGUI (8)
Physics (2)
Shader (36)
Math (1)
Design Pattern (2)
Xml (1)
Tips (200)
Link (22)
World (1)
AssetBundle (25)
Mecanim (2)
Plugins (68)
Trouble Shooting (68)
Encrypt (7)
LightMap (4)
Shadow (4)
Editor (8)
Crash Report (3)
Utility (9)
UnityVS (2)
Facebook SDK (2)
iTween (3)
Font (10)
Ad (14)
Photon (2)
IAP (1)
Google (8)
Android (45)
iOS (41)
Programming (474)
Server (33)
Unreal (4)
Gamebryo (56)
Tip & Tech (228)
협업 (57)
3DS Max (3)
Game (12)
Utility (136)
Etc (96)
Link (32)
Portfolio (19)
Subject (90)
iOS,OSX (51)
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
03-28 00:02

[링크] https://ms-dev.tistory.com/104

 

[flutter] GoogleAppMeasurement requires CocoaPods version >= 1.10.2, which is not satisfied by your current version, 1.10.1. Err

해당 프로젝트의 ios의 pod를 업데이트 해주면 해결된다. [해결방법] 터미널을 열고 아래 명령을 순서대로 입력한다. 1) 해당 프로젝트의 ios 경로로 이동 #> cd [프로젝트 경로]/ios 2) pod 업데이트 실

ms-dev.tistory.com

 

반응형
Posted by blueasa
, |

[추가]

[Fixed] iOS: Fixed game objects' colors in light mode. (1379817)

2020.3.27f1 버전에서 해당 이슈가 수정되었다.

 

--------------------------------------------------------------------------------------------------------

Unity 2020.3.21f1에서 Unity 2020.3.22f1으로 업데이트 하고나니 Android는 문제없는데, iOS에서 기존에 발생하지 않던 쉐이더 문제가 생겼다.

 

[증상] 기존에 검은 느낌이던 텍스쳐가 약간 회색빛이 나옴

아래 이미지에서 A이던 느낌이 B느낌이 남

그래서 Unity 2020.3.21f1으로 내리니 다시 정상동작 하는걸 확인했다.

링크 내용을 보니 iOS Dark Mode 관련 버그라고 한다.

 

현재 임시로 해결하는 방법은 iOS Info.plist에서 강제로 Dark Mode로 셋팅 하는 방법이 있다고 한다.

 

버그가 수정될 때까지 Dark Mode로 셋팅하거나, Unity 2020.3.21f1 이하 버전을 사용해야 될 것 같다.

 

 

 

[Unity 소스상에서 Info.plist 수정]

var projectPath = pathToBuiltProject + "/Unity-iPhone.xcodeproj/project.pbxproj";
var plistPath = System.IO.Path.Combine(pathToBuiltProject, "Info.plist");
var plist = new PlistDocument();
plist.ReadFromFile(plistPath);

// [iOS15+Unity2020.3.22f1 이슈] Force Dark Mode(Automatic/Light/Dark) - Appearance
plist.root.SetString("UIUserInterfaceStyle", "Dark");

 

 

 

[Info.plist 수정 참조 링크] https://stackoverflow.com/questions/56537855/is-it-possible-to-opt-out-of-dark-mode-on-ios-13/64015200

 

Is it possible to opt-out of dark mode on iOS 13?

A large part of my app consists of web views to provide functionality not yet available through native implementations. The web team has no plans to implement a dark theme for the website. As such,...

stackoverflow.com

 

 

 

[출처] https://stackoverflow.com/questions/70239569/unity-shader-glitches-according-to-the-dark-mode-on-ios-15

 

Unity shader glitches according to the Dark Mode on iOS 15

I'm using a shader (code below) which allows me to turn an image color into a grayscale (with transparency if needed). Everything was perfect until I updated my device to iOS 15. Since that update,...

stackoverflow.com

 

반응형
Posted by blueasa
, |

[링크] https://violentjy.tistory.com/95

 

[iOS Archive] conflicting provisioning settings 어쩌구

아!!!!!!!!!!!!! 넘 화난당!!!!!!!!!!!!!!!!!!! TestFlight 연동을 해야하는데, App store 에 build 올리는 거에 대해 정리된 문서를 보다가 영어 문장을 너무 대충 읽어서 "니 앱이 적절한 Bundle ID를 가지고..

violentjy.tistory.com

 

[링크] https://phillip5094.github.io/ios/unity/Unity-iPhone-has-conflicting-provisioning-settings-%ED%95%B4%EA%B2%B0/

 

Unity-iPhone has conflicting provisioning settings 해결방법

2020.05.30

phillip5094.github.io

 

 

 

반응형
Posted by blueasa
, |

[링크] https://dev.classmethod.jp/articles/xcode-no-signing-certificate-ios-development-found-error/

 

[Xcode] アプリをArchiveしようとして「No signing certificate “iOS Development” found」エラーになった場合

App Storeに申請するためにアプリをArchiveしようとしたら 「No signing certificate "iOS Development" found」 という署名証明書のエラーが出てしまいました。 本記事ではこのエラーが起きた場合の解決方

dev.classmethod.jp

 

반응형
Posted by blueasa
, |

[My Case]

Unity에서 연출 씬을 제작하기 위해서 SLATE Cinematic Sequencer를 썼는데,

제작하고 영상으로 Export 하기 위해서 SLATE Extension 중에 Rendering이 있어서 추가하고나니 제목과 같은 에러가 났다.

아래 링크에서 유추해보니 fccore.bundle이 빌드에 딸려들어가서 iOS Archive에서 에러가 나는 걸로 보인다.

 

fccore.bundle의 설정을 보니 아래와 같이 Any platform으로 설정 돼 있다.

fccore.bundle 기본 상태

 

그래서 fccore.dll 파일의 설정을 보니 아래와 같이 Editor로 돼있고,

Platform settings는 CPU : x86_64, OS : Any OS로 돼있다.

fccore.dll 기본 상태

 

[결론]

렌더링용 Extention이라서 빌드에 포함 될 이유는 없기 때문에 Editor에서만 사용되도록,

fccore.bundle 설정을 Editor / CPU : x86_64 / OS : Any OS 로 변경하니 빌드가 잘 된다.

 

 

 

[링크] https://m.blog.naver.com/eastfever5/222022901324

 

Uniy iOS 빌드 아카이빙 오류 - fccore.bundle

'인생낱말찾기'의 iOS 배포를 준비중에 위와 같은 오류를 만났습니다. 결론적으로 위 문제는 ...

blog.naver.com

[참조] https://forum.unity.com/threads/ios-build-failing-fccore-bundle-has-conflicting-provisioning-settings-xcode-9-2-automatic-signi.520730/

 

IOS Build failing 'fccore.bundle has conflicting provisioning settings.' Xcode 9.2 Automatic Signi

Hi, I am using Unity 2017.3.1 and have recently updated xcode to 9.2. I am trying to automatically sign and I am getting the following errors....

forum.unity.com

 

반응형
Posted by blueasa
, |

[증상]

Unity2019에서 Unity Audience Network(FAN) 6.2.1 추가된 상태로 iOS 빌드하니,

Runtime 중에 'FBAdSettings is a final class and cannot be subclassed.'와 같은 에러를 내면서 크래시가 남.

 

[해결]

인터넷 검색해보니 iOS Framework에는 Static과 Dynamic 두가지가 있는데, FAN의 Adapter는 Dynamic을 사용하고 있어서 일어나는 크래시 같다.

'Assets-External Dependency Manager-iOS Resolver-Settings-Link frameworks statically'에 체크(v) 해서,

framework을 static으로 바꾸자.

 

 

[출처] zenn.dev/sukedon/scraps/ff1efb96738309

 

[Unity,MAX]FBAudienceNetworkでクラッシュ

Unity製アプリにMAXというApplovinのメディエーションツールを使ってFacebookAudienceNetworkを導入していた。 最新のバージョンにアップデートしたら起動時にクラッシュするようになった。

zenn.dev

 

반응형
Posted by blueasa
, |

​With Apple’s incoming changes to the requirements for use of IDFA and needing to request users permission via App Tracking Transparency popup which is incoming at some point in early 2021. Apps need to start to prepare to the incoming changes.

​So how do you add a IDFA App Tracking Transparency popup from a Unity app?

At the moment there is no build in Unity method that will trigger the notification, There is however a preview package!

​As a note App Tracking Transparency is only required on IOS 14 devices, Altough this won’t causing issues on any lower OS version it won’t trigger the popup. If you don’t have access to a IOS 14 device you can test this with the XCode Emulators.​

1. Download Unity IOS Support Package

​Download the com.unity.ads.ios.support library from Github. This is current in preview and won’t be found directly from the package manager.

Unzip this into a folder outside your Asset Folder.

​Note it is best to make sure these files are checking into source control we will be using a relative path from Unity package manager.​

2. Add to Package Manager

​Now in you’re unity project go Windows->Package Manger.

​​

Then press the plus button and add from disk and navigate to the package.json file within the com.unity.ads.ios.support that we just unzipped.

​​

Unity will then import the package, Because we have imported the file from within the base Unity Project file the file has been direct to a relative path, if you however place this file outside this folder you will need to edit the Packages/manifest.json file to make it relative.

​​

​​

3. Triggering App Tracking Transparency Request

​As most SDK recommend We will need to trigger this before we initialize any SDK’s that we wish to pass the IDFA into. We also can only trigger this one pre install with users being able to edit there preference within the IOS Settings menu.​​Here we are using a really simple system where we trigger the notification when a user press a button.

Breaking down

​We first state we are using the IosSupport Library. We also inclosing this with a UNITY_IOS pre-compile which means we will only compile this code if we are running on IOS

#if UNITY_IOS using Unity.Advertisement.IosSupport; #endif

Next the actual triggering, again inclosing this with the UNITY_IOS pre-compile. We first check call ATTrackingStatusBinding.GetAuthorizationTrackingStatus() which will tell if the user has already set there preference, then ATTrackingStatusBinding.RequestAuthorizationTracking() Which will trigger the popup.

#if UNITY_IOS if(ATTrackingStatusBinding.GetAuthorizationTrackingStatus() == ATTrackingStatusBinding.AuthorizationTrackingStatus.NOT_DETERMINED) { ATTrackingStatusBinding.RequestAuthorizationTracking(); } #endif

4. Post build steps

​Like any other permission request Apple requires a description on why you are requesting these permission. For this we need to add the NSUserTrackingUsageDescription key to our PList. Instead of having to do this each time we create a build we are going to create a post build step that automatically adds it to the XCode Project

​You can see more about Unity post build steps here

using UnityEditor;
using UnityEditor.Callbacks;
#if UNITY_IOS
using UnityEditor.iOS.Xcode;
#endif
using System.IO;
 
public class PostBuildStep
{
/// <summary>
/// Description for IDFA request notification
/// [sets NSUserTrackingUsageDescription]
/// </summary>
const string TrackingDescription =
"This identifier will be used to deliver personalized ads to you. ";
 
[PostProcessBuild(0)]
public static void OnPostprocessBuild(BuildTarget buildTarget, string pathToXcode)
{
if (buildTarget == BuildTarget.iOS)
{
AddPListValues(pathToXcode);
}
}
 
static void AddPListValues(string pathToXcode)
{
// Get Plist from Xcode project
string plistPath = pathToXcode + "/Info.plist";
 
// Read in Plist
PlistDocument plistObj = new PlistDocument();
plistObj.ReadFromString(File.ReadAllText(plistPath));
 
// set values from the root obj
PlistElementDict plistRoot = plistObj.root;
 
// Set value in plist
plistRoot.SetString("NSUserTrackingUsageDescription", TrackingDescription);
 
// save
File.WriteAllText(plistPath, plistObj.WriteToString());
}
 
}

view rawPostBuild.cs hosted with ❤ by GitHub

​Here we just read in the PlistFile from the Xcode project we just created, then add in a new string values​plistRoot.SetString(“NSUserTrackingUsageDescription”, TrackingDescription);​Which sets the our popup text.​​

4. Testing it out

​Build the App to Xcode as normal and open it up in Xcode. If you open up the Info.Plist you will see the description we just added in from the post build step

​​​​

Now we can just build and play on our device. Then just press the button and you should see the IDFA Popup!

​​​​​

​​​​

​You will notice that if you press the button again it won’t re-trigger this is by the apple requirements so we will need to uninstall and pre-install to test it again.​

​This is the basic implementation ahead of the requirement of App Tracking Transparency for IOS, for a production version it may be best to pre-warn users about the popup, explaining why you are wanting to use the IDFA. This will likely improve the number of user who opt-in​

If any problems feel free to drop me a line on Twitter @Gamereat.

 

 

[출처] alanyeats.com/post/unityapptrackingtransparencypopup/

 

App Tracking Transparency in Unity (IDFA Popup) | Alan Yeats | Pocket Sized Hands Co-Founder | VR / AR Developer

​ With Apple’s incoming changes to the requirements for use of IDFA and needing to request users permission via App Tracking Transparency popup which is incoming at some point in early 2021. Apps need to start to prepare to the incoming changes. ​ So

alanyeats.com

 

반응형
Posted by blueasa
, |

[참조] iOS Supported Language Codes (ISO-639)

 

iOS Supported Language Codes (ISO-639) | Babble-on

iOS Supported Language Codes (ISO-639) Bookmark Babble-on Did you know we have a free localization portal? Free pseudolocalization Free iOS/Android tutorials Free localization advice How do you name that .xliff or .lproj folder with your localization files

www.ibabbleon.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
, |