dekatotoro / dekatotoro/SlideMenuControllerSwift
Compiler optimization levels cause build to fail with linker errors
Open
- Dominant language
- Swift
- Stars
- 3.4k
- Forks
- 742
- PR merge metrics
- No merged PRs in 30d
Description
We're using version 3.0.1.1 on Xcode 8 installed via Carthage.
Our debug schema has been building fine. When attempting to archive the project we were struck with a bunch of linker errors
The problem was the "Optimization Level" for the Swift Compiler.
Setting it to "Fast, Single-File Optimization" or "Fast, Whole Module Optimization" will produce linker errors
Setting SWIFT_OPTIMIZATION_LEVEL = "-Onone" in the build settings solved the problem.
Would really like to have the compiler generate optimized code when releasing
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.