-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Propogate framework_includes
#697
Propogate framework_includes
#697
Conversation
Likely not ran into by most users since this style of approach is used for prebuilt frameworks/XCFrameworks: apple_framework(
name = "Instabug",
platforms = {"ios": "10.0"},
sdk_dylibs = ["z"],
sdk_frameworks = [
"AVFoundation",
"CoreData",
"CoreGraphics",
"CoreMedia",
"CoreMotion",
"CoreTelephony",
"CoreVideo",
"SystemConfiguration",
"UIKit",
],
vendored_xcframeworks = [
{
"name": "Instabug",
"slices": [
{
"identifier": "ios-arm64_i386_x86_64-simulator",
"platform": "ios",
"platform_variant": "simulator",
"supported_archs": [
"arm64",
"i386",
"x86_64",
],
"path": "Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework",
"build_type": {
"linkage": "dynamic",
"packaging": "framework",
},
},
{
"identifier": "ios-arm64_armv7",
"platform": "ios",
"platform_variant": "",
"supported_archs": [
"arm64",
"armv7",
],
"path": "Instabug.xcframework/ios-arm64_armv7/Instabug.framework",
"build_type": {
"linkage": "dynamic",
"packaging": "framework",
},
},
],
},
],
visibility = ["//visibility:public"],
xcconfig = {
"FRAMEWORK_SEARCH_PATHS": ["/Instabug/"],
"APPLICATION_EXTENSION_API_ONLY": "YES",
},
) Or like this: rules_ios/tests/ios/unit-test/test-imports-app/frameworks/Basic/BUILD.bazel Lines 3 to 13 in cd18d98
|
Oh! Have you tried
|
Interesting! I'm not aware of Is there any reason we create a new Also, what's difference between using |
Oh, I just saw this PR. It looks having |
@jerrymarino, do you have any context on whether we could get rid of That stuff is all before my historical time. To be fair, I'm okay adding this assuming it doesn't break stuff in other projects though, doesn't seem unreasonable since |
I'd add a simple fixture exercising the issue to catch regressions but otherwise lgtm |
@mattrobmattrob @luispadron Any chance we can merge this PR? (I don't have the permission.) I also tried adding some tests, but it seems currently we have some issues with prebuilt frameworks. I feel it's better to address those issues in a separate PR. Thanks! |
Propagate
CcInfo.compilation_context.framework_includes
inapple_framework_packaging
. This is to address a problem described here.