Develop/IOS

Xcode 인터넷 사용시 권한 추가하기

dlsdnd345 2016. 2. 13. 17:20



Xcode 인터넷 사용시 권한 추가하기


xCode 에서 인터넷 통신을 사용시에 권한 추가가 필요 합니다.

권한이 추가 되어있지 않으면 위와 같은 에러가 나타 납니다.


 

App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. 

Temporary exceptions can be configured via your app's Info.plist file.


프로젝트의 plist 파일을 열어서 권한을 추가합니다.

App Transport Security Settings

  Allow Arbitray Loads YES

로 설정 해주시면 통신이 잘되는것을 확인 할수 있습니다.