Skip to content

0.2.0: Build with Xcode improvements

Compare
Choose a tag to compare
@brentleyjones brentleyjones released this 15 Apr 18:39
· 2365 commits to main since this release
0.2.0
c5f70a4

What’s Changed

New

  • Added support for macos_unit_test,tvos_unit_test, and watchos_unit_test: #267, #282, and #286
  • Added support for -application-extension: #287
  • Added support for the pch attribute: #280
  • BUILD files are now included in Xcode's Project navigator: #301

Fixes and Improvements

  • Fixed build errors when no targets produced modulemap files: #251
  • The ARCHS build setting is now set: #249
  • Fixed PRODUCT_MODULE_NAME calculation: #253
  • Fixed UIDeviceFamily Info.plist warning: #260
  • Fixed various framework linking issues: #259, #258, #277, and #278
  • Converted last use of python to python3: #254
  • Fixed file permissions of copied generated files: #255
  • We now list sources in the same order that Bazel sees them: #265
  • Fixed function name typo in warning message: #274
  • Fixed PCM compilation by setting GCC_PREPROCESSOR_DEFINITIONS instead of OTHER_CFLAGS: #275
  • Fixed modulemap rewriting: #279 and #284
  • Improved defines and local_defines detection: #276
  • Fixed resource collection for targets that are included via deps: #263
  • The SUPPORTED_PLATFORMS build setting is now set: #289
  • Fixed Swift copt set PCM header search paths: #291
  • Improved Indexing: #292 and #294
  • Improved initial project generation experience: #297 and #298

Full Changelog: 0.1.0...0.2.0

Contributors

First PRs

Workspace Snippet

Please use the release asset (release.tar.gz) from your Bazel WORKSPACE instead of GitHub's source asset to reduce download size and improve reproducibility.

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "com_github_buildbuddy_io_rules_xcodeproj",
    sha256 = "3a45e9e20bfb36c306ccc51407b97ff7d320c597d3c1c533cbdee9e66cff5cda",
    url = "https://github.com/buildbuddy-io/rules_xcodeproj/releases/download/0.2.0/release.tar.gz",
)

load(
    "@com_github_buildbuddy_io_rules_xcodeproj//xcodeproj:repositories.bzl",
    "xcodeproj_rules_dependencies",
)

xcodeproj_rules_dependencies()

load(
    "@build_bazel_rules_apple//apple:repositories.bzl",
    "apple_rules_dependencies",
)

apple_rules_dependencies()

load(
    "@build_bazel_rules_swift//swift:repositories.bzl",
    "swift_rules_dependencies",
)

swift_rules_dependencies()

load(
    "@build_bazel_rules_swift//swift:extras.bzl",
    "swift_rules_extra_dependencies",
)

swift_rules_extra_dependencies()

load(
    "@build_bazel_apple_support//lib:repositories.bzl",
    "apple_support_dependencies",
)

apple_support_dependencies()