I uploaded my unity game into Xcode and when I run it I get an error that I have never seen.
I have tried looking up solutions but none of them make it clear what to do.
duplicate symbol _OBJC_CLASS_$_UnityAdsUnityWrapperDelegate in:
/Users/zach/Library/Developer/Xcode/DerivedData/Unity-iPhone-cpaqfqemlogukibygwijfynyrkvk/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-58c342c17ccae78c42910554aa7fcfdcf0004ed65ee5ff27c27446ef2b86d435.o
/Users/zach/Library/Developer/Xcode/DerivedData/Unity-iPhone-cpaqfqemlogukibygwijfynyrkvk/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-58c342c17ccae78c42910554aa7fcfdc5bc1aa913d6c823342728edabfe58322.o
duplicate symbol _OBJC_METACLASS_$_UnityAdsUnityWrapperDelegate in:
/Users/zach/Library/Developer/Xcode/DerivedData/Unity-iPhone-cpaqfqemlogukibygwijfynyrkvk/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-58c342c17ccae78c42910554aa7fcfdcf0004ed65ee5ff27c27446ef2b86d435.o
/Users/zach/Library/Developer/Xcode/DerivedData/Unity-iPhone-cpaqfqemlogukibygwijfynyrkvk/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-58c342c17ccae78c42910554aa7fcfdc5bc1aa913d6c823342728edabfe58322.o
ld: 2 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Related
When i try to flutter run i get this error:
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Since there are quite a lot of warnings, I am only showing the error parts for now. I have tried a few solutions that get this type of error but still could not find the solution. This part seems to be the only reason I got an error.
When creating an assembly produces an error.
if through .cdworkspace
duplicate symbol _OBJC_IVAR_$_FBSDKDeviceLoginCodeInfo._verificationURL in:
/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-hiyuaervseeqdjddnyzvacrngstr/Build/Products/ReleaseForRunning-iphoneos/FBSDKLoginKit/libFBSDKLoginKit.a(FBSDKDeviceLoginCodeInfo.o)
/Users/admin/Desktop/ios_idle/Frameworks/FacebookSDK/Plugins/iOS/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKDeviceLoginCodeInfo.o)
ld: 1197 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
if through .xcodeproj
ld: warning: directory not found for option '-L/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-aznohbyfwguqcwgiyilrfrsrcddz/Build/Products/ReleaseForRunning-iphoneos/FBSDKCoreKit'
ld: warning: directory not found for option '-L/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-aznohbyfwguqcwgiyilrfrsrcddz/Build/Products/ReleaseForRunning-iphoneos/FBSDKLoginKit'
ld: warning: directory not found for option '-L/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-aznohbyfwguqcwgiyilrfrsrcddz/Build/Products/ReleaseForRunning-iphoneos/FBSDKShareKit'
ld: library not found for -lBolts
clang: error: linker command failed with exit code 1 (use -v to see invocation)
how fix it?
I deleted everything in the FacebookSDK folder in my project except for the file FacebookSDK/SDK/Resources/FacebookSettings. I saved this file so I wouldn't have to re add my settings again later. Then I reimported the Facebook SDK.
It seems that the SDK has had some significant hierarchical changes in the recent versions. When updating to one of the newer versions it did not remove all of the redundant files properly, leading to duplicate classes across across the different versions.
I am doing build a game on Unity this ok.
I ran a xcode project but i got an error like this
clang: error: linker command failed with exit code 1 (use -v to see invocation)
_GADUCreateAdLoader in GADUInterface.o
ld: symbol(s) not found for architecture arm64
You'll have to add several frameworks. By the name, Import GoogleMobileAds.framework and rebuild.
Let me know if it helps.
When i build my game from xcode to iphone5, have error:
ld: library not found for -lSSKeychain clang: error: linker command
failed with exit code 1 (use -v to see invocation)
ican't fix?
I am attempting to compile this library on mac os x Mavericks 10.9.3 64-bit: http://www.openfec.org/downloads.html
I followed the README exactly, and got this error:
Linking C shared library ../../bin/Release/libopenfec.dylib
Undefined symbols for architecture x86_64:
"_of_add_from_multiple_symbols", referenced from:
_of_linear_binary_code_backward_substitution in of_ml_tool.c.o
"_of_add_to_symbol", referenced from:
_of_linear_binary_code_decode_with_new_symbol in of_it_decoding.c.o
_of_linear_binary_code_simplify_linear_system in of_ml_decoding.c.o
_of_linear_binary_code_col_forward_elimination_pivot_reordering in of_ml_tool.c.o
_of_linear_binary_code_apply_gauss_pivoting in of_ml_tool_2.c.o
_of_linear_binary_code_inject_symbol_in_triangular_system in of_ml_tool_2.c.o
_of_linear_binary_code_solve_triangular_system in of_ml_tool_2.c.o
_of_linear_binary_code_invert_dense_system in of_ml_tool_2.c.o
...
"_of_calloc", referenced from...:
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: * [../bin/Release/libopenfec.dylib] Error 1
make[1]: * [src/CMakeFiles/openfec.dir/all] Error 2
make: *** [all] Error 2
I simply followed the README for OpenFEC's distro (found at http://www.openfec.org/downloads.html). When attempting to make, this error arises.
I have no idea what the problem is.
This is what I did after untarring the distribution:
(1.): mkdir build
(2.): cd build
(3.): cmake .. -DDEBUG:STRING=OFF
(4.): make
Any ideas?
Edit: Attempted to force cmake to use 64-bit, still didn't work.
(Tried to force it into 32-bit just for kicks, also didn't work)
FYI, if this wasn't resolved. Check that you're linking to your libraries properly.
FIND_LIBRARY(LIB_NAME_LIB lib)
TARGET_LINK_LIBRARIES(my_executable ${LIB_NAME_LIB})
In your CMakeLists.txt file.