에러 상황
xCode에서 앱을 빌드 및 업로드한 뒤 TestFlight 에 올라간 앱이 몇 분 후 Build 목록에서 사라져 버리는 현상 발생했다.
없어진 Build에 관한 오류 상황을 위 그림과 같이 메일로 전달받았다.
에러 코드
ITMS-90332: Invalid Symbolic Link - The symbolick link 'react-native-splash-screen/node_modules/.bin/react-native' resolves to an invalid location. Make sure that the symbolic link does not resolve to itself, and thatt the location exists and is contanined within the app bundle.
해결 방법
프로젝트 Root 폴더에서 아래의 커멘드를 입력해 준다.
unlink node_modules/react-native-splash-screen/node_modules/.bin/react-native
위 명령어 적용 시 .bin의 react-native가 사라지게 된다.
이후 다시 빌드 후 배포 시 TestFlight에 정상적으로 업로드 가능하다.
만약 위 과정 후 Distrebute App 시 "Reached end of file while looking for: Mach-O Slice" 오류가 발생한다면 아래의 과정을 수행해주면 된다.
rm -rf node_modules
rm -rf ./ios/build
rm -rf ./ios/Pods
yarn
cd ios && pod install
unlink node_modules/react-native-splash-screen/node_modules/.bin/react-native
# 이후 빌드 과정 다시 수행.
위의 방법들이 안될 시 xCode의 관련 데이터들을 삭제한 후 시도해보면 된다.
참고 사이트
https://github.com/crazycodeboy/react-native-splash-screen/issues/262
[iOS] Cannot archive for app store: Invalid Symlink · Issue #262 · crazycodeboy/react-native-splash-screen
Getting error: Your package contains a symbolic link 'react-native-splash-screen/node_modules/.bin/react-native' which resolves to a location 'react-native-splash-screen/node_modules/.bin/../../../...
github.com
https://sujinnaljin.medium.com/xcode-deriveddata-%EC%82%AD%EC%A0%9C%ED%95%98%EA%B8%B0-b64492ecb4a7
[Xcode] DerivedData 삭제하기
Build Clean(⌘ + ⇧ + K)으로 해결이 안된대도 신에게는 아직 하나의 방법이 남아있읍니다..!
sujinnaljin.medium.com
'📱Mobile > 오류해결' 카테고리의 다른 글
[React Native] could not build objective-c module (0) | 2025.03.11 |
---|---|
[React Native] Reached end of file while looking for: Mach-O slice. (0) | 2024.05.21 |
[React Native] react-native init 오류 - TypeError: cli.init is not a function (0) | 2024.01.11 |
[React Native] NAVER Login Error (0) | 2023.03.24 |
[React Native] Kakao Login - invalid android_key_hash or ios_bundle_id or web_site_url (0) | 2023.03.20 |
댓글