Skip to content

Podspec is incompatible w/ Xcode 9 "preview build" option #242

@wildthink

Description

@wildthink

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions