Skip to content

Conversation

themz
Copy link

@themz themz commented Oct 4, 2024

This PR aims to fix an issue where the Info.plist contains an incorrect value in the xcframework multiplatform bundle.

apple_xcframework(
    ...
    ios = {
        "simulator": ["x86_64"],
        "device": ["arm64"],
    },
    ..
)

In this configuration, the Info.plist for x86_64 will contain the 'iphoneos' value for DTPlatformName, but it is supposed to be iphonesimulator.

Related to #2524

A struct representing the collected platform information.
"""
platform_type_attr = getattr(apple_common.platform_type, platform_type_string)
platform = apple_fragment.multi_arch_platform(platform_type_attr)
Copy link
Author

@themz themz Oct 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[review-note]
Here, we don't have an option to determine the correct platform for the simulator, as platform_type can only be ios or tvos, whereas platform for ios can be both ios_simulator and ios_device.

@themz themz force-pushed the 2524_fix_wrong_info_plist_platfrom_for_xcframework branch from b26ebca to 6f31244 Compare October 8, 2024 06:00
@aaronsky aaronsky self-requested a review as a code owner December 15, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants