[iOS/Error] Command PhaseScriptExecution failed with a nonzero exit code

SoyoungLeeΒ·2024λ…„ 1μ›” 11일
0
post-thumbnail

πŸ’Œ [Swift/Error] Command PhaseScriptExecution failed with a nonzero exit code

Xcode 15.2 μ—μ„œ iOS ν”„λ‘œμ νŠΈ λΉŒλ“œλ₯Ό ν•˜λ‹€ 였λ₯˜κ°€ 났닀.

Command PhaseScriptExecution failed with a nonzero exit code

κ²€μƒ‰ν•΄λ³΄λ‹ˆ ν”„λ‘œμ νŠΈ 경둜 ProjectName/Pods/Target Support Files/Pods-ProjectName
의 Pods-ProjectName-frameworks.sh νŒŒμΌμ—μ„œ

source="$(readlink "${source}")" 

λ₯Ό

source="$(readlink -f "${source}")" 

둜 변경해주라고 ν–ˆλ‹€.

변경해도 λ™μΌν•œ λΉŒλ“œ μ—λŸ¬ ..γ… 

λ‘λ²ˆμ§Έ ν•΄κ²°λ°©λ²•μœΌλ‘œλŠ” 또 Pods-ProjectName-frameworks.sh νŒŒμΌμ—μ„œ
set -e 뢀뢄을 +e둜 μˆ˜μ •ν•΄μ£ΌλŠ” 것 μ΄μ—ˆλ‹€.

#!/bin/sh
set +e
set -u
set -o pipefail

둜 μˆ˜μ •ν•΄μ€˜λ„ λ™μΌν–ˆλ‹€ γ… 

πŸ“Œ ν•΄κ²° 방법

λ§ˆμ§€λ§‰μœΌλ‘œ Build Settings > Excluded Architectures μ—μ„œ arm64 λ₯Ό μ‚­μ œν•΄μ£ΌλŠ” κ²ƒμ΄μ—ˆλ‹€.
κ·Έλž¬λ”λ‹ˆ λΉŒλ“œ 성곡 !!πŸ₯Ή

μ°Έκ³  : https://github.com/facebook/react-native/issues/36762

profile
Android Developer..+ iOS 슬쩍 🌱 βœοΈλ„μ λ„μ ,,개인 기둝용 πŸ‘©πŸ»β€πŸ’»

0개의 λŒ“κΈ€