blitzagency / ios-unity5

How to integrate Unity with an Native iOS Application using Swift
MIT License
368 stars 69 forks source link

link error occured in xcode 7.3.1 #15

Open twinsen2848 opened 8 years ago

twinsen2848 commented 8 years ago

Undefined symbols for architecture arm64: "il2cpp::icalls::mscorlib::System::Char::GetDataTablePointers(unsigned char const**, unsigned char const**, double const**, unsigned short const**, unsigned short const**, unsigned short const**, unsigned short const**)", referenced from: _Char_GetDataTablePointers_m2324968695 in Bulk_mscorlib_1.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Unity3D version is 5.4.0f3

does anyone have resolved this issue?

vivektakrani commented 7 years ago

Hey @twinsen2848 did you find a solution?

twinsen2848 commented 7 years ago

@vivektakrani I just down the Unity3D version to 5.2.2

vivektakrani commented 7 years ago

@twinsen2848 Thanks, will try that.

funkyLover commented 7 years ago

have you got solution that does not change the unity3d version? @twinsen2848 @vivektakrani

vivektakrani commented 7 years ago

@funkyLover No. If you find any solution please post here. Thanks.

funkyLover commented 7 years ago

@vivektakrani I get the error Undefined symbols for architecture armv7, issue & question in stackoverflow

funkyLover commented 7 years ago

I had find the solution in unity3d forum

c++ Language Dialect Option : Compiler Default -> C++ 11

it perfectly solve my problem in unity3d 5.4.0f3 the issue seem cause by unity 3d version, not the vuforia @vivektakrani @twinsen2848

vivektakrani commented 7 years ago

@funkyLover Thanks 👍 Will try this.

kimzerokim commented 7 years ago

I got "duplicate symbol _main in:" error after apply @funkyLover 's solution. Any ideas? looks like : /Developer/Xcode/DerivedData/${myProjectName}-clyoxovxkkbdatbaffwxxviwprhx/Build/Intermediates/${myProjectName}.build/Debug-iphoneos/${myProjectName}.build/Objects-normal/arm64/main-301E0F77E3874AD.o

kimzerokim commented 7 years ago

nope. I fix the problem... because of duplicated files. (I just re-cleanup my projects. Thanks.)

cschellberg95 commented 7 years ago

@ky200223 hey can you elaborate on your solution for this? I'm getting the same error

kimzerokim commented 7 years ago

@cschellberg95 That issue is already rotten in my mind.. :( Anyway I was trying to cleanup the project using Product > Clean and re-build. If isn't resolve you issue, maybe you can see some duplicated files on your xcode dir tree. Just delete that files. I hope this helps you :>

noopuraspire commented 7 years ago

@funkyLover

I had find the solution in unity3d forum

c++ Language Dialect Option : Compiler Default -> C++ 11

it perfectly solve my problem in unity3d 5.4.0f3 the issue seem cause by unity 3d version, not the vuforia

I'm not able to fix it in unity version 5.6.1f1

funkyLover commented 7 years ago

Sorry @noopuraspire , I don't work with unity quite a while, I can't remember any details for this issue. you can make sure you do all things done mentioned by this repo tutorial. and here is some problems I got before. if still down. I think you can just try another c++ Language Dialect Option.

noopuraspire commented 7 years ago

thanks @funkyLover , I will look into it

dhavalagile commented 6 years ago

I am facing same issues give me below error

duplicate symbol _main in: /Users/----/UnityTest-gdetosseukppilafpxhvtajaihpk/Build/Intermediates.noindex/UnityTest.build/Debug-iphonesimulator/UnityTest.build/Objects-normal/x86_64/main.o /Users/-----/UnityTest-gdetosseukppilafpxhvtajaihpk/Build/Intermediates.noindex/UnityTest.build/Debug-iphonesimulator/UnityTest.build/Objects-normal/x86_64/AppDelegate.o ld: 1 duplicate symbol for architecture x86_64