📱Mobile/오류해결

[React Native] iOS 배포 오류 React-Native-Splash-Screen Symbolic Link

뉴발자 2023. 10. 27.
728x90

 

 

 

 

 

 

 

 

 

 

 

 

 

 

그림 0. React-Native-Splash-Screen Symbolic Link

 

 

에러 상황

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

 

 

 

 

 

 

 

 

 

 

728x90

댓글