๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ’š ๊ฐœ๋ฐœ/iOS

[iOS] ${PROJECT_DIR}

by devshin.kr 2021. 5. 17.
728x90

xcode์˜ ${PROJECT_DIR} ์ด๋ž€ .xcodeproj ๊ฐ€ ์œ„์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ์˜ ์ƒ๋Œ€๊ฒฝ๋กœ์ด๋‹ค.

 


A
ใ„ดB
  ใ„ดD
ใ„ดC


ํ˜„์žฌ test.xcodeproj ๊ฐ€ ์œ„์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ์˜ ์ด๋ฆ„์ด D๋ผ๊ณ  ํ•˜๋ฉด,
${PROJECT_DIR} ๋Š” D๊ฐ€ ๋˜๊ณ ,
Cํด๋”์— include ํ•˜๊ณ  ์‹ถ์€ ํ—ค๋”ํŒŒ์ผ์„ ๋‘”๋‹ค๋ฉด, Header Search Paths์˜ ๊ฒฝ๋กœ๋ฅผ ${PROJECT_DIR}/../C ์™€ ๊ฐ™์ด ํ•˜๋ฉด ๋œ๋‹ค.

๋Œ“๊ธ€