简体   繁体   中英

Why can't I see my app icon on iOS simulator?

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; };

It is because you delete .info because info plist file may content info related to your application icons and application name

This file is load application name and icons now you delete this file so it not able to load application name and icon name

if you find error "Couldn't find Info.plist file" than refer this links

can't find info.plist in xcode 4

Adding Info.plist in a XCode project

these may help you some how but don't delete info.plist

now crate new project and copy info.plist and add in you current project. or you can recreate info.plist file by refering this link How to regenerate an iPhone Xcode info.plist file hope this may help you.

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM