The new Xcode 9 "Project/Workspace Settings" -> "Build System" "New Build System (Preview)" option is stricter with the Xcode configuration and produces an error for projects including Siesta.
error: unexpected duplicate task: CompileXIB xxxx/Pods/Siesta/Source/SiestaUI/ResourceStatusOverlay.xib (in target 'Siesta')
The fix is as follows. Note by explicitly specifying the source file extensions, it ignores xibs which are included as resource.
s.subspec "Core" do |s|
s.source_files = "Source/Siesta/**/*.swift"
s.exclude_files = "**/Info*.plist"
end
s.subspec "UI" do |s|
s.ios.source_files = "Source/SiestaUI/**/*.swift"
s.dependency "Siesta/Core"
s.exclude_files = "**/Info*.plist"
s.ios.resources = "Source/**/*.xib"
end
The new Xcode 9 "Project/Workspace Settings" -> "Build System" "New Build System (Preview)" option is stricter with the Xcode configuration and produces an error for projects including Siesta.
The fix is as follows. Note by explicitly specifying the source file extensions, it ignores xibs which are included as resource.