-
Hi, I get the following error when trying to build for the tarlanismayilsoy@Tarlans-MacBook-Pro MyJavaFramework % mvn -Drobovm.enableBitcode=true compile robovm:install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building RoboVM dynamic library sample 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ robovm-samples-dynamiclib ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/tarlanismayilsoy/Downloads/robovm-samples-master/MyJavaFramework/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ robovm-samples-dynamiclib ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] >>> robovm-maven-plugin:2.3.21:install (default-cli) > compile @ robovm-samples-dynamiclib >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ robovm-samples-dynamiclib ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/tarlanismayilsoy/Downloads/robovm-samples-master/MyJavaFramework/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ robovm-samples-dynamiclib ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< robovm-maven-plugin:2.3.21:install (default-cli) < compile @ robovm-samples-dynamiclib <<<
[INFO]
[INFO] --- robovm-maven-plugin:2.3.21:install (default-cli) @ robovm-samples-dynamiclib ---
[INFO] Loading default RoboVM config properties file: /Users/tarlanismayilsoy/Downloads/robovm-samples-master/MyJavaFramework/robovm.properties
[INFO] Loading default RoboVM config file: /Users/tarlanismayilsoy/Downloads/robovm-samples-master/MyJavaFramework/robovm.xml
[INFO] Compiling classes using 10 threads
[INFO] Compiled 0 classes in 2.65 seconds
Warning: org.robovm.rt.annotation.Availability is a phantom class!
Warning: org.slf4j.impl.StaticLoggerBinder is a phantom class!
[INFO] Linking 5221 classes (ios arm64-simulator release)
[INFO] 35691 methods out of 46723 included in the executable
[INFO] Building framework binary /Users/tarlanismayilsoy/Downloads/robovm-samples-master/MyJavaFramework/target/robovm.tmp/MyJavaFramework
[INFO] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -o /Users/tarlanismayilsoy/Downloads/robovm-samples-master/MyJavaFramework/target/robovm.tmp/MyJavaFramework -Wl,-filelist,/Users/tarlanismayilsoy/Downloads/robovm-samples-master/MyJavaFramework/target/robovm.tmp/objects0 -stdlib=libc++ --target=arm64-apple-ios8.0-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk -dynamiclib -single_module -compatibility_version 1 -current_version 1 -install_name @rpath/MyJavaFramework.framework/MyJavaFramework -L /Users/tarlanismayilsoy/.m2/repository/com/mobidevelop/robovm/robovm-dist/2.3.21/unpacked/robovm-2.3.21/lib/vm/ios/arm64-simulator -ObjC -exported_symbols_list /Users/tarlanismayilsoy/Downloads/robovm-samples-master/MyJavaFramework/target/robovm.tmp/exported_symbols -Wl,-no_implicit_dylibs -Wl,-dead_strip -L/usr/lib/swift -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphonesimulator -fPIC -lrobovm-frameworksupport -lrobovm-bc -force_load /Users/tarlanismayilsoy/.m2/repository/com/mobidevelop/robovm/robovm-dist/2.3.21/unpacked/robovm-2.3.21/lib/vm/ios/arm64-simulator/librobovm-rt.a -lrobovm-core -lgc -lpthread -ldl -lm -lz -liconv -lsqlite3 -framework Foundation -framework MobileCoreServices
[WARNING] ld: warning: -single_module is obsolete
[ERROR] ld: building exports trie: duplicate symbol '_OBJC_CLASS_$_NSUserActivity'
[ERROR] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.984 s
[INFO] Finished at: 2024-05-31T14:08:12+04:00
[INFO] Final Memory: 22M/84M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.mobidevelop.robovm:robovm-maven-plugin:2.3.21:install (default-cli) on project robovm-samples-dynamiclib: Failed to install: Command '[/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++, -o, /Users/tarlanismayilsoy/Downloads/robovm-samples-master/MyJavaFramework/target/robovm.tmp/MyJavaFramework, -Wl,-filelist,/Users/tarlanismayilsoy/Downloads/robovm-samples-master/MyJavaFramework/target/robovm.tmp/objects0, -stdlib=libc++, --target=arm64-apple-ios8.0-simulator, -isysroot, /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk, -dynamiclib, -single_module, -compatibility_version, 1, -current_version, 1, -install_name, @rpath/MyJavaFramework.framework/MyJavaFramework, -L, /Users/tarlanismayilsoy/.m2/repository/com/mobidevelop/robovm/robovm-dist/2.3.21/unpacked/robovm-2.3.21/lib/vm/ios/arm64-simulator, -ObjC, -exported_symbols_list, /Users/tarlanismayilsoy/Downloads/robovm-samples-master/MyJavaFramework/target/robovm.tmp/exported_symbols, -Wl,-no_implicit_dylibs, -Wl,-dead_strip, -L/usr/lib/swift, -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator, -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/iphonesimulator, -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphonesimulator, -fPIC, -lrobovm-frameworksupport, -lrobovm-bc, -force_load, /Users/tarlanismayilsoy/.m2/repository/com/mobidevelop/robovm/robovm-dist/2.3.21/unpacked/robovm-2.3.21/lib/vm/ios/arm64-simulator/librobovm-rt.a, -lrobovm-core, -lgc, -lpthread, -ldl, -lm, -lz, -liconv, -lsqlite3, -framework, Foundation, -framework, MobileCoreServices]' failed (Exit value: 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Here's my robovm.xml file: <config>
<os>ios</os>
<!-- <arch>arm64</arch>-->
<arch>arm64-simulator</arch>
<target>framework</target>
<imageName>${framework.name}</imageName>
<infoPList>Info.plist.xml</infoPList>
<treeShaker>aggressive</treeShaker>
<forceLinkClasses>
<pattern>org.robovm.samples.myjavaframework.**</pattern>
<!-- JAVA.IO -->
<pattern>java.io.ByteArrayInputStream</pattern>
<pattern>java.io.ByteArrayOutputStream</pattern>
<pattern>java.io.IOException</pattern>
<!-- JAVA.SECURITY -->
<pattern>java.security.KeyFactory</pattern>
<pattern>java.security.PrivateKey</pattern>
<pattern>java.security.Provider</pattern>
<pattern>java.security.Security</pattern>
<pattern>java.security.cert.CertificateFactory</pattern>
<pattern>java.security.cert.X509Certificate</pattern>
<pattern>java.security.spec.PKCS8EncodedKeySpec</pattern>
<!-- ITEXT -->
<pattern>com.itextpdf.signatures.PdfSigner</pattern>
<pattern>com.itextpdf.signatures.IExternalSignature</pattern>
<pattern>com.itextpdf.signatures.DigestAlgorithms</pattern>
<pattern>com.itextpdf.signatures.IExternalDigest</pattern>
<pattern>com.itextpdf.signatures.PrivateKeySignature</pattern>
<pattern>com.itextpdf.signatures.BouncyCastleDigest</pattern>
<!-- ANDROID.CONSCRYPT -->
<pattern>com.android.org.conscrypt.OpenSSLProvider</pattern>
<pattern>com.android.org.conscrypt.OpenSSLSocketFactoryImpl</pattern>
<pattern>com.android.org.conscrypt.OpenSSLRandom</pattern>
<pattern>com.android.org.conscrypt.OpenSSLBIOInputStream</pattern>
<pattern>com.android.org.conscrypt.OpenSSLECKeyFactory</pattern>
<pattern>com.android.org.conscrypt.OpenSSLMessageDigestJDK$S**</pattern>
<pattern>com.android.org.conscrypt.OpenSSLSignature$**</pattern>
<!-- BOUNCY CASTLE -->
<pattern>org.bouncycastle.cert.jcajce.JcaX509CertificateHolder</pattern>
<pattern>org.bouncycastle.cert.ocsp.BasicOCSPResp</pattern>
<pattern>org.bouncycastle.cert.ocsp.CertificateID</pattern>
<pattern>org.bouncycastle.cert.ocsp.OCSPReq</pattern>
<pattern>org.bouncycastle.cert.ocsp.OCSPReqBuilder</pattern>
<pattern>org.bouncycastle.cert.ocsp.OCSPResp</pattern>
<pattern>org.bouncycastle.operator.DigestCalculator</pattern>
<pattern>org.bouncycastle.operator.DigestCalculatorProvider</pattern>
<pattern>org.bouncycastle.operator.jcajce.JcaDigestCalculatorProviderBuilder</pattern>
<pattern>org.bouncycastle.tsp.TimeStampResponse</pattern>
<pattern>org.bouncycastle.tsp.TimeStampToken</pattern>
<pattern>org.bouncycastle.asn1.ASN1BitString</pattern>
<pattern>org.bouncycastle.asn1.ASN1Encodable</pattern>
<pattern>org.bouncycastle.asn1.ASN1InputStream</pattern>
<pattern>org.bouncycastle.asn1.ASN1ObjectIdentifier</pattern>
<pattern>org.bouncycastle.asn1.ASN1OctetString</pattern>
<pattern>org.bouncycastle.asn1.ASN1Primitive</pattern>
<pattern>org.bouncycastle.asn1.ASN1Sequence</pattern>
<pattern>org.bouncycastle.asn1.x509.AccessDescription</pattern>
<pattern>org.bouncycastle.asn1.x509.AuthorityInformationAccess</pattern>
<pattern>org.bouncycastle.asn1.x509.GeneralName</pattern>
<pattern>org.bouncycastle.jce.provider.BouncyCastleProvider</pattern>
<pattern>org.bouncycastle.util.encoders.Base64</pattern>
<pattern>org.bouncycastle.asn1.cmp.PKIFailureInfo</pattern>
<pattern>org.bouncycastle.asn1.cmp.PKIStatus</pattern>
<pattern>org.bouncycastle.jcajce.provider.asymmetric.ec.AlgorithmParametersSpi</pattern>
<pattern>org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi$ecDSA</pattern>
<pattern>org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi$ecDSA256</pattern>
<pattern>org.bouncycastle.jcajce.provider.asymmetric.EC$Mappings</pattern>
<pattern>org.bouncycastle.jcajce.provider.asymmetric.RSA$Mappings</pattern>
<pattern>org.bouncycastle.jcajce.provider.asymmetric.rsa.DigestSignatureSpi$**</pattern>
<pattern>org.bouncycastle.jcajce.provider.asymmetric.DSA$Mappings</pattern>
<pattern>org.bouncycastle.jcajce.provider.asymmetric.x509.CertificateFactory</pattern>
<pattern>org.bouncycastle.jcajce.provider.asymmetric.X509</pattern>
<pattern>org.bouncycastle.jcajce.provider.asymmetric.X509$Mappings</pattern>
<pattern>org.bouncycastle.jcajce.provider.digest.BCMessageDigest</pattern>
<pattern>org.bouncycastle.jcajce.provider.digest.DigestAlgorithmProvider</pattern>
<pattern>org.bouncycastle.jcajce.provider.digest.SHA512</pattern>
<pattern>org.bouncycastle.jcajce.provider.digest.SHA512$Mappings</pattern>
<pattern>org.bouncycastle.jcajce.provider.digest.SHA512$Digest</pattern>
<pattern>org.bouncycastle.jcajce.provider.digest.SHA256</pattern>
<pattern>org.bouncycastle.jcajce.provider.digest.SHA256$Mappings</pattern>
<pattern>org.bouncycastle.jcajce.provider.digest.SHA256$Digest</pattern>
<!-- ANDROID.OKHTTP -->
<pattern>com.android.okhttp.internalandroidapi.HttpURLConnectionFactory</pattern>
<!-- XERCES -->
<pattern>org.apache.xerces.jaxp.DocumentBuilderFactoryImpl</pattern>
<pattern>org.apache.xerces.jaxp.DocumentBuilderImpl</pattern>
<pattern>org.apache.xerces.parsers.ObjectFactory</pattern>
<pattern>org.apache.xerces.parsers.AbstractDOMParser</pattern>
<pattern>org.apache.xerces.parsers.DOMParser</pattern>
<pattern>org.apache.xerces.parsers.XIncludeAwareParserConfiguration</pattern>
<pattern>org.apache.xerces.parsers.DOMParserImpl</pattern>
<pattern>org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl</pattern>
<!-- JAVA.UTIL -->
<pattern>java.util.logging.ConsoleHandler</pattern>
<pattern>java.util.Calendar</pattern>
<pattern>java.util.Enumeration</pattern>
</forceLinkClasses>
<exportedSymbols>
<symbol>JNI_CreateJavaVM</symbol>
</exportedSymbols>
</config>
I suspect that the error originates from the fact that I've added I'd appreciate any help in fixing this issue. Thanks in advance 🙏🏻 |
Beta Was this translation helpful? Give feedback.
Answered by
dkimitsa
Jun 3, 2024
Replies: 1 comment 10 replies
-
hello, where |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the only difference I see is Xcode version.
as this error comes from Xcode tools and bundled with it Framework I would recommend updating to recent version. (I run 15.4)
btw, is troubles only with arm64-simulator ?