I automatically create a target with tests in xcode, but it is disabled by default, as I can specify via the podfile to automatically enable the target
PODFILE
if IS_UITESTING_ENABLED
target.build_configurations.each do |config|
if target.name == "iOSAutoTests-UI-Tests"
config.build_settings['TEST_TARGET_NAME'] = "APP"
end
end
end
end
PODSPEC
s.ios.deployment_target = '10.3'
s.source_files = 'iOSAutoTests/Classes/**/*'
s.test_spec "Tests" do |ts|
ts.source_files = "iOSAutoTests/Tests/**/*.swift"
ts.test_type = :ui
ts.requires_app_host = true
end
I don't need a solution like "Turn it on with your hands in Xcode". I need a solution within podfile or podspec
question from:
https://stackoverflow.com/questions/65922385/how-can-i-specify-in-the-podfile-to-automatically-enable-the-uitests-target 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…