Matt Butler Matt Butler - 1 year ago 98
Swift Question

App failing to build on iPhone 4s and iPhone 5 (Swift)

I am working on an iPhone app that includes a library for custom alert views. You can find the library here. Everything has been implemented properly and the app runs flawlessly on iPhone 6, 6+, and s models as well. However, whenever I try and run the app on the iPhone 4/4s and iPhone 5/5s there are errors related to the alert view library. The current deployment target is 9.3

Here are the error codes that I get:

Undefined symbols for architecture i386:

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

Answer Source

After many days of searching I have found a fix for this issue. Hold down option while cleaning your build. (located product > clean) in Xcode. This cleaned the build folder and now everything is working just fine!

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