google / j2objc

A Java to iOS Objective-C translation tool and runtime.
http://j2objc.org
Apache License 2.0
5.99k stars 968 forks source link

When can you update the new version? #2194

Open lihaiyang123 opened 1 year ago

lihaiyang123 commented 1 year ago

The current 2.8 version does not run on xcode15. Could you please update a version to solve the problem of error when running on xcode15?

wed9620 commented 1 year ago

+1

adil-hussain-84 commented 1 year ago

The maintainers of the J2ObjC library no longer produce regular releases of J2ObjC and expect users of J2ObjC to build it from the sources and for us to specify what architectures we want to build for. (See this comment by @tomball for a demonstration of this expectation.) In order to build J2ObjC from the sources, check first that your machine meets the Requirements. Then:

  1. Clone the google/j2objc project with your Git tool of choice.
  2. Navigate to the cloned project in Terminal.
  3. Run the following commands to produce a dist folder which contains the J2ObjC translator and supporting files for the architectures that you require (in code example below, I'm building for the arm64 and x86_64 architectures):

    export JAVA_HOME=$(/usr/libexec/java_home -v 11)
    export J2OBJC_ARCHS="iphone64 simulator64 simulator"
    make -j4 clean
    make -j4 dist
    cd jre_emul
    ./build_subset_frameworks.sh

    If you want to increase the number concurrent tasks that are run as part of the build, change the -j4 option from -j4 to -j<n> where n is a number greater than 4.

For more information about how to build J2ObjC from the sources, see here.

lihaiyang123 commented 1 year ago

Thanks!