swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.51k stars 10.35k forks source link

[Source compatibility suite] ReactiveSwift failing to build for watchOS after Xcode 15.2 update #70744

Open justice-adams-apple opened 9 months ago

justice-adams-apple commented 9 months ago

Description

The ReactiveSwift project has started failing to build for watchOS after the Xcode update on our CI nodes to 15.2 The error seen in the log is

Undefined symbols for architecture armv7k:
  "___llvm_profile_runtime", referenced from:
      ___llvm_profile_runtime_user in ReactiveSwift_vers.o
      ___llvm_profile_runtime_user in Optional.o
      ___llvm_profile_runtime_user in Disposable.o
      ___llvm_profile_runtime_user in Event.o
      ___llvm_profile_runtime_user in Scheduler.o
      ___llvm_profile_runtime_user in ResultExtensions.o
      ___llvm_profile_runtime_user in ValidatingProperty.o
      ...
      ___llvm_profile_runtime_user in ReactiveSwift_vers.o
      ___llvm_profile_runtime_user in Optional.o
      ___llvm_profile_runtime_user in Disposable.o
      ___llvm_profile_runtime_user in Event.o
      ___llvm_profile_runtime_user in Scheduler.o
      ___llvm_profile_runtime_user in ResultExtensions.o
      ___llvm_profile_runtime_user in ValidatingProperty.o
      ...
      ___llvm_profile_runtime_user in ReactiveSwift_vers.o
      ___llvm_profile_runtime_user in Optional.o
      ___llvm_profile_runtime_user in Disposable.o
      ___llvm_profile_runtime_user in Event.o
      ___llvm_profile_runtime_user in Scheduler.o
      ___llvm_profile_runtime_user in ResultExtensions.o
      ___llvm_profile_runtime_user in ValidatingProperty.o
      ...
      ___llvm_profile_runtime_user in ReactiveSwift_vers.o
      ___llvm_profile_runtime_user in Optional.o
      ___llvm_profile_runtime_user in Disposable.o
      ___llvm_profile_runtime_user in Event.o
      ___llvm_profile_runtime_user in Scheduler.o
      ___llvm_profile_runtime_user in ResultExtensions.o
      ___llvm_profile_runtime_user in ValidatingProperty.o
      ...
      ___llvm_profile_runtime_user in ReactiveSwift_vers.o
      ___llvm_profile_runtime_user in Optional.o
      ___llvm_profile_runtime_user in Disposable.o
      ___llvm_profile_runtime_user in Event.o
      ___llvm_profile_runtime_user in Scheduler.o
      ___llvm_profile_runtime_user in ResultExtensions.o
      ___llvm_profile_runtime_user in ValidatingProperty.o
      ...
      ___llvm_profile_runtime_user in ReactiveSwift_vers.o
      ___llvm_profile_runtime_user in Optional.o
      ___llvm_profile_runtime_user in Disposable.o
      ___llvm_profile_runtime_user in Event.o
      ___llvm_profile_runtime_user in Scheduler.o
      ___llvm_profile_runtime_user in ResultExtensions.o
      ___llvm_profile_runtime_user in ValidatingProperty.o
      ...
      ___llvm_profile_runtime_user in ReactiveSwift_vers.o
      ___llvm_profile_runtime_user in Optional.o
      ___llvm_profile_runtime_user in Disposable.o
      ___llvm_profile_runtime_user in Event.o
      ___llvm_profile_runtime_user in Scheduler.o
      ___llvm_profile_runtime_user in ResultExtensions.o
      ___llvm_profile_runtime_user in ValidatingProperty.o
      ...
      ...
     (maybe you meant: ___llvm_profile_runtime_user)
ld: symbol(s) not found for architecture armv7k
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Reproduction

    xcodebuild clean build -workspace ReactiveSwift/ReactiveSwift.xcworkspace -scheme ReactiveSwift-watchOS -destination generic/platform=watchOS -derivedDataPath ReactiveSwift/build CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO ENTITLEMENTS_REQUIRED=NO ENABLE_BITCODE=NO INDEX_ENABLE_DATA_STORE=NO GCC_TREAT_WARNINGS_AS_ERRORS=NO SWIFT_TREAT_WARNINGS_AS_ERRORS=NO IPHONEOS_DEPLOYMENT_TARGET=16.0 MACOSX_DEPLOYMENT_TARGET=10.13 WATCHOS_DEPLOYMENT_TARGET=4.0 TVOS_DEPLOYMENT_TARGET=16.0 SWIFT_EXEC=/usr/bin/swiftc -IDEPackageSupportDisableManifestSandbox=YES -configuration Release SWIFT_VERSION=4 "OTHER_SWIFT_FLAGS=$(OTHER_SWIFT_FLAGS) -swift-version 4" DEBUG_INFORMATION_FORMAT=dwarf ARCHS=armv7k

Expected behavior

Expected the project to build fine

Environment

Apple Swift version 5.11-dev (LLVM 8cc8bcbcb386d23, Swift https://github.com/apple/swift/commit/556a9b1ff2010f8eeb95a5e9543a71fbaa658a66) Target: x86_64-apple-macosx10.13

Additional information

No response

justice-adams-apple commented 9 months ago

I believe this will require an xcode update