【iOS】使用SQLite3的时候Swift3.、XCode8报错:Unsupported architecture – ‘arm/arch.h’file not found – Could not build module ‘Darwin’ – Could not build module ‘sqlite3’ – Failed to import bridging header ‘…..’

如果出现了找不到模块的错误,并且有如下报错:

  • Unsupported architecture
  • ‘arm/arch.h’file not found
  • Could not build module ‘Darwin’
  • Could not build module ‘sqlite3’
  • Failed to import bridging header ‘…..’

snip20161202_80

snip20161202_82

解决方法:在自己编写的SQLiteManager文件里面不需要写import sqlite3这句话。。直接使用SQLite语句就行了