asmadsen / react-native-unity-view

MIT License
203 stars 129 forks source link

Undefined symbols for architecture armv7: "_OBJC_CLASS_$_UnityAppController" #53

Open CurralesDragon opened 3 years ago

CurralesDragon commented 3 years ago

Hi guys

Does anyone know why i'm getting this error when trying to build:

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_UnityAppController", referenced from:
      objc-class-ref in libreact-native-unity-view.a(UnityUtils.o)
      objc-class-ref in libreact-native-unity-view.a(RNUnityViewManager.o)
ld: symbol(s) not found for architecture armv7

I recently updated unity version, i can build and run just fine to physical device. But when trying to build to archive im presented with the above error?

harishsn commented 3 years ago

any solution ?

CurralesDragon commented 3 years ago

Yeah so it appears 2020 version of unity does not build the unityframework for armv7 anymore. So setting the architecture in Xcode to arm64 only solved the issue.

Running into issues on android now though!

On 15 Jul 2021, at 19:15, Harish SN @.***> wrote:

 any solution ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

daniel-keen commented 2 years ago

Everything is set to arm64. Unfortunately that didn't help. Is there any other possible solution to the issue?

SIYABARSHADFUSIONTECH commented 10 months ago

These two solutions worked for me First one have solved this by selecting armv7 and arm64 both on buildsetting it worked for me. Second One Just Downgrade the Unity version because after 2020.1 unity does not support armv7 by default so choose 2019 or 18 but make sure to back-up your Unity project