Skip to content

[SR-3486] Swift compier won't finish compiling source code #46074

@swift-ci

Description

@swift-ci
Previous ID SR-3486
Radar None
Original Reporter Okui (JIRA User)
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, OptimizedOnly
Assignee None
Priority Medium

md5: 4e77380daea83b4bb994bf3f051fc5bb

Issue Description:

I recently update my project from Swift 2.3 to Swift 3. All codes are migrated well and working fine with debug build and optimize build. However, if I turn on Whole Module Optimization on, compiler won't finish compiling code. (Xcode stuck "Compiling Swift source files")

Clean build, clean DerivedData does not work. In activity monitor, swift gets 100% cpu usage, so it's not waiting something but probably falling into infinite loop.

Since compiler does not generate any messages, I don't know where to begin to troubleshoot. Is there any way I can set Xcode or xcodebuild to generate more detailed logs to see where compiler hangs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfoptimized onlyFlag: An issue whose reproduction requires optimized compilation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions