UI.warn'The Podfile contains framework or static library targets, for which the Podfile does not contain host targets (targets which embed the framework).'\
UI.warn"The Podfile contains framework or static library targets (#{target_names}), for which the Podfile does not contain host targets (targets which embed the framework)."\
"\n"\
"\n"\
'If this project is for doing framework development, you can ignore this message. Otherwise, add a target to the Podfile that embeds these frameworks to make this message go away (e.g. a test target).'
'If this project is for doing framework development, you can ignore this message. Otherwise, add a target to the Podfile that embeds these frameworks to make this message go away (e.g. a test target).'
target.name.sub('Pods-','')# Make the target names more recognizable to the user
end.join', '
raiseInformative,"Unable to find host target(s) for #{target_names}. Please add the host targets for the embedded targets to the Podfile."\
raiseInformative,"Unable to find host target(s) for #{target_names}. Please add the host targets for the embedded targets to the Podfile."\
"\n"\
"\n"\
'Certain kinds of targets require a host target. A host target is a "parent" target which embeds a "child" target. These are example types of targets that need a host target:'\
'Certain kinds of targets require a host target. A host target is a "parent" target which embeds a "child" target. These are example types of targets that need a host target:'\
UI.warnings.should.match/The Podfile contains framework or static library targets, for which the Podfile does not contain host targets \(targets which embed the framework\)\./
UI.warnings.should.match/The Podfile contains framework or static library targets \(SampleLib\), for which the Podfile does not contain host targets \(targets which embed the framework\)\./
end
end
it'warns when using a Podfile for framework-only projects'do
it'warns when using a Podfile for framework-only projects'do
UI.warnings.should.match/The Podfile contains framework or static library targets, for which the Podfile does not contain host targets \(targets which embed the framework\)\./
UI.warnings.should.match/The Podfile contains framework or static library targets \(SampleFramework\), for which the Podfile does not contain host targets \(targets which embed the framework\)\./
end
end
it'raises when the extension calls use_frameworks!, but the host target does not'do
it'raises when the extension calls use_frameworks!, but the host target does not'do