open-telemetry / opentelemetry-swift

OpenTelemetry API for Swift
https://opentelemetry.io/docs/instrumentation/swift/
Apache License 2.0
221 stars 145 forks source link

Build error on executables that have Opentracing dependency #493

Closed vvydier closed 9 months ago

vvydier commented 10 months ago

I am noticing this build error on most of the executables in the repo with the new Xcode version. Do we need to update Opentracing as the build error seems to reference that.

Showing Recent Errors Only

Build target Opentracing with configuration Debug

ld: Undefined symbols: _llvm_profileruntime, referenced from: llvm_profile_runtime_user in Opentracing.o clang: error: linker command failed with exit code 1 (use -v to see invocation)

Undefined symbols:

Linker command failed with exit code 1 (use -v to see invocation)

nachoBonafonte commented 10 months ago

Yes, that is related to code coverage, the opentracing library doesn't support it. The latest Xcode likes to enable them by default when building for debug, you should manually disable them in Xcode