iphone - 如何知道哪个 xib 文件使用了图像?

标签 iphone ios ipad xcode4.3

在运行我的项目时,我收到此错误消息。

Could not load the "bs_back_light.png" image referenced from a nib in the bundle with identifier "com.xxxxxxx.new"

我不再使用图像文件,所以我想删除 xib 文件中引用的图像。但是项目中的xib文件很多,引用图片的xib文件实在是太难找了。如果它是源文件,我会使用在工作区中查找(Shift + Command + F),但它不会搜索 xib 文件。

如何从 xib(nib) 文件中搜索引用的图像?

我正在使用 Xcode 版本 4.3.3 (4E3002)

最佳答案

我有同样的问题,我用一些控制台命令解决了。 在 Mac 上打开终端并运行此命令:

grep -i -r --include=*.xib "bs_back_light.png"/your/project/path

它将在路径“/your/project/path”中搜索并打印所有使用图像“bs_back_light.png”的文件 xib 的完整路径。

希望对您有所帮助!

关于iphone - 如何知道哪个 xib 文件使用了图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11666152/

相关文章:

ios - 从现有应用程序中排除 iPad 支持

iphone - 如何使用 glew 将 opengl 代码移植到 iPhone 的 openGL ES 代码

iphone - AudioQueueOfflineRender问题

ios - AVAssetExportSession,AVMutableVideoComposition 让视频更红

ios - 在给定时间捕获 AVPlayer 流 .m3u8 的 UIImage 帧?

iphone - iOS 如何从歌曲(ipod 库)中获取音频样本?

c++ - iphone:在不分配新内存的情况下创建图像

iphone - 核心数据+iCloud : exclude certain attributes from sync?

ios - Xcode 错误 "value of type ' [UIViewController ]' has no member ' firstObject'"

ios - 'NSInvalidArgumentException',原因: 'Resource beep.wav can not be loaded' iOS Sprite Kit