Posts

Post not yet marked as solved
0 Replies
195 Views
Hi, I can build my app normally, but enabling Address sanitizer in the app target's scheme (Edit scheme -> Run -> Diagnostic -> Address Sanitizer) make the linking step fails. The failure looks like this: Ld /Users/giober/Library/Developer/Xcode/DerivedData/xxxxxxxx-fsaitgomjihmgxhepmdwyfkrmmyu/Build/Products/Debug-iphoneos/libxxxxxMain.a normal (in target 'xxxxxMain' from project 'xxxxxxxx') cd /Users/giober/workspace/my-sdk /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target arm64-apple-ios11.0 -r -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk -L/Users/giober/Library/Developer/Xcode/DerivedData/xxxxxxxx-fsaitgomjihmgxhepmdwyfkrmmyu/Build/Products/Debug-iphoneos -F/Users/giober/Library/Developer/Xcode/DerivedData/xxxxxxxx-fsaitgomjihmgxhepmdwyfkrmmyu/Build/Products/Debug-iphoneos -filelist /Users/giober/Library/Developer/Xcode/DerivedData/xxxxxxxx-fsaitgomjihmgxhepmdwyfkrmmyu/Build/Intermediates.noindex/xxxxxxxx.build/Debug-iphoneos/xxxxxMain.build/Objects-normal/arm64/xxxxxMain.LinkFileList -Xlinker -map -Xlinker /Users/giober/Library/Developer/Xcode/DerivedData/xxxxxxxx-fsaitgomjihmgxhepmdwyfkrmmyu/Build/Intermediates.noindex/xxxxxxxx.build/Debug-iphoneos/xxxxxMain.build/xxxxxMain-LinkMap-normal-arm64.txt -Xlinker -object_path_lto -Xlinker /Users/giober/Library/Developer/Xcode/DerivedData/xxxxxxxx-fsaitgomjihmgxhepmdwyfkrmmyu/Build/Intermediates.noindex/xxxxxxxx.build/Debug-iphoneos/xxxxxMain.build/Objects-normal-asan/arm64/xxxxxMain_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fembed-bitcode-marker -Xlinker -debug_variant -stdlib\=libc++ -fobjc-arc -fobjc-link-runtime -fsanitize\=address -ObjC -lrebrtc_multi -lxxxxxxxxxx -lxxxxxxxxxxxx -Xlinker -dependency_info -Xlinker /Users/giober/Library/Developer/Xcode/DerivedData/xxxxxxxx-fsaitgomjihmgxhepmdwyfkrmmyu/Build/Intermediates.noindex/xxxxxxxx.build/Debug-iphoneos/xxxxxMain.build/Objects-normal-asan/arm64/xxxxxMain_dependency_info.dat -o /Users/giober/Library/Developer/Xcode/DerivedData/xxxxxxxx-fsaitgomjihmgxhepmdwyfkrmmyu/Build/Products/Debug-iphoneos/libxxxxxMain.a ld: -rpath can only be used when creating a dynamic final linked image clang: error: linker command failed with exit code 1 (use -v to see invocation) I tried googling around, with no luck. I'm on XCode 13.1.
Posted Last updated
.