Skip to content

Commit

Permalink
Add static xcframework import test for device
Browse files Browse the repository at this point in the history
  • Loading branch information
keith committed Jul 15, 2022
1 parent 5aba1e5 commit d87e504
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/starlark_tests/apple_static_xcframework_import_tests.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,20 @@ def apple_static_xcframework_import_test_suite(name):
tags = [name],
)

archive_contents_test(
name = "{}_ios_application_with_imported_static_xcframework_includes_symbols_device".format(name),
build_type = "device",
target_under_test = "//test/starlark_tests/targets_under_test/ios:app_with_imported_xcframework_with_static_library",
binary_test_file = "$BINARY",
binary_test_architecture = "arm64",
binary_contains_symbols = [
"-[SharedClass doSomethingShared]",
"_OBJC_CLASS_$_SharedClass",
],
not_contains = ["$BUNDLE_ROOT/Frameworks/"],
tags = [name],
)

# Verify ios_application with XCFramework with Swift static library dependency contains
# Objective-C symbols, doesn't bundle XCFramework, and does bundle Swift standard libraries.
archive_contents_test(
Expand Down
1 change: 1 addition & 0 deletions test/starlark_tests/targets_under_test/ios/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -1874,6 +1874,7 @@ ios_application(
"//test/starlark_tests/resources:Info.plist",
],
minimum_os_version = "11.0",
provisioning_profile = "//test/testdata/provisioning:integration_testing_ios.mobileprovision",
tags = FIXTURE_TAGS,
deps = [
":static_xcframework_depending_objc_lib",
Expand Down

0 comments on commit d87e504

Please sign in to comment.