oyenigun oyenigun - 4 years ago 183
Swift Question

XCode compile error on Release Build

I am working on a swift project that use some frameworks references. It works well when the debug compile. But, When I compile Release it throwing some reference errors like below;

enter image description here

That failed classes are in the CryptoSwift.framework library and MyFramework using this library. CryptoSwift.framework existing on build phases.

I tried

"Optimization Level -> None [-Onone]"
but failed.

Swift Version = 2.3,
Xcode Version = 8.0

Thanks for helps!

Answer Source

It worked after I selected "Build Active Architecture Only" for Release Compile. The reason for the error is that the frameworks do not support all architectures.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download