-
[Xcode] NSInvalidArgumentException 기록 (CommonCrypto)Xcode ⚒ 2022. 11. 8. 19:00반응형
NSInvalidArgumentException 발생하였다. 원인은 제각각이지만 기록을 해둘려고합니다.
CommonCryto를 활용해 sha1 암호화를 할려던 중 아래와 같이 발생하였다.
libc++abi: terminating with uncaught exception of type NSException *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString getSha1:isReal:]: unrecognized selector sent to instance 0x2057ec860' terminating with uncaught exception of type NSException
기존 프로젝에서 CommonCryto.m, CommonCryto.h 파일을 드래그 앤 드랍으로 옮기면서Target Membership이 체크 되어있지않았던게 문제였습니다.
체크해주니 잘 됩니당
'Xcode ⚒' 카테고리의 다른 글
Xcode 앱스토어보다 빠르게 설치하기 (1) 2023.03.18 cannot preview in this file 문제 해결 (1) 2023.01.01 [Xcode] No such module 'RxSwift', could not find module for target (0) 2022.11.18 [Xcode] Xcode 14에서 pod init시 에러해결 (0) 2022.11.08 [Xcode] wireless development for iOS - 무선으로 빌드해보기 ! (0) 2022.10.26