개발자

react-native xcode build시 발생 에러

2023년 10월 25일조회 306

``` ld: warning: ignoring file '/Users/heejinroh/Library/Developer/Xcode/DerivedData/OkCeo-abydistjrfwgsufmyimbpydzjpqj/Build/Products/Debug-iphonesimulator/Flipper-Folly/libFlipper-Folly.a[3](Assume.o)': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/Users/heejinroh/Library/Developer/Xcode/DerivedData/OkCeo-abydistjrfwgsufmyimbpydzjpqj/Build/Products/Debug-iphonesimulator/Flipper-Folly/libFlipper-Folly.a[2](Addr2Line.o)': found architecture 'arm64', required architecture 'x86_64' ld: Undefined symbols: _OBJC_CLASS_$_RCTBridge, referenced from: in AppDelegate.o _OBJC_CLASS_$_RCTBundleURLProvider, referenced from: in AppDelegate.o _OBJC_CLASS_$_RNKakaoLogins, referenced from: in AppDelegate.o _RCTAppSetupDefaultRootView, referenced from: -[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o _RCTAppSetupPrepareApp, referenced from: -[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o clang: error: linker command failed with exit code 1 (use -v to see invocation) ``` xcode 14 버전으로 생성된 프로젝트를 xcode 15버전으로 진행하여 실행했는데 빌드단계에서 에러가 계속 발생해서 혹시 도움좀 주실수있을까요? System: OS: macOS 14.0 CPU: (12) arm64 Apple M2 Pro Memory: 647.83 MB / 32.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 18.17.1 - ~/.nvm/versions/node/v18.17.1/bin/node Yarn: 1.22.19 - ~/.nvm/versions/node/v18.17.1/bin/yarn npm: 9.6.7 - ~/.nvm/versions/node/v18.17.1/bin/npm Watchman: 2023.09.25.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /Users/heejinroh/.rvm/gems/ruby-3.2.1/bin/pod SDKs: iOS SDK: Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0 Android SDK: Not Found IDEs: Android Studio: 2022.3 AI-223.8836.35.2231.10671973 Xcode: 15.0.1/15A507 - /usr/bin/xcodebuild Languages: Java: 11.0.11 - /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.1.0 => 18.1.0 react-native: 0.70.8 => 0.70.8 react-native-macos: Not Found npmGlobalPackages: *react-native*: Not Found

이 질문이 도움이 되었나요?
'추천해요' 버튼을 누르면 좋은 질문이 더 많은 사람에게 노출될 수 있어요. '보충이 필요해요' 버튼을 누르면 질문자에게 질문 내용 보충을 요청하는 알림이 가요.

답변 0

답변이 없을 때 보이는 아이콘

첫 답변을 기다리고 있어요.

지금 가입하면 모든 질문의 답변을 볼 수 있어요!

현직자들의 명쾌한 답변을 얻을 수 있어요.

또는

이미 회원이신가요?

AI 답변
커리어리 AI 봇 프로필 이미지

커리어리 AI 봇

GPT가 달아주는 답변입니다.

2023년 10월 25일

이 문제의 원인은 여러가지일 수 있지만, 일반적으로는 아키텍처 불일치로 인한 것 같습니다. x86_64(시뮬레이터)와 arm64(실제 디바이스) 사이에서 발생하는 이슈로 보입니다. 해결방안 : 1. 프로젝트 설정에서 "Build Settings"를 확인하고, "Architectures" 항목에서 "$(ARCHS_STANDARD)"라고 설정되어 있는지 확인하십시오. 2. Xcode 12.2 이상에서는 해당 프로젝트의 build settings 에서 'Excluded Architectures' 항목을 찾아 'Any iOS Simulator SDK' 값에 'arm64' 를 추가합니다. 3. 해당 error가 RNKakaoLogins 관련해서 나온 것으로 판단됩니다. Kakao SDK 버전을 확인해 보시고 최신 버전으로 업데이트 해보십시오. 4. React Native 버전과 시스템 환경이 모두 최신 버전인 것 같으니, 모듈들의 호환성 문제일 수 있습니다. 각각의 모듈들을 개별적으로 확인하거나, 필요에 따라 다른 버전으로 다운그레이드 해보세요. 5. pod install 을 할 때 --no-repo-update 옵션을 제거하고 다시 실행해 보십시오. 재설정 후에도 계속 문제가 발생한다면, 직접 애플리케이션 테스트를 통해 정확하게 디버깅해야 할 수도 있습니다.

목록으로

지금 가입하면 모든 질문의 답변을 볼 수 있어요!