본문 바로가기
Swift

Nimble library not found for -lswiftXCTest

by 고고 2021. 11. 7.

 

안녕하세요 ◠‿◠ 고고입니다.

https://github.com/Quick/Nimble/issues/863를 보고 임시방편으로 Podfile 밑에 이걸 추가하니 오류가 해결되었습니다.

post_install do |installer|
    installer.pods_project.targets.each do |target|
        if target.name == "Nimble"
            target.build_configurations.each do |config|
                xcconfig_path = config.base_configuration_reference.real_path
                xcconfig = File.read(xcconfig_path)
                new_xcconfig = xcconfig.sub('lswiftXCTest', 'lXCTestSwiftSupport')
                File.open(xcconfig_path, "w") { |file| file << new_xcconfig }
            end
        end
    end
end

'Swift' 카테고리의 다른 글

The Magic of Sourcery 번역  (0) 2021.11.07

댓글