0
我在Podfile
中编写post_install
脚本,我需要修改特定的方案。我是Ruby的新手,所以我确信我有很多不好的/非惯用的习惯。下面是我有:获取特定方案的路径
post_install do |installer|
pods_project = installer.pods_project
scheme_filename = "BonMot.xcscheme"
scheme = Xcodeproj::XCScheme.new File.join(pods_project.path, "xcshareddata/xcschemes", scheme_filename)
# do stuff with scheme
end
如何避免在中间的硬编码xcshareddata/xcschemes
?或者,这是做到这一点的最佳方式?