google-ar / arcore-unity-extensions

Google ARCore Extensions and Geospatial Creator for Unity's AR Foundation
Other
351 stars 98 forks source link

Xcode : Undefined symbols Error #146

Open cinephile231 opened 11 months ago

cinephile231 commented 11 months ago

Hello? Unity has been updated to 2021.3.31f and ARCore Extention has been updated to 1.4.0. Xcode has been updated to 15.1. Everything happened at the same time.

The following error appears: It seems to be a problem with ARCore Extension. What should I do? Andorid builds well.

ld: warning: ignoring duplicate libraries: '-lc++'
ld: warning: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found
ld: Undefined symbols:
  _ArConfig_getStreetscapeGeometryMode, referenced from:
      _ExternApi_ArConfig_getStreetscapeGeometryMode_m2E682FB9C207E1B3C97D72FB0ABD3075A60C918D in Google.XR.ARCoreExtensions.o
  _ArConfig_setStreetscapeGeometryMode, referenced from:
      _ConfigApi_UpdateSessionConfig_m4E822D0FD8CCE121837E04A14B703947A3E63C49 in Google.XR.ARCoreExtensions.o
      _ExternApi_ArConfig_setStreetscapeGeometryMode_m79C5DE64663BF9988803A24341685DCA09044B9F in Google.XR.ARCoreExtensions.o
  _ArEarth_resolveAnchorOnRooftopAsync, referenced from:
      _EarthApi_ResolveAnchorOnRooftopFuture_m0474B6638953C32D37176C153BCA266336A680E8 in Google.XR.ARCoreExtensions.o
      _ExternApi_ArEarth_resolveAnchorOnRooftopAsync_mE94E6526F861B66E770174D06CC7B6B652B7962D in Google.XR.ARCoreExtensions.o

(...)

  _ArTrackable_getType, referenced from:
      _RaycastApi_IsValidHit_m0513E011283448D20CBE4310C614696149A2B150 in Google.XR.ARCoreExtensions.o
      _ExternApi_ArTrackable_getType_m53EEAC21462ED99C06E31A969BC36CC9184393DF in Google.XR.ARCoreExtensions.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
maxcelar commented 11 months ago

We're having the same issue with 1.40.0. Did you manage to resolve this?

letuan11191 commented 10 months ago

Same issue Unity 2023.3.33f1 Xcode 15 ARCore Extension 1.40.0 Andorid builds well but IOS is same error

cinephile231 commented 10 months ago

We're having the same issue with 1.40.0. Did you manage to resolve this?

No, not yet...

maxcelar commented 10 months ago

@cinephile231 & @letuan11191 We're not getting the errors anymore. Not exactly sure what was the issue, but make sure you:

  1. update your cocoapods repos: run pod repo update in the build folder, then pod install
  2. Add -ld64 flag to Targets>Unity-iPhone>Build Settings>Linking-General>Other Linker Flags in XCode
  3. Add -ld64 flag to Targers>UnityFramework>Build Settings>Linking-General>Other Linker Flags>Multiple Values

XCode version 15.0.1 Unity version 2023.2

cinephile231 commented 10 months ago

@cinephile231 & @letuan11191 We're not getting the issue anymore. Not exactly sure what was the issue, but make sure you:

  1. update your cocoapods repos: run pod repo update in the build folder, then pod install
  2. Add -ld64 flag to Targets>Unity-iPhone>Build Settings>Linking-General>Other Linker Flags in XCode
  3. Add -ld64 flag to Targers>UnityFramework>Build Settings>Linking-General>Other Linker Flags>""

XCode version 15.0.1 Unity version 2023.2

Thank You! I'll try it.

15kingben commented 10 months ago

Thanks @maxcelar for that solution, it appears to be a discrepancy with the new linker. Either using the -ld64 flag or potentially updating to a newer version of XCode should fix the linking errors. Please close this issue if the problem is resolved.

cinephile231 commented 10 months ago

Thanks @maxcelar for that solution, it appears to be a discrepancy with the new linker. Either using the -ld64 flag or potentially updating to a newer version of XCode should fix the linking errors. Please close this issue if the problem is resolved.

I haven't tested it yet. I'll close it when it's resolved.

cinephile231 commented 9 months ago

2. -ld64

More errors appear ![Uploading errors.png…]()

15kingben commented 8 months ago

I'm not able to view this image, can you reupload?

cinephile231 commented 8 months ago

I'm not able to view this image, can you reupload?

https://drive.google.com/file/d/1zNIcG-6xdwQlVXhLitd_9M74y9eOgDyt/view?usp=sharing

I do not know. I tried following what you kindly answered above, but I got more errors.