4

Building an app in Xcode 6.3 gets stuck for several minutes (approx. 10mins) on a step Merge MyApp.swiftmodule:

MergeSwiftModule normal x86_64 /Users/.../Library/Developer/Xcode/DerivedData/MyApp-crbdsfrhkvpiynaffvhzzsspiels/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/x86_64/MyApp.swiftmodule

this wasn't an issue in previous version of Xcode 6.2 and Swift 1.0.

Tom Kraina
  • 3,569
  • 1
  • 38
  • 58

1 Answers1

16

Enabling SWIFT_WHOLE_MODULE_OPTIMIZATION for the target seems to fix this issue.

Enabling swift whole module optimization in Xcode build settings

Source: https://devforums.apple.com/message/1119343#1119343

Tom Kraina
  • 3,569
  • 1
  • 38
  • 58
  • 1
    Option can be found under "Swift Compiler - Code Generation" on the Build Settings tab of your target. Thanks so much for sharing the fix! – Zen Apr 24 '15 at 18:47