0

I'm trying to run my app on iOS simulator; it says its loaded and running, and I see the simulator, but don't see an icon for my app.

How do I fix this?

Some background:

  • Initially, app wasn't running because of the error 'Couldn't find Info.plist file' file. So I removed this file from Build Phases -> Compile Sources

  • Also, I now see 'InfoPlist.strings' in red color under >Pages.

UPDATE

I was able to undo the Plist file deletion, but still getting error that the file InfoPlist.strings can't be found because it doesn't exist.

I think there is something fishy in code above from .xcodeproj file below.. grateful for advice.

RELEVANT CODE FROM PROJECT.XCODEPROJ FILE

/* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en;    path = en.lproj/Localizable.strings; sourceTree = SOURCE_ROOT; };

/* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = SOURCE_ROOT; };
4

3 回答 3

1

这是因为您删除 .info 因为 info plist 文件可能包含与您的应用程序图标和应用程序名称相关的信息

此文件是加载应用程序名称和图标现在您删除此文件,因此它无法加载应用程序名称和图标名称

如果您发现错误“找不到 Info.plist 文件”,请参考此链接

在 xcode 4 中找不到 info.plist

在 XCode 项目中添加 Info.plist

这些可能会对您有所帮助,但不要删除 info.plist

现在创建新项目并复制 info.plist 并添加到您当前的项目中。或者您可以通过参考此链接重新创建 info.plist 文件 How to regenerate an iPhone Xcode info.plist file 希望这可以帮助您。

于 2013-09-12T12:45:17.840 回答
0

尝试清理您的项目并重建它,并通过设置确保该图标仍然存在于捆绑资源中。

于 2013-09-12T12:24:13.013 回答
0

尝试从模拟器中删除您的应用程序并清理您的项目并最后重新运行您的应用程序。

于 2013-09-12T12:21:18.870 回答