I have upgrade to Unity 2018.4.16c1, after built the ios project, it can’t compile in XCode, here is the error log when compile the ios project.
Build target Unity-iPhone of project Unity-iPhone with configuration Release
Ld /Users/wangxiang/Library/Developer/Xcode/DerivedData/Unity-iPhone-aybllaozebbspxayzcbjconxwynq/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/Binary/ProductName normal armv7 (in target ‘Unity-iPhone’ from project ‘Unity-iPhone’)
cd /Users/wangxiang/work/test/u3d-2018-3-16c1/build/ios-dev
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target armv7-apple-ios9.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk -L/Users/wangxiang/Library/Developer/Xcode/DerivedData/Unity-iPhone-aybllaozebbspxayzcbjconxwynq/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -L/Users/wangxiang/work/test/u3d-2018-3-16c1/build/ios-dev -L/Users/wangxiang/work/test/u3d-2018-3-16c1/build/ios-dev/Libraries -F/Users/wangxiang/Library/Developer/Xcode/DerivedData/Unity-iPhone-aybllaozebbspxayzcbjconxwynq/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -filelist /Users/wangxiang/Library/Developer/Xcode/DerivedData/Unity-iPhone-aybllaozebbspxayzcbjconxwynq/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName.LinkFileList -Xlinker -map -Xlinker /Users/wangxiang/Library/Developer/Xcode/DerivedData/Unity-iPhone-aybllaozebbspxayzcbjconxwynq/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/ProductName-LinkMap-normal-armv7.txt -dead_strip -Xlinker -object_path_lto -Xlinker /Users/wangxiang/Library/Developer/Xcode/DerivedData/Unity-iPhone-aybllaozebbspxayzcbjconxwynq/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName_lto.o -fembed-bitcode -Xlinker -bitcode_verify -Xlinker -bitcode_hide_symbols -Xlinker -bitcode_symbol_map -Xlinker /Users/wangxiang/Library/Developer/Xcode/DerivedData/Unity-iPhone-aybllaozebbspxayzcbjconxwynq/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -Xlinker -final_output -Xlinker /Applications/ProductName.app/ProductName -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -weak_framework CoreMotion -weak-lSystem -ObjC -framework CoreTelephony -framework Security -framework MediaToolbox -liPhone-lib -framework CoreText -framework AudioToolbox -weak_framework AVFoundation -framework AVKit -framework CFNetwork -framework CoreGraphics -framework CoreMedia -weak_framework CoreMotion -framework CoreVideo -framework Foundation -framework OpenAL -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -framework UIKit -liconv.2 -lil2cpp -weak_framework Metal -Xlinker -dependency_info -Xlinker /Users/wangxiang/Library/Developer/Xcode/DerivedData/Unity-iPhone-aybllaozebbspxayzcbjconxwynq/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName_dependency_info.dat -o /Users/wangxiang/Library/Developer/Xcode/DerivedData/Unity-iPhone-aybllaozebbspxayzcbjconxwynq/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/Binary/ProductName
Undefined symbols for architecture armv7:
“query_call_back(callback_func_type)”, referenced from:
il2cpp::vm::MetadataCache::Initialize() in libil2cpp.a(External_il2cpp_il2cpp_libil2cpp_vm_6.o)
il2cpp::vm::MetadataCache::Initialize() in libil2cpp.a(External_il2cpp_il2cpp_libil2cpp_vm_6.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I met the same problem. Do you know how to solve it now?
I upgraded to 2018.4.17f1, it is solved.
I met the exact same problem in Unity 2018.4.17f1 with Xcode 11.2.1(11B500)
Anyone knows how to solve it please ?
Could it be anything related to my Xcode version (newest is 11.3.1)
I recently added AdMob SDK to my project. Could it be related ?
1 Like
I have the same problem on Unity 2018.4.19f1 Personal, Xcode 10.1 (10B61).
I’m recently upgrade my project from Unity 5.6.4 to 2018.4.19f1.
It’s ok to build and run on my device, but if i achieve my iOS project, then the error occurs:
Undefined symbols for architecture armv7:
“query_call_back(callback_func_type)”, referenced from:
il2cpp::vm::MetadataCache::Initialize() in libil2cpp.a(External_il2cpp_il2cpp_libil2cpp_vm_6.o)
il2cpp::vm::MetadataCache::Initialize() in libil2cpp.a(External_il2cpp_il2cpp_libil2cpp_vm_6.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Anyone can help?
I have same issue on Unity 2018.4.18f1, I resolved it by switching back to earlier Unity version. I chosen Unity 2018.4.12f1 in my case.
wangxiang_tangiplay:
I have upgrade to Unity 2018.4.16c1, after built the ios project, it can’t compile in XCode, here is the error log when compile the ios project.
This is a bug and it will be fixed in next version of china unity 2018.4.22f1