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

Not able to Compile Swift4j Android example app #1

Open
6vedant opened this issue Dec 19, 2024 · 1 comment
Open

Not able to Compile Swift4j Android example app #1

6vedant opened this issue Dec 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@6vedant
Copy link
Member

6vedant commented Dec 19, 2024

I am not able to compile android example app.

Task :app:generateBridging FAILED
Building for debugging...
[0/12] Write sources
[7/12] Write swift4j-cli-entitlement.plist
[8/12] Write swift-version--58304C5D6DBC2206.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/16] Emitting module SwiftSyntax509
/Users/vj/Desktop/swift4j-examples/Android/SwiftExamples/app/build/swiftpm/swift4j-examples/arm64-apple-macosx/debug/SwiftBasicFormat-tool.build/module.modulemap:1:8: error: redefinition of module 'SwiftBasicFormat'
module SwiftBasicFormat {
       ^
/Users/vj/Desktop/swift4j-examples/Android/SwiftExamples/app/build/swiftpm/swift4j-examples/arm64-apple-macosx/debug/SwiftBasicFormat.build/module.modulemap:1:8: note: previously defined here
module SwiftBasicFormat {
       ^
/Users/vj/Desktop/swift4j-examples/Android/SwiftExamples/app/build/swiftpm/swift4j-examples/arm64-apple-macosx/debug/SwiftParser.build/module.modulemap:1:8: error: redefinition of module 'SwiftParser'
module SwiftParser {
       ^
/Users/vj/Desktop/swift4j-examples/Android/SwiftExamples/app/build/swiftpm/swift4j-examples/arm64-apple-macosx/debug/SwiftParser-tool.build/module.modulemap:1:8: note: previously defined here
module SwiftParser {
       ^
/Users/vj/Desktop/swift4j-examples/Android/SwiftExamples/app/build/swiftpm/swift4j-examples/arm64-apple-macosx/debug/SwiftCompilerPluginMessageHandling.build/module.modulemap:1:8: error: redefinition of module 'SwiftCompilerPluginMessageHandling'
module SwiftCompilerPluginMessageHandling {
       ^
/Users/vj/Desktop/swift4j-examples/Android/SwiftExamples/app/build/swiftpm/swift4j-examples/arm64-apple-macosx/debug/SwiftCompilerPluginMessageHandling-tool.build/module.modulemap:1:8: note: previously defined here
module SwiftCompilerPluginMessageHandling {
       ^
/Users/vj/Desktop/swift4j-examples/Android/SwiftExamples/app/build/swiftpm/swift4j-examples/arm64-apple-macosx/debug/SwiftSyntaxMacros-tool.build/module.modulemap:1:8: error: redefinition of module 'SwiftSyntaxMacros'
module SwiftSyntaxMacros {
       ^
/Users/vj/Desktop/swift4j-examples/Android/SwiftExamples/app/build/swiftpm/swift4j-examples/arm64-apple-macosx/debug/SwiftSyntaxMacros.build/module.modulemap:1:8: note: previously defined here
module SwiftSyntaxMacros {
       ^
/Users/vj/Desktop/swift4j-examples/Android/SwiftExamples/app/build/swiftpm/swift4j-examples/arm64-apple-macosx/debug/ArgumentParserToolInfo.build/module.modulemap:1:8: error: redefinition of module 'ArgumentParserToolInfo'
module ArgumentParserToolInfo {
       ^
/Users/vj/Desktop/swift4j-examples/Android/SwiftExamples/app/build/swiftpm/swift4j-examples/arm64-apple-macosx/debug/ArgumentParserToolInfo-tool.build/module.modulemap:1:8: note: previously defined here
module ArgumentParserToolInfo {
       ^
/Users/vj/Desktop/swift4j-examples/Android/SwiftExamples/app/build/swiftpm/swift4j-examples/arm64-apple-macosx/debug/ArgumentParser.build/module.modulemap:1:8: error: redefinition of module 'ArgumentParser'
module ArgumentParser {
       ^
/Users/vj/Desktop/swift4j-examples/Android/SwiftExamples/app/build/swiftpm/swift4j-examples/arm64-apple-macosx/debug/ArgumentParser-tool.build/module.modulemap:1:8: note: previously defined here
module ArgumentParser {
       ^
/Users/vj/Desktop/swift4j-examples/Android/SwiftExamples/app/build/swiftpm/swift4j-examples/arm64-apple-macosx/debug/SwiftSyntax509-tool.build/module.modulemap:1:8: error: redefinition of module 'SwiftSyntax509'
module SwiftSyntax509 {
@gr-markin
Copy link
Contributor

Hi @6vedant, could you please check the version of the "scd" tool on your system ? "scd --version" in the terminal. Also, pls, ensure you have the "scdAutoUpdate=true" flag in the "build.gradle.kts". And also try to clean and build again, during the "resolveScdTool" phase you can also see currently installed version of the tool and message if there are update.

Which version of the Xcode and macOS do you have ?

@gr-markin gr-markin added the bug Something isn't working label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants