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

[android] local Android SDK Dispatch.swiftmodule file names should not include Android target (28) #224

Open
andrurogerz opened this issue Jan 14, 2025 · 0 comments
Assignees

Comments

@andrurogerz
Copy link
Collaborator

Dispatch.swiftmodule in a locally build Android SDK via build.ps1 contains a file for each architecture but they all have the Android target API (28) in the name:

S:\Program Files\Swift\Platforms\Android.platform\Developer\SDKs\Android.sdk\usr\lib\swift\android\Dispatch.swiftmodule\aarch64-unknown-linux-android28.swiftdoc
S:\Program Files\Swift\Platforms\Android.platform\Developer\SDKs\Android.sdk\usr\lib\swift\android\Dispatch.swiftmodule\aarch64-unknown-linux-android28.swiftmodule
S:\Program Files\Swift\Platforms\Android.platform\Developer\SDKs\Android.sdk\usr\lib\swift\android\Dispatch.swiftmodule\armv7-unknown-linux-androideabi28.swiftdoc
S:\Program Files\Swift\Platforms\Android.platform\Developer\SDKs\Android.sdk\usr\lib\swift\android\Dispatch.swiftmodule\armv7-unknown-linux-androideabi28.swiftmodule
S:\Program Files\Swift\Platforms\Android.platform\Developer\SDKs\Android.sdk\usr\lib\swift\android\Dispatch.swiftmodule\i686-unknown-linux-android28.swiftdoc
S:\Program Files\Swift\Platforms\Android.platform\Developer\SDKs\Android.sdk\usr\lib\swift\android\Dispatch.swiftmodule\i686-unknown-linux-android28.swiftmodule
S:\Program Files\Swift\Platforms\Android.platform\Developer\SDKs\Android.sdk\usr\lib\swift\android\Dispatch.swiftmodule\x86_64-unknown-linux-android28.swiftdoc
S:\Program Files\Swift\Platforms\Android.platform\Developer\SDKs\Android.sdk\usr\lib\swift\android\Dispatch.swiftmodule\x86_64-unknown-linux-android28.swiftmodule

None of the other swift modules in the Android SDK are named this way-- there is no android28 just android as part of the target name, e.g. aarch64-unknown-linux-android.swiftmodule. For example, Foundation.swiftmodule:

S:\Program Files\Swift\Platforms\Android.platform\Developer\SDKs\Android.sdk\usr\lib\swift\android\Foundation.swiftmodule\aarch64-unknown-linux-android.swiftdoc
S:\Program Files\Swift\Platforms\Android.platform\Developer\SDKs\Android.sdk\usr\lib\swift\android\Foundation.swiftmodule\aarch64-unknown-linux-android.swiftmodule
S:\Program Files\Swift\Platforms\Android.platform\Developer\SDKs\Android.sdk\usr\lib\swift\android\Foundation.swiftmodule\armv7-unknown-linux-android.swiftdoc
S:\Program Files\Swift\Platforms\Android.platform\Developer\SDKs\Android.sdk\usr\lib\swift\android\Foundation.swiftmodule\armv7-unknown-linux-android.swiftmodule
S:\Program Files\Swift\Platforms\Android.platform\Developer\SDKs\Android.sdk\usr\lib\swift\android\Foundation.swiftmodule\i686-unknown-linux-android.swiftdoc
S:\Program Files\Swift\Platforms\Android.platform\Developer\SDKs\Android.sdk\usr\lib\swift\android\Foundation.swiftmodule\i686-unknown-linux-android.swiftmodule
S:\Program Files\Swift\Platforms\Android.platform\Developer\SDKs\Android.sdk\usr\lib\swift\android\Foundation.swiftmodule\x86_64-unknown-linux-android.swiftdoc
S:\Program Files\Swift\Platforms\Android.platform\Developer\SDKs\Android.sdk\usr\lib\swift\android\Foundation.swiftmodule\x86_64-unknown-linux-android.swiftmodule

In order to build against a local Android SDK, I have to copy or rename the Dispatch.swiftmodule files to versions without the 28 in the name. I expect this is a bug in the way build.ps1 generates the Android SDK.

@andrurogerz andrurogerz self-assigned this Jan 14, 2025
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

1 participant