Undefined symbols for architecture x86_64:

真机运行正常, 但要在模拟器运行的时候, 编译就报错了:

解决方法:

1.将Build Settings的Architectures修改为arm7 armv7s.Xcode7默认是加上arm64的,但有些库不支持arm64,所以需要将它去掉。

2.将build active architecture only改为NO

OK, 编译成功...

原文地址:https://www.cnblogs.com/Rinpe/p/5529122.html