error: could not read data from '/Users/neo/Documents/AG_iOS/ios/sbis/trunk/Saftop/Saftop/Classes/Notice/temp.plist': The file “temp.plist” couldn’t be opened because there is no such file.

从xcode8.0更新到xcode8.1后,有时候会出现真机可以运行,但是模拟器会出现报错,报错情况如下:

error: could not read data from '/Users/neo/Documents/AG_iOS/ios/sbis/trunk/Saftop/Saftop/Classes/Notice/temp.plist': The file “temp.plist” couldn’t be opened because there is no such file._第1张图片

从报错的内容上看,是第三方的控件中某些东西无法找到,解决这个问题的方式步骤如下:

(1)复制info.plist文件,重新命名,如命名为temp.plist;

(2)点击“Pods”,选中类似文件的东西,然后选择“Build Setting”,查找到info.plist File;

(3)分别点击"Debug"和“Release”,在Any SDK 中输入刚刚创建的team.plist的路径;

(4)把所有类型与文件夹的图标按上面的步骤修改,重新运行,然后模拟器就可以运行;

error: could not read data from '/Users/neo/Documents/AG_iOS/ios/sbis/trunk/Saftop/Saftop/Classes/Notice/temp.plist': The file “temp.plist” couldn’t be opened because there is no such file._第2张图片

你可能感兴趣的:(error: could not read data from '/Users/neo/Documents/AG_iOS/ios/sbis/trunk/Saftop/Saftop/Classes/Notice/temp.plist': The file “temp.plist” couldn’t be opened because there is no such file.)