iOS Build Environment Help Center

ld64.lld: error: UNSIGNED relocation

append delete PabloRivero

Windows pro
3.62
10.15.7

Hello, I am having an error when compiling a project. This started when updating project Builder to version 3.62...
Previously, the application compiled without any problem, but since I updated to the latest version, when I compile it gives me the following message:

->
+ [arm64] Libraries\com.unity.inputsystem\InputSystem\Plugins\iOS\iOSStepCounter.mm.obj is up to date
+ [arm64] Including Libraries\libiPhone-lib.a...
+ [arm64] Including Libraries\libil2cpp.a...
+ [arm64] Including Libraries\baselib.a...
+ [arm64] Including Libraries\Plugins\iOS\Firebase\libFirebaseCppDatabase.a...
+ [arm64] Including Libraries\Plugins\iOS\Firebase\libFirebaseCppStorage.a...
+ [arm64] Including Libraries\Plugins\iOS\Firebase\libFirebaseCppMessaging.a...
+ [arm64] Including Libraries\Plugins\Dissonance\Plugins\iOS\libAudioPluginDissonance.a...
+ [arm64] Including Libraries\Plugins\iOS\Firebase\libFirebaseCppApp.a...
+ [arm64] Including Libraries\Plugins\iOS\Firebase\libFirebaseCppAuth.a...
+ [arm64] Including Libraries\Plugins\Dissonance\Plugins\iOS\libopus.a...
+ [arm64] Including Libraries\Plugins\iOS\Firebase\libFirebaseCppFunctions.a...
+ [arm64] Including Libraries\Plugins\iOS\Firebase\libFirebaseCppAppCheck.a...
+ [arm64] Including Libraries\Plugins\iOS\Firebase\libFirebaseCppAnalytics.a...
+ [arm64] Including Libraries\Plugins\iOS\Firebase\libFirebaseCppRemoteConfig.a...
+ [arm64] Linking UnityFramework...
ld64.lld: error: UNSIGNED relocation has width 1 bytes, but must be 4 or 8 bytes at offset 0 of __TEXT,__text in build/Release-iphoneos/UnityFramework/arm64/Classes/Native/Unity.InputSystem__2.cpp.obj
ld64.lld: error: UNSIGNED relocation has width 1 bytes, but must be 4 or 8 bytes at offset 0 of __TEXT,__text in build/Release-iphoneos/UnityFramework/arm64/Classes/Native/Unity.InputSystem__2.cpp.obj
ld64.lld: error: UNSIGNED relocation has width 1 bytes, but must be 4 or 8 bytes at offset 0 of __TEXT,__text in build/Release-iphoneos/UnityFramework/arm64/Classes/Native/Unity.InputSystem__2.cpp.obj
ld64.lld: error: UNSIGNED relocation has width 1 bytes, but must be 4 or 8 bytes at offset 0 of __TEXT,__text in build/Release-iphoneos/UnityFramework/arm64/Classes/Native/Unity.InputSystem__2.cpp.obj
ld64.lld: error: UNSIGNED relocation has width 1 bytes, but must be 4 or 8 bytes at offset 0 of __TEXT,__text in build/Release-iphoneos/UnityFramework/arm64/Classes/Native/Unity.InputSystem__2.cpp.obj
ld64.lld: error: UNSIGNED relocation has width 1 bytes, but must be 4 or 8 bytes at offset 0 of __TEXT,__text in build/Release-iphoneos/UnityFramework/arm64/Classes/Native/Unity.InputSystem__2.cpp.obj
ld64.lld: error: UNSIGNED relocation has width 1 bytes, but must be 4 or 8 bytes at offset 0 of __TEXT,__text in build/Release-iphoneos/UnityFramework/arm64/Classes/Native/Unity.InputSystem__2.cpp.obj
ld64.lld: error: UNSIGNED relocation has width 1 bytes, but must be 4 or 8 bytes at offset 0 of __TEXT,__text in build/Release-iphoneos/UnityFramework/arm64/Classes/Native/Unity.InputSystem__2.cpp.obj
ld64.lld: error: UNSIGNED relocation has width 1 bytes, but must be 4 or 8 bytes at offset 0 of __TEXT,__text in build/Release-iphoneos/UnityFramework/arm64/Classes/Native/Unity.InputSystem__2.cpp.obj
ld64.lld: error: UNSIGNED relocation has width 1 bytes, but must be 4 or 8 bytes at offset 0 of __TEXT,__text in build/Release-iphoneos/UnityFramework/arm64/Classes/Native/Unity.InputSystem__2.cpp.obj
ld64.lld: error: UNSIGNED relocation has width 1 bytes, but must be 4 or 8 bytes at offset 0 of __TEXT,__text in build/Release-iphoneos/UnityFramework/arm64/Classes/Native/Unity.InputSystem__2.cpp.obj
ld64.lld: error: UNSIGNED relocation has width 1 bytes, but must be 4 or 8 bytes at offset 0 of __TEXT,__text in build/Release-iphoneos/UnityFramework/arm64/Classes/Native/Unity.InputSystem__2.cpp.obj
ld64.lld: error: UNSIGNED relocation has width 1 bytes, but must be 4 or 8 bytes at offset 0 of __TEXT,__text in build/Release-iphoneos/UnityFramework/arm64/Classes/Native/Unity.InputSystem__2.cpp.obj
ld64.lld: error: UNSIGNED relocation has width 1 bytes, but must be 4 or 8 bytes at offset 0 of __TEXT,__text in build/Release-iphoneos/UnityFramework/arm64/Classes/Native/Unity.InputSystem__2.cpp.obj
ld64.lld: error: UNSIGNED relocation has width 1 bytes, but must be 4 or 8 bytes at offset 0 of __TEXT,__text in build/Release-iphoneos/UnityFramework/arm64/Classes/Native/Unity.InputSystem__2.cpp.obj
ld64.lld: error: UNSIGNED relocation has width 1 bytes, but must be 4 or 8 bytes at offset 0 of __TEXT,__text in build/Release-iphoneos/UnityFramework/arm64/Classes/Native/Unity.InputSystem__2.cpp.obj
ld64.lld: error: UNSIGNED relocation has width 1 bytes, but must be 4 or 8 bytes at offset 0 of __TEXT,__text in build/Release-iphoneos/UnityFramework/arm64/Classes/Native/Unity.InputSystem__2.cpp.obj
ld64.lld: error: UNSIGNED relocation has width 1 bytes, but must be 4 or 8 bytes at offset 0 of __TEXT,__text in build/Release-iphoneos/UnityFramework/arm64/Classes/Native/Unity.InputSystem__2.cpp.obj
ld64.lld: error: UNSIGNED relocation has width 1 bytes, but must be 4 or 8 bytes at offset 0 of __TEXT,__text in build/Release-iphoneos/UnityFramework/arm64/Classes/Native/Unity.InputSystem__2.cpp.obj
ld64.lld: error: UNSIGNED relocation has width 1 bytes, but must be 4 or 8 bytes at offset 0 of __TEXT,__text in build/Release-iphoneos/UnityFramework/arm64/Classes/Native/Unity.InputSystem__2.cpp.obj
ld64.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
<-

What should I do?

Reply RSS

Replies

append delete #1. Pierre-Marie Baty

Hello

Have you tried using the Apple linker instead of LLD ? I.e. uncheck the "use the LLVM linker" checkbox in the builder UI and try again.

Reply

(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Moderators: Pierre-Marie Baty