iOS8中Today扩展遇到在模拟器中OK,在5S以上真机就会失败的问题,还会报can attach to it by selecting Debug > Attach to Process 之类的错误,之前一直以为是Xcode的BUG,其实想想只在5S上出现,就应该想到64位编译的问题了
解决方法:
1、Build Settings->Architectures 选择 Standard architectures (armv7, arm64)
2、Build Settings->Valid Architectures 设定 armv7 armv7s armv8 arm64
3、Build Settings->Build Active Architectures Only 设定为 NO
4、扩展Today的Target按如上设置