Skip to content

[SR-9972] Linker error when building SwiftSyntax using SwiftPM's generated Xcodeproj in Xcode 10.2 beta 3 #52376

@hartbit

Description

@hartbit
Previous ID SR-9972
Radar rdar://problem/48044350
Original Reporter @hartbit
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Project Infrastructure
Labels Bug
Assignee @hartbit
Priority Medium

md5: 07ac891ad766d7dd268dcc9e0328f39e

Issue Description:

I haven't had to time to diagnose what could be causing this issue but those steps reproduce it:

  1. Install Xcode 10.2 beta 3

  2. Install the latest master toolchain

  3. Clone the latest commit from SwiftSyntax

  4. Execute:

    $ export TOOLCHAINS=swift
    $ cd swift-syntax
    $ ./build-script.py --generate-xcodeproj
    ** Generating gyb Files **
    Done Generating gyb Files
    ** Generate SwiftSyntax as an Xcode project **
    generated: ./SwiftSyntax.xcodeproj
  5. Launch Xcode 10.2 beta3 with the generated project

  6. Build any of the schemes.

Xcode will fail building with the following linker error:

ld: file not found: /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2019-02-19-a.xctoolchain/usr/lib/arc/libarclite_macosx.a 

On the other hand, building using either the build-script or SwiftPM directly works:

$ ./build-script.py
$ swift build 

Metadata

Metadata

Assignees

Labels

bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions