Search code examples
swiftxcodexcode8

Xcode compile error on Release Build on a project that uses some framework reference


I am working on a Swift project that uses 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


Solution

  • 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.