M1에서 npm run ios 시 빌드 에러

JH.P·2022년 9월 23일
  • 현재 M1 맥북을 사용 중이다.
  • npm run start를 이용하여 포트를 열고, ios 명령어를 통해 앱을 빌드하는데 아래와 같이 에러가 발생하였다.
2022-09-23 15:31:48.276 xcodebuild[11126:1398363] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-09-23 15:31:48.277 xcodebuild[11126:1398363] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
** BUILD FAILED **
  • 다른 해결 방법에 관한 글을 참고하여, 삭제하여 다시 설치하고를 반복하였지만 해결이 되지 않았다. 지속적인 구글링을 통해 아래 링크에서 해당 글을 발견하였다.
    https://github.com/facebook/react-native/issues/34063

I had the same issue and solved by installing this gem

sudo arch -x86_64 gem install ffi

and then running this in my ios folder

arch -x86_64 pod install

After this you can run pod install with no issues. Now restart the app.

Found this on the react-native environment setup page for mac
Under Note for Mac M1 users for installing cocoa pods

위 과정을 거쳐 빌드하는데 무사히 성공하였다..!

profile
꾸준한 기록

0개의 댓글