This app attempts to access privacy-sensitive data without a usage description. The app’s Info.plist must contain an NSCalendarsUsageDescription key with a string value explaining to the user how the app uses this data.
Programming/IOS 2017. 1. 11. 22:57반응형
1. XCode로 실행시 아래와 같은 오류가 발생
This app attempts to access privacy-sensitive data without a usage description. The app’s Info.plist must contain an NSCalendarsUsageDescription key with a string value explaining to the user how the app uses this data.
2. 문제를 알아보니 IOS 10부터 필수적으로 접근을 하려는 곳을 명시해줘야한다. (안드로이드의 유저 퍼미션을 설정해주는 것과 같은것 같다.)
3. 프로젝트 폴더에서 info.plist 를 검색하면 파일이 나올텐데, 아래와 같이 추가해주면 된다.
<dict>
<key>NSCalendarsUsageDescription</key>
<string>설명문 작성</string>
..........
</dict>
4. 잘 정리된 곳을 이곳으로 링크한다.
반응형
'Programming > IOS' 카테고리의 다른 글
[Ios/ObjectC]웹뷰 자바스크립트에서 ios 함수 호출(bridge, JSExport) (0) | 2018.08.09 |
---|---|
String 날짜를 NSDate로 변경 후 NSString 포맷형식에 맞게 변환하기 (0) | 2017.07.21 |
NSMutableArray 사용 (0) | 2017.01.24 |
nitWithData:YourData encoding:NSUTF8StringEncoding 가 안될때 (0) | 2017.01.12 |
XCode Build Failed (0) | 2016.12.27 |