Skip to content
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

Plugin seems to ignore the target version #40

Open
stumi01 opened this issue Jul 17, 2021 · 1 comment
Open

Plugin seems to ignore the target version #40

stumi01 opened this issue Jul 17, 2021 · 1 comment

Comments

@stumi01
Copy link

stumi01 commented Jul 17, 2021

Using this plugin in our project with the following setup:

    multiplatformSwiftPackage {
        swiftToolsVersion("5.4")
        packageName("Common")
        zipFileName("Common")
        outputDirectory(File(rootDir, "/app-ios/CommonFramework"))
        distributionMode { local() }
        targetPlatforms {
            iOS { v("13") }
        }
    }

and when invoking the createSwiftPackage gradle task the framework is created successfully and the ios app can be built without problems.
BUT as soon as we try to upload the app an error arise:

ERROR ITMS-90208: "Invalid Bundle. The bundle <AppName> Alpha.app/Frameworks/Common.framework does not support the minimum OS Version specified in the Info.plist

And inspecting the created Info.plist
the /app-ios/CommonFramework/Common.xcframework/ios-arm64/Common.framework/Info.plist file contains the following:

<key>MinimumOSVersion</key>
<string>9.0</string>

Which is a problem for us because the KMP module uses some native dependencies which compiled against min 13.0 version that's why we are setting the target version with the plugin.


As a workaround right now we are manually modifying the affected Info.plist file to match the version but it would be better if the plugin would respect the setting and automatically do that for us.

@ln-12
Copy link

ln-12 commented Feb 14, 2022

I got the exact same problem. Is there a way this can be fixed @ge-org?

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

No branches or pull requests

2 participants