MobiVM / robovm

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

Firebase v10.0.0 link error on launching on simulator #687

Closed DavidPDev closed 2 years ago

DavidPDev commented 2 years ago

I am stuck with this issue since 2 or 3 days. After doing thousands of combinations and tests...

This project was working perfecty some months ago with libGDX v.1.10.0, robovm v.2.3.16 and firebase.zip v.8.14.0.

I now updated the project with lastests libraries and versions. Steps I did: 1- Update build.gradle with new sdk versions. 2- Updatetd robovm plugin (2.3.18) 3-In the link: https://github.com/firebase/firebase-ios-sdk/releases downloaded the firebase.zip v.10.0.0 and fresh-copied all the new firebase analytics + firebase google ads foders image 4- Updated robovm.xml with updated libraries image 5- XCode version is 14.0.1

When running on simulator (movibm.launchIphoneSimulator) I get the following error:

> Task :ios:launchIPhoneSimulator
RoboVM has detected that you are running on a slow HDD. Please consider mounting a RAM disk.
To create a 2GB RAM disk, run this in your terminal:
SIZE=2048 ; diskutil erasevolume HFS+ 'RoboVM RAM Disk' `hdiutil attach -nomount ram://$((SIZE * 2048))`
See http://docs.robovm.com/ for more info
ld: framework not found PromisesObjC
clang: error: linker command failed with exit code 1 (use -v to see invocation)

> Task :ios:launchIPhoneSimulator FAILED

Execution failed for task ':ios:launchIPhoneSimulator'.
> Failed to launch simulator

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

Something has broken on firebase.zip or I am missing something?: ld: framework not found PromisesObjC

If I add this library from other older firebase.zip or if i use older firebase.zip bundles I get hundreds of errors of this kind:

...gdx-freetype.xcframework/ios-arm64_x86_64-simulator/libgdx-freetype.a(ftbbox.o)) was built for newer iOS Simulator version (9.0) than being linked (8.0)

or

....AppMeasurement.framework/GoogleAppMeasurement(APMAEU.o)) was built for newer iOS Simulator version (10.0) than being linked (8.0)

or

Undefined symbols for architecture x86_64:
  "_$s7ElementSTTl", referenced from:
      _$s20FirebaseCoreInternal10RingBufferVyxGSTAAMc in FirebaseCoreInternal(RingBuffer.o)
  "_$s8AllCasess12CaseIterablePTl", referenced from:
      _$s20FirebaseCoreInternal10TimePeriodOs12CaseIterableAAMc in FirebaseCoreInternal(Heartbeat.o)
  "_$s8Dispatch0A13WorkItemFlagsVMa", referenced from:

The only way to make it run is downgrading to older versions.

dkimitsa commented 2 years ago

hi, check comments I've put in https://github.com/dkimitsa/robovm-robopods/issues/18

DavidPDev commented 2 years ago

I close this issue. link to : https://github.com/dkimitsa/robovm-robopods/issues/18 Thank you @dkimitsa