react-native-unity-view icon indicating copy to clipboard operation
react-native-unity-view copied to clipboard

Undefined symbols for architecture armv7: "_OBJC_CLASS_$_UnityAppController"

Open CurralesDragon opened this issue 3 years ago • 4 comments

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?

CurralesDragon avatar Jul 12 '21 14:07 CurralesDragon

any solution ?

harishsn avatar Jul 15 '21 18:07 harishsn

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.

CurralesDragon avatar Jul 16 '21 06:07 CurralesDragon

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

daniel-keen avatar Jun 24 '22 09:06 daniel-keen

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

SIYABARSHADFUSIONTECH avatar Oct 23 '23 05:10 SIYABARSHADFUSIONTECH