dekatotoro / dekatotoro/SlideMenuControllerSwift

Compiler optimization levels cause build to fail with linker errors

Open
#226 6 comments 7 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.