olarivain/xcodebuilder

SDK is no longer being used in the configuration

Opened this issue · 2 comments

Due to a change to support WatchOS the SDK is no longer being set in the configuration. This causes an issue when trying to build against device / simulator - unless I've misunderstood the use of the SDK parameter.

Not sure i'm following - what problem is that causing exactly?

This commit has the sdk parameter in the configuration commented out

# args << "-sdk #{sdk}"

Which means that despite setting the sdk parameter in the calling code for the builder, it's not used and the default is used (see below - iphoneos is the default). In my scenario I'm using the builder to create multiple builds against different SDKs (e.g. device and simulator). Of course, I might not be using xcode-builder correctly!

@configuration = Configuration.new(
        :configuration => "Release",
        :build_dir => "build",
        :sdk => "iphoneos",
        :project_file_path => nil,
        :workspace_file_path => nil,
        :scheme => nil,
        :app_name => nil,
        :signing_identity => nil,
        :package_destination_path => "./pkg",
        :skip_clean => false,
        :verbose => false,
        :info_plist => nil,
        :scm => nil,
        :pod_repo => nil,
        :podspec_file => nil,
        :xcodebuild_extra_args => nil,
        :xcrun_extra_args => nil,
        :timestamp_build => nil,
        :target  => nil,
        :pod_repo_sources => nil
      )