2025-10-06 5:28 AM - edited 2025-10-06 6:15 AM
Hello @all,
I've downloaded ST25DVCryptoDemo for iOS from here, in order to take a look into the demo code for a new project.
Once I've tried to build the Demo app I've got a big amount of errors. In fact the console gave me this message "too many errors emitted, stopping now"
Could someone please help me to fix those issues and make everything works properly?
I've also download the ST25SDK but, when I've took a look the Readme file I saw that the SDK can be used for Android app and PC app (not iOS app)
2025-10-06 6:16 AM
Hi,
Our ST25DVCryptoDemo iOS application utilizes J2ObjC, an open-source tool developed by Google, to enable cross-platform code sharing between Android and iOS.
For more details on the compilation process, please refer to an earlier ticket addressing this topic:
Solved: Error while compiling latest IOS NFC source code - STMicroelectronics Community
Hope it helps.
Br,
2025-10-07 3:27 AM
I've tried to do all the instructions that you posted in the other comment.
But it's not working.
I tried both for ST25DVCryptoDemo (version 1.0 build 1.0) and NFCTap (version 23.0 build 1.0).
I've downloaded the master version of J2ObjC.
Once the "make dist" finished to run I've copied and pasted the directory into ST25DVCryptoDemo and NFCTap.
Linked the references of j2ObjC in Build Settings.
Run clean and the build, but it's not working
2025-10-07 5:19 AM
Hi,
Depending on your environment, the compilation issues could be caused by the following:
I recommend switching to version 2.4. If that is not possible, I can provide patches to support the latest J2OBJ version.
Hope it helps. Let us know.
2025-10-08 1:02 AM - edited 2025-10-09 3:26 AM
I've tried to clone j2objc 2.4, but I'm not able to run the command make dist.
Here is the make dist command error:
degaspaa@WMCVSPD005 ~ % cd j2objc
degaspaa@WMCVSPD005 j2objc % git status
HEAD detached at 2.4
nothing to commit, working tree clean
degaspaa@WMCVSPD005 j2objc % make dist
Locale:
Darwin WMCVSPD005.local 24.6.0 Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:55 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6031 arm64
Xcode 16.4 Build version 16F6
Apple clang version 17.0.0 (clang-1700.0.13.5)
Target: arm64-apple-darwin24.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Environment:
HOME=/Users/degaspaa
HOMEBREW_CELLAR=/opt/homebrew/Cellar
HOMEBREW_PREFIX=/opt/homebrew
HOMEBREW_REPOSITORY=/opt/homebrew
INFOPATH=/opt/homebrew/share/info:
JAVA_HOME=/opt/homebrew/Cellar/openjdk@11/11.0.28/libexec/openjdk.jdk/Contents/Home
LC_CTYPE=UTF-8
LOGNAME=degaspaa
MAKEFLAGS=
MAKELEVEL=1
MANPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/share/man:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man:
MFLAGS=
PATH=/Users/degaspaa/.pyenv/shims:/Users/degaspaa/.pyenv/bin:/opt/homebrew/Cellar/openjdk@11/11.0.28/libexec/openjdk.jdk/Contents/Home/bin:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/opt/homebrew/opt/ruby/bin:/Users/degaspaa/.sdkman/candidates/java/current/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/degaspaa/.gem/bin:/Users/degaspaa/Development/flutter/bin:/Users/degaspaa/.rvm/bin
PWD=/Users/degaspaa/j2objc
PYENV_ROOT=/Users/degaspaa/.pyenv
PYENV_SHELL=zsh
SDKMAN_CANDIDATES_API=https://api.sdkman.io/2
SDKMAN_CANDIDATES_DIR=/Users/degaspaa/.sdkman/candidates
SDKMAN_DIR=/Users/degaspaa/.sdkman
SDKMAN_PLATFORM=darwinarm64
SHELL=/bin/zsh
SHLVL=2
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.kPUAgvAbGX/Listeners
TERM=xterm-256color
TERM_PROGRAM=Apple_Terminal
TERM_PROGRAM_VERSION=455.1
TERM_SESSION_ID=7DEC8B74-4A9A-4F53-833B-C6E9754286BB
TMPDIR=/var/folders/8c/5k5986jj10ngnmmbgb_hkrr80000gn/T/
USER=degaspaa
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
rvm_alias_expanded=
rvm_bin_flag=
rvm_bin_path=/Users/degaspaa/.rvm/bin
rvm_docs_type=
rvm_gemstone_package_file=
rvm_gemstone_url=
rvm_hook=
rvm_niceness=
rvm_nightly_flag=
rvm_only_path_flag=
rvm_path=/Users/degaspaa/.rvm
rvm_prefix=/Users/degaspaa
rvm_pretty_print_flag=
rvm_proxy=
rvm_quiet_flag=
rvm_ruby_bits=
rvm_ruby_file=
rvm_ruby_make=
rvm_ruby_make_install=
rvm_ruby_mode=
rvm_script_name=
rvm_sdk=
rvm_silent_flag=
rvm_use_flag=
rvm_version=1.29.12 (latest)
mvn -q generate-resources dependency:sources
make[1]: *** [/Users/degaspaa/j2objc/java_deps/build_result/.maven_generate] Error 6
make: *** [java_deps_dist] Error 2
Here is some extra info:
Xcode 16.4 - Build version 16F6
MAC - Apple M3 Max
macOS - Version 15.6.1 (24G90)
2025-10-12 11:10 PM
can you please help me?
I'm not able to run the command make dist on j2objc version 2.4
2025-10-13 4:56 AM
Please, could you provide us more error log ? previous log was unclear for me.
Thx and br,
2025-10-13 5:31 AM
I've run git clone https://github.com/google/j2objc.git in order to download J2ObjC
Then I moved into j2objc folder and run git checkout 2.4 in order to get the 2.4 tag.
Then I run make dist and I got this error:
make[1]: *** [/Users/degaspaa/j2objc/java_deps/build_result/.maven_generate] Error 6 make: *** [java_deps_dist] Error 2
2025-10-13 5:44 AM
This usually means a problem running Maven commands or downloading/building Java dependencies.
1) Make sure you have Apache Maven installed and it is accessible from your command line.
bash
mvn -v
J2ObjC requires Maven 3.x
2. Check Java JDK installation and version
J2ObjC requires a JDK (not just JRE). Verify your Java version:
bash
java -version
javac -version
Ensure you have JDK 8 or higher installed.
If you have multiple Java versions, ensure the JAVA_HOME environment variable points to the correct JDK.
3. Check network and proxy settings
If Maven fails to download dependencies, it could be due to network issues or proxy settings.
Ensure you have internet access.
If behind a proxy, configure Maven proxy settings in ~/.m2/settings.xml.
Hope it helps
2025-10-14 1:55 AM
for your need, I have uploaded on iCloud shared drive a binary version of J2OBJC V2.4 used within my environment. You can download then try it with the link
https://www.icloud.com/iclouddrive/097v0LGJypd822A2Mtx7sHeuA#j2objc-2.4
hope it helps
Br,