📱Mobile/오류해결

[React Native] could not build objective-c module

뉴발자 2025. 3. 11.
728x90

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

에러 상황

프로젝트 버전을 업그레이드 시킨 후 새로 프로젝트를 빌드하면서 다음과 같은 에러 메시지가 발생했다.

 

 

에러 코드

Could not build Objective-C module 'Module'

 

 

해결 방법

애플 개발자 센터에 똑같은 오류가 있었고 해결 방법이 자세히 나와있었다.

 

아래의 순서대로 진행해주니 정상적으로 빌드가 완료됐다.

 

필자는 1~3번은 생략하고 4번부터 진행했다.

 

1. Xcode -> Settings -> Locations -> Derived Data 의 화살표 클릭

 

2. Xcode 종료

 

3. Derived Data 폴더 내의 문제가 됐던 폴더 삭제

 

4. 프로젝트 ios 폴더 내의 xcworkspac, PodFile.lock, Pods 삭제

 

5. 터미널의 ios 폴더에서 pod install --verbose 명령어 실행

 

6. 새로 생성된 xcworkspac 폴더를 Xcode로 연 후 빌드

 

 

참고 사이트

https://developer.apple.com/forums/thread/128535

 

Could not build Objective-C module… | Apple Developer Forums

People are missing this step here "This creates an .xcworkspace file for your app. Use this file for all future development on your application" Stop using the workspace that you originally created. Close your editor, and open the one that its created af

developer.apple.com

 

 

 

 

 

 

 

 

 

 

728x90

댓글