你是中國的開發者?你之前看過這篇文章嗎? https://zhuanlan.zhihu.com/p/27584726
它使用ccache
加快Xcode
構建process.It還提供cocoapods
的config
的教程。
我在這裏複製了代碼,讓其他不懂中文的人遇到同樣的問題知道如何解決這個問題。
post_install do |installer_representation|
installer_representation.pods_project.targets.each do |target|
target.build_configurations.each do |config|
#關閉 Enable Modules (Translation:Close Enable Modules)
config.build_settings['CLANG_ENABLE_MODULES'] = 'NO'
# 在生成的 Pods 項目文件中加入 CC 參數,路徑的值根據你自己的項目來修改(Translation: Add CC parameter to pods project. You can change the path to whatever you want.)
config.build_settings['CC'] = '$(PODS_ROOT)/../ccache-clang'
end
end
end
但該配置僅關閉CLANG_ENABLE_MODULES
。 據我所知,當使用ccache
和cocoapods
時,沒有辦法鏈接系統框架。
希望它有幫助。
是的,我也是中國人。你引用的文章是由我寫的......我最終自己想出來了,這是正確的答案。 –
真巧!大聲笑!我剛剛從你的文章中受益。謝謝!真哈!哈哈〜我剛剛就是從你的文章收益了,感謝! –