dekatotoro / SlideMenuControllerSwift

iOS Slide Menu View based on Google+, iQON, Feedly, Ameba iOS app. It is written in pure swift.
MIT License
3.4k stars 754 forks source link

Compiler optimization levels cause build to fail with linker errors #226

Open melito opened 7 years ago

melito commented 7 years ago

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

franzks-zz commented 7 years ago

Experiencing the same thing after I've updated to 3.0, it was working fine in the previous version with optimization enabled.

f3n1kc commented 7 years ago

We have same issue, any ways to fix it?

jkgwak commented 7 years ago

I have same issue...

Natai commented 7 years ago

The same to me...

obuseme commented 7 years ago

I have the same issue...

sahuamit13 commented 7 years ago

Experiencing the same

not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)