MobiVM / robovm

Ahead of time compiler for JVM bytecode targetting iOS, Mac OSX and Linux
https://mobivm.github.io
966 stars 133 forks source link

Firebase storage treeshaker build error #699

Closed aliyildiz1980 closed 1 year ago

aliyildiz1980 commented 1 year ago

The following build error occurs when firebase storage is added to app gradle file. I am using Android Studio 2021.3.1 Patch 1, Gradle 7.4, RoboVM 2.3.19-SNAPSHOT, firebase storage altpod 1.28.0-SNAPSHOT. The error disappears if treeshaker line is removed from robovm.xml. An example project is attached.

[ERROR] Couldn't compile app org.apache.commons.exec.ExecuteException: Command '[/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo, /Users/XXX/Development/YYY/ios/robovm-build/tmp/iOS/ios/arm64-simulator/IOSLauncher.app/Frameworks/libswiftCore.dylib, -remove, i386, -remove, x86_64, -output, /Users/aliyildiz/Development/YYY/ios/robovm-build/tmp/iOS/ios/arm64-simulator/IOSLauncher.app/Frameworks/libswiftCore.dylib.tmp]' failed (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166) at org.robovm.compiler.util.Executor.exec(Executor.java:344) at org.robovm.compiler.util.ToolchainUtil.lipoRemoveArchs(ToolchainUtil.java:332) at org.robovm.compiler.target.AbstractTarget.stripExtraArches(AbstractTarget.java:704) at org.robovm.compiler.target.AbstractTarget.copySwiftLibs(AbstractTarget.java:675) at org.robovm.compiler.target.AbstractTarget.copyDynamicFrameworks(AbstractTarget.java:406) at org.robovm.compiler.target.AbstractTarget.doInstall(AbstractTarget.java:772) at org.robovm.compiler.target.AbstractTarget.doInstall(AbstractTarget.java:761) at org.robovm.compiler.target.ios.IOSTarget.prepareLaunch(IOSTarget.java:389) at org.robovm.compiler.target.ios.IOSTarget.prepareLaunch(IOSTarget.java:384) at org.robovm.idea.compilation.RoboVmCompileTask$3.doCompile(RoboVmCompileTask.java:282) at org.robovm.idea.compilation.RoboVmCompilerThread.run(RoboVmCompilerThread.java:69)

test.zip

dkimitsa commented 1 year ago

fixed by #700