반응형

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. 잘 정리된 곳을 이곳으로 링크한다.

반응형