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

카테고리

분류 전체보기 (2859)
Unity3D (898)
Script (95)
Extensions (16)
Effect (3)
NGUI (81)
UGUI (9)
Physics (2)
Shader (43)
Math (1)
Design Pattern (2)
Xml (1)
Tips (204)
Link (26)
World (1)
AssetBundle (25)
Mecanim (2)
Plugins (87)
Trouble Shooting (71)
Encrypt (7)
LightMap (4)
Shadow (4)
Editor (12)
Crash Report (3)
Utility (9)
UnityVS (2)
Facebook SDK (2)
iTween (3)
Font (18)
Ad (14)
Photon (2)
IAP (1)
Google (12)
URP (5)
Android (54)
iOS (47)
Programming (479)
Server (33)
Unreal (4)
Gamebryo (56)
Tip & Tech (192)
협업 (64)
3DS Max (3)
Game (12)
Utility (142)
Etc (99)
Link (34)
Portfolio (19)
Subject (90)
iOS,OSX (53)
Android (16)
Linux (5)
잉여 프로젝트 (2)
게임이야기 (3)
Memories (20)
Interest (38)
Thinking (38)
한글 (30)
PaperCraft (5)
Animation (408)
Wallpaper (2)
재테크 (19)
Exercise (3)
나만의 맛집 (3)
냥이 (10)
육아 (16)
Total
Today
Yesterday

iOS 10에서 Privacy 설정

기존 앱을 XCode8로 다시 빌드하면 
iOS 10에서 카메라나 다른 기능을 사용시 아무런 경고도 없이 Crash가 발생하게 된다.

디버그 메시지는 다음과 같다.

This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app’s Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.

iOS 10에서 아래와 같은 기능을 사용하기 위해서는 사용자의 확인 메시지를 설정해줘야 한다.

사용 설명을 요구하는 API 항목들

Data ClassXCode KeyRaw Info.plist Key
Apple MusicPrivacy - Media Library Usage DescriptionNSAppleMusicUsageDescription
BluetoothPrivacy - Bluetooth Peripheral Usage DescriptionNSBluetoothPeripheralUsageDescription
CalendarPrivacy - Calendars Usage DescriptionNSCalendarsUsageDescription
CameraPrivacy - Camera Usage DescriptionNSCameraUsageDescription
ContactsPrivacy - Contacts Usage DescriptionNSContactsUsageDescription
HealthPrivacy - Health Share Usage Description Privacy - Health Update Usage DescriptionNSHealthShareUsageDescription NSHealthUpdateUsageDescription
HomePrivacy - HomeKit Usage DescriptionNSHomeKitUsageDescription
LocationPrivacy - Location Always Usage Description Privacy - Location When In Use Usage DescriptionNSLocationAlwaysUsageDescription NSLocationWhenInUseUsageDescription
MicrophonePrivacy - Microphone Usage DescriptionNSMicrophoneUsageDescription
MotionPrivacy - Motion Usage DescriptionNSMotionUsageDescription
PhotosPrivacy - Photo Library Usage DescriptionNSPhotoLibraryUsageDescription
RemindersPrivacy - Reminders Usage DescriptionNSRemindersUsageDescription
SiriPrivacy - Siri Usage DescriptionNSSiriUsageDescription
Speech RecognitionPrivacy - Speech Recognition Usage DescriptionNSSpeechRecognitionUsageDescription
TV Provider AccountPrivacy - TV Provider Usage DescriptionNSVideoSubscriberAccountUsageDescription

Info.plist에서 Privacy 설정을 추가해주면 된다.


다음은 사진 라이브러리와 카메라 접근시 사용 예제입니다.

Privacy - Camera Usage Description
Privacy - Photo Library Usage Description

[추가] Decription String을 필수로 넣어야 함. - blueasa

[Privacy - Camera Usage Description] Everyplay requires access to the Camera library

[Privacy - Photo Library Usage Description] Everyplay requires access to the photo library

[Privacy - Calenders Library Usage Description] Some ad content may access calendar


앱에서 사진 라이브러리 접근시 다음과 같은 메시지를 보게 된다.



출처: http://kka7.tistory.com/40 [까칠하게 살자]


[참조1] https://dev.tapjoy.com/ko/submitting-ios-results-warning-nscalendarsusagedescription/


[참조2] http://docs.telerik.com/platform/knowledge-base/troubleshooting/troubleshooting-app-rejected-from-app-store-missing-info-plist-key



반응형
Posted by blueasa
, |


[Windows Path] Users\<user>\AppData\LocalLow\Unity\WebPlayer\Cache\<project_name>\


[Mac Path] ~/Library/Caches/Unity/



[출처] http://answers.unity3d.com/questions/956259/where-is-the-cache-folder-for-wwwloadfromcacheordo.html

반응형
Posted by blueasa
, |


[링크] http://blog.naver.com/rapkuma/220150432332



반응형
Posted by blueasa
, |

ARKit(Animoji 관련)

Unity3D/Tips / 2017. 9. 26. 12:01

[Unity ARKit Plugin]

https://www.assetstore.unity3d.com/kr/#!/content/92515



[Animoji]

https://forums.developer.apple.com/thread/86937

https://developer.apple.com/videos/play/fall2017/601/

https://developer.apple.com/documentation/arkit

반응형
Posted by blueasa
, |


[링크] http://travelerstory.tistory.com/128

반응형
Posted by blueasa
, |

AndroidManifest에 다음 줄을 추가하면

시작하자마자 뜨는 퍼미션 요청을 스킵할 수 있습니다.


<meta-data android:name="unityplayer.SkipPermissionsDialog" android:value="true" />



출처: http://minhyeokism.tistory.com/54 [programmer-dominic.kim]

반응형
Posted by blueasa
, |

유니티 엔진 사용 시 입력을 하지 않으면 모바일 장치의 화면이 어두워지다가 잠기게 되는데, 그러면 플레이어는 잠김을 다시 풀어야 해서 불편합니다. 따라서 화면 잠금 방지 기능 추가는 필수적이고, Screen.sleepTimeout를 아래처럼 설정하면 그걸 할 수 있습니다.

1
Screen.sleepTimeout = SleepTimeout.NeverSleep;

참고:


[출처] https://sunhyeon.wordpress.com/2014/03/26/1400/

반응형
Posted by blueasa
, |


[링크] http://m.blog.daum.net/zevie/21

반응형
Posted by blueasa
, |



[링크] http://ijemin.com/blog/5385

반응형
Posted by blueasa
, |

[링크] ETC1 + Alpha

Unity3D/Tips / 2017. 4. 6. 17:36


[링크] http://twocap.tistory.com/11



[참조] https://www.assetstore.unity3d.com/kr/#!/content/23722

반응형
Posted by blueasa
, |