bazelbuild / rules_apple

Bazel rules to build apps for Apple platforms.
Apache License 2.0
512 stars 269 forks source link

Fix ios_extension with resources #2439

Closed jszumski closed 7 months ago

jszumski commented 7 months ago

Fixes issue where an ios_extension with resources wouldn't include them in the final bundle.

This came up when trying to include a PrivacyInfo.xcprivacy at the top-level of an extension's appex.

jszumski commented 7 months ago

Test failures look related to CI machine state:

2024-03-28 00:39:11.912 ibtoold[61100:1151139808] Error Domain=com.apple.CoreSimulator.SimError Code=400 "Unable to determine SimDeviceSet for subscriptions, set_path=/Users/buildkite/Library/Developer/Xcode/UserData/IB Support/Simulator Devices" UserInfo={NSLocalizedDescription=Unable to determine SimDeviceSet for subscriptions, set_path=/Users/buildkite/Library/Developer/Xcode/UserData/IB Support/Simulator Devices, NSUnderlyingError=0x6000024d13e0 {Error Domain=NSPOSIXErrorDomain Code=12 "Cannot allocate memory" UserInfo={NSLocalizedFailureReason=Allocation or initialization failed., NSLocalizedDescription=Failed to initialize simulator device set.}}}
    Failure Reason: Failed to create SimDeviceSet at path /Users/buildkite/Library/Developer/Xcode/UserData/IB Support/Simulator Devices. You'll want to check the logs in ~/Library/Logs/CoreSimulator to see why creating the SimDeviceSet failed.
            Description: Unable to determine SimDeviceSet for subscriptions, set_path=/Users/buildkite/Library/Developer/Xcode/UserData/IB Support/Simulator Devices
        Description: Failed to initialize simulator device set.
/Users/buildkite/builds/bk-macstudio-5/bazel/rules-apple-darwin/test/testdata/resources/app_icons_ios.xcassets: error: Failed to find a suitable device for the type IBSimDeviceTypeiPad3x (com.apple.dt.Xcode.IBSimDeviceType.iPad-3x) with runtime iOS 17.2 (17.2 - 21C62) - com.apple.CoreSimulator.SimRuntime.iOS-17-2
                Description: Failed to initialize simulator device set.
                Failure Reason: Allocation or initialization failed.