Command PhaseScriptExecution failed with a nonzero exit code

Jang Seok Woo·2023년 5월 8일
1

실무

목록 보기
132/136

Xcode에서 프로젝트빌드 하려는데 위 에러 발생시,

디렉토리의 경로를 받아오지 못하는 오류임을 확인했다.

프로젝트 폴더에서 > ios > Pods > ${에러가 발생하는 라이브러리 이름} > ~.sh > copy_dir() 검색

copy_dir()
{
  local source="$1"
  local destination="$2"

  # Use filter instead of exclude so missing patterns don't throw errors.
  echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" \"${source}*\" \"${destination}\""
  rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" "${source}"/* "${destination}"
}

아래처럼 변경한다.

copy_dir()
{
  local source="$1"
  local destination="$2"

  # Use filter instead of exclude so missing patterns don't throw errors.
  # echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" \"${source}*\" \"${destination}\""
  # rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" "${source}"/* "${destination}"
  echo cp -r ${source} ${destination}
  cp -r ${source} ${destination}
}

rsync 명령어가 잘 동작하지 않는 문제라고 한다

profile
https://github.com/jsw4215

0개의 댓글