yasirkula / UnityIonicIntegration

A guide to integrating Unity 3D content into an Ionic app and sending messages between them (for Android & iOS)(tested with Vuforia plugin)
104 stars 32 forks source link

iOS build failed Undefined symbols for architecture arm64 #6

Closed camin153 closed 7 years ago

camin153 commented 7 years ago

I try to follow instruction for iOS. After I build project I recieve this error.

Undefined symbols for architecture arm64: "_UnitySetGraphicsDevice", referenced from: -[AppDelegate shouldAttachRenderDelegate] in AppDelegate.o "_UnityRenderEvent", referenced from: -[AppDelegate shouldAttachRenderDelegate] in AppDelegate.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Do you have any suggestion?

screen shot 2560-06-14 at 4 15 19 pm
Frobei commented 7 years ago

Delete or put in comment the lines where UnitySetGraphicsDevice and UnityRenderEvent are used. It seems they're not necessary.

Look at this link: https://github.com/yasirkula/UnityIonicIntegration/issues/2

camin153 commented 7 years ago

I try it, but it show only black screen. it didn't show even power by Unity screen.

Frobei commented 7 years ago

Just to make sure, you are trying to integrate a scene without using Vuforia right ?

Do you have something written in your log when you try to go into your unity view ?

yasirkula commented 7 years ago

I am planning to test the plugin without Vuforia myself next week. Until then, I hope you can solve this issue on your own.

camin153 commented 7 years ago

I'm so sorry. It's my mistake in Ionic project. After I comment line of code in AppDelegate that have UnitySetGraphicsDevice and UnityRenderEvent. It works.

Thank you so much.