← 输入框|github.com|刷新
Skip to content

more information needed on swiftjava macOS project xcode project setup for generated codes, more step by step details needed #9

Open

Description

@LOG-TAG

there many things missing in README things like

./genswift.sh your.package your.jar not works for a JAR A which is dependent on JAR B or C.

it's solved by jar merging idea! I decompiled the jar and added to InteliJ !

created artifact JAR and tried swiftJava jar command worked 100% fine! (Credits to the people who helped me)

There are many things missing in README it's really a pain point for beginner to do this with minimal documentation.

macOS development needs following details in README.

after the generating files from JAR files next step for using it inside the XCODE for Running the project will be great!

what I have tried:

  1. Create sample cocoa swift app from xcode.

2)Placed generated code in the xcode sample project folder. (after ./genswift.sh your.package your.jar)

3)how swiftjava.jar is generated ? we need to run swift build -Xlinker -L$JVM_LIBRARY_PATH -Xlinker -rpath -Xlinker $JVM_LIBRARY_PATH -Xlinker -ljvm ?

4>swiftjava.jar needed configured at xcode?

what are other steps? is there any build command needs to be added to configure while directly adding generated files in xcode cocoa app for connecting with JNI and jar file? where to put JAR file inside project folder structure? what are the frameworks needs to be added?

it will great if we get separated step by step instruction for using SwiftJava for Android, macOS etc!

Activity

  1. changed the title [-]more info on swiftjava macOS project xcode project setup for generated codes more step by step details needed[/-] [+]more information needed on swiftjava macOS project xcode project setup for generated codes, more step by step details needed[/+] on Apr 15, 2019
  2. johnno1962 commented on Apr 15, 2019

    @johnno1962
    Member

    Hi, sorry for the delay in replying. You should just need to add the classes your application uses to ~/.swiftjava.jar and things should work. See: https://github.com/SwiftJava/java_swift/blob/6172ff68d6fc575f3f4b9adc2bc8e1362f1b1dd9/Sources/JNICore.swift#L183

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions