Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MergeSwiftModule - Building a Swift app in Xcode 6.3 gets stuck in "Merge MyApp.swiftmodule"

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.

like image 483
Tom Kraina Avatar asked Dec 04 '22 03:12

Tom Kraina


1 Answers

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

like image 135
Tom Kraina Avatar answered Feb 09 '23 01:02

Tom Kraina