symbol(s) not found for architecture i386

If you get this sort of thing appearing suddenly, it usually means the project is missing some frameworks it needs. Libraries and dependent projects can require frameworks, so if you’ve added one recently then that can cause this error.

To add frameworks, right click on the project name in the project view, select Add, then select Existing frameworks... from the list. Then find the framework with the symbols you’re missing.

As to how you find which frameworks you need, I’ve found using google the easiest, though you could probably use the Xcode help search too. Search for one of the symbols, doing your best to work out the unmangled name (e.g., SCNetworkReachabilityGetFlags), and then the first documentation link you find at developer.apple.com is often the right one. You usually don’t have to hunt very far. In this case, that’s this page:

https://developer.apple.com/documentation/systemconfiguration/scnetworkreachability-g7d

Then at the top of the page, it tells you which framework to use, SystemConfiguration in this case. So add that to the project, and compile again.

Then just keep doing this until it works…

Edit: I’ve never used the simulator, but this is what you do on the device – I assume it’s the same…

Leave a Comment