์๋ฌ
Undefined symbols
Linker command failed with exit code 1 (use -v to see invocation)
๋๋ฌด ๋ค์ํ ์ด์ ๋ก ๋จ๋ ์๋ฌ์ฌ์ ๊ฐ์ฅ ์ซ์ดํ๋ ์๋ฌ๋คใ
ํ๋ก์ ํธ ํ๊ฒ์ ํ ์คํธ ๋ฒ๋ค์ ์ถ๊ฐํ์๋ค.
์ด๊ฒ์ ๊ฒ ์์ฑํ๊ณ ํ ์คํธ๋ฅผ ๋ฑ ๋๋ฆฌ๋ ค ํ๋๋ฐ, ์ ๋ฐ ์๋ฌ๊ฐ ๋ฌ๋ค.
ํ๋์๊ฐ ์ด๊ฒ์ ๊ฒ ์๋ํด๋ดค๊ณ , ํ์ผ์ ํ๊ฒ ์ค์ ์ด ์ ๋๋ก ์๋๊ฒ ์๋~.. ์ด๋ฐ์ ๋ฐ ์ค์ ๊ฐ์ ํ์ธํด๋ดค๋ค.
๊ทธ๋ฆฌ๊ณ ๋ง์ง๋ง์ผ๋ก ํ ์คํธ๋ฅผ ์ถ๊ฐํ๋ ๋ค๋ฅธ Xcode ํ๋ก์ ํธ๋ ์ธํ ์ ๋น๊ตํด๋ดค๋ค..
๋ฌด์์ด ๋ฌธ์ ์์๊น์~~~~~~~
ํด๊ฒฐ ๋ฐฉ๋ฒ
1๋ฒ์งธ ๋ฐฉ๋ฒ: General - Testing - Allow testing Host Application APIs
์๋ ์ด๋ฏธ์ง์ฒ๋ผ ์ฒดํฌํด์ฃผ๋๊น ๋ฐ๋ก !! ์๋ฌ๊ฐ ์ฌ๋ผ์ก๋ค..
2๋ฒ์งธ ๋ฐฉ๋ฒ: ์ฌ์ฉํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ถ๊ฐํ๊ณ Host Application์ None์ผ๋ก ์์
Allow testing Host Application APIs์ ๋ํด ์ข๋ง ๋ ์ฐพ์๋ดค๋๋ฐ,
์ฌ์ฉํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ํฌํจํ์ง ์์ ์ํ์์ Host Application์ ์ฑ์ ์ ํํด๋ฌ์ ๋ฐ์ํ ์๋ฌ์๋ค.
Frameworks and Libraries์ ์ฌ์ฉํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ถ๊ฐํ๊ณ Host Application์ None์ผ๋ก ์์ ํ๋ฉด ํ ์คํธ๊ฐ ์ ๋์๊ฐ๋ค.
๋ ๋ฐฉ๋ฒ์ ์ฐจ์ด์
์ฒซ๋ฒ์งธ ๋ฐฉ๋ฒ์ ์ฑ์ ์คํํ๊ณ ํ ์คํธ๋ฅผ ์ํํ๋ฉฐ, (์ ํ๋ฆฌ์ผ์ด์ ์ ์์กดํจ)
๋๋ฒ์งธ ๋ฐฉ๋ฒ์ ์ฑ๊ณผ ๋ณ๊ฐ๋ก ํ ์คํธ๋ฅผ ์ํํ๊ฒ ๋๋ค.
๋ด ์ฑ์ ์์ฃผ ์๋ ์์ ํ ์คํธ ์ํ์ ํฐ ์ฐจ์ด๋ ์์ง๋ง,, ์ด๋ค ๊ฑธ ํ ์คํธํ๋์ ๋ฐ๋ผ ์ ํํ๋ฉด ๋ ๊ฒ ๊ฐ๋ค.
์ฌ๊ธฐ ์์ ์ฒซ๋ฒ์งธ ๋ฐฉ์์ ์ด์ ๊ณผ ๊ฐ๊ฐ์ ์ด๋จ ๋์ ์ฌ์ฉํ๋ฉด ์ข์์ง์ ๋ํด ๋ ์์ธํ ์ค๋ช ํด์ฃผ๋ ๊ถ๊ธํ๋ค๋ฉด ์ฝ์ด๋ด๋ ์ข์ ๊ฒ ๊ฐ๋ค.
-
ํดํผํ ์คํธํ์ธ์..
How do iOS Unit/Application-Test targets link against classes from their host app?
I'm currently trying to add unit tests (to be precise application tests) to my app (a reaaallly old project.. a comment says iOS 2.0) and always stumble upon undefined symbols for architecture when...
stackoverflow.com
https://medium.com/@alexander.apriamashvili/stop-holding-your-xctests-hostage-751d5b6ceb66
Stop holding your XCTests hostage
As your business grows, so does your feature set and codebase, the unfortunate side effect of this growthโ—โcompile time! We can combat…
medium.com
'๐ Bug & Error' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
iOS ํ๋ก์ ํธ์ Fastlane ์ ์ฉํ๋ฉด์ ๊ฒช์ ํธ๋ฌ๋ธ์ํ ๊ธฐ๋ก (0) | 2024.03.30 |
---|