How to use R.swift in UITest in iOS

Issue #138

Here is how to use R.swift in UITest target

  • Add Localizable.strings to UITest target
  • Declare pod
1
2
3
target 'MyAppUITests' do
pod 'R.swift', '~> 4.0'
end
  • In UITest target settings, add $(FRAMEWORK_SEARCH_PATHS) to Runpath Search Path
  • Add R.generated.swift to UITest target

Comments