iOS/Errors 6

[iOS-Error] 카메라를 사용하려 할 때 에러 해결 UIImagePickerController()

앱에서 카메라를 통해 사진을 가져오려고 UIImagePickerController()를 사용하는데 에러가 발생했습니다. 애플의 프라이버시 규정 때문인데 권한 문제를 해결해보겠습니다! 에러메세지 [access] 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. Infoplist에 가서 권한을 설정해 주면 되는데 여기서 에러메세지에 ..

iOS/Errors 2022.07.12

[iOS-Error] The ios simulator deployment~~ 에러

에러명 the ios simulator deployment target 'iphoneos_deployment_target' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. 다음의 에러가 발생했는데 지원 버전과 설정 버전이 맞지 않아 발생하는 에러라고 합니다. 해결법 pod 파일에 가서 다음을 추가하시고 install 하니 해결되었습니다. 붙이는 위치는 end 바로 위라고 생각하시면 됩니다. post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |conf..

iOS/Errors 2022.02.28

[iOS-Error] Pod과 swift package manager를 동시 사용했을때

괜찮을거라 생각했는데 pod과 package manager로 각각 다른 라이브러리를 설치하니 오류가 납니다.. (어찌보면 당연한건가?) 암튼 이럴때 해결 방법을 알아내서 정리해 보려 합니다. Xcode -> preference -> Loccations -> 화살표 클릭 DrivedData 에서 프로젝트 관련 파일 모두 삭제(저는 두가지를 사용했더니 폴더가 두개 있었습니다.) 프로젝트폴더 -> pod.lock, pods 폴더 삭제 콘솔에서 -> pod install 하니 다시 정상 작동 되었습니다.

iOS/Errors 2022.02.28

[iOS-Error] cocoaPod 라이브러리 설치 에러

문제 cocoaPod으로 라이브러리를 설치하기 위해 공식 페이지에서 커맨드를 복사하고 붙여넣은 후에 pod install을 진행하였더니 에러가 납니다. 이대로는 build를 할 수도 라이브러리를 사용할 수도 없었습니다. 해결 분명 명령어는 정확한데 오타가 난것도 아니고 고민을 했는데 아무래도 맥북이니까 공백문자가 다르지 않을까 하는 생각이 들어 명령어를 지우고 다시 쳐준 후에 pod install을 하니 제대로 동작했습니다.

iOS/Errors 2022.02.13

[iOS-Error] 파이어베이스 로그인 에러처리

일단 파이어베이스에서 이메일-비밀번호 구글 로그인을 했을때 에러를 처리하는 방법인데 다른 곳에서도 사용할 수 있을듯 해서 간단하게 포스팅합니다. // 신규 사용자 생성 Auth.auth().createUser(withEmail: email, password: password) { [weak self] authResult, error in guard let self = self else {return} // 에러 처리 if let error = error { let code = (error as NSError).code // 에러 의 code=?? 중 ??을 저장 switch code { case "숫자-에러코드": // 이미 가입한 계정일때 에러 // 에러 상황별 코드 default: // localiz..

iOS/Errors 2022.02.12