最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

和Mac下发布App有关的知识

Mac crifan 1881浏览 0评论

1. 参考资料:

Know the Core Objects of Your App – The App Bundle

其中,关于发布app之前,整个项目所包含的文件及其相关作用为:

A typical app bundle

File

Example

Description

App executable

MyApp

The executable file contains your app’s compiled code. The name of your app’s executable file is the same as your app name minus the .app extension.

This file is required.

The information property list file

Info.plist

The Info.plist file contains configuration data for the app. The system uses this data to determine how to interact with the app.

This file is required and must be called Info.plist. .

App icons

Icon.png

[email protected]

Icon-Small.png

[email protected]

Your app icon is used to represent your app on the device’s Home screen. Other icons are used by the system in appropriate places. Icons with @2x in their filename are intended for devices with Retina displays.

An app icon is required.

Launch images

Default.png

Default-Portrait.png

Default-Landscape.png

The system uses this file as a temporary background while your app is launching. It is removed as soon as your app is ready to display its user interface.

At least one launch image is required.

Storyboard files (or nib files)

MainBoard.storyboard

Storyboards contain the views and view controllers that the app presents on screen. Views in a storyboard are organized according to the view controller that presents them. Storyboards also identify the transitions (called segues) that take the user from one set of views to another.

The name of the main storyboard file is set by Xcode when you create your project. You can change the name by assigning a different value to the NSMainStoryboardFile key in the Info.plist file. Apps that use nib files instead of storyboards can replace the NSMainStoryboardFile key with the NSMainNibFile key and use that key to specify their main nib file.

The use of storyboards is optional but recommended.

Ad hoc distribution icon

iTunesArtwork

If you are distributing your app ad hoc, include a 512 x 512 pixel version of your app icon. This icon is normally provided by the App Store from the materials you submit to iTunes Connect. However, because apps distributed ad hoc do not go through the App Store, your icon must be present in your app bundle instead. iTunes uses this icon to represent your app. (The file you specify should be the same one you would have submitted to the App Store, if you were distributing your app that way.)

The filename of this icon must be iTunesArtwork and must not include a filename extension. This file is required for ad hoc distribution but is optional otherwise.

Settings bundle

Settings.bundle

If you want to expose custom app preferences through the Settings app, you must include a settings bundle. This bundle contains the property list data and other resource files that define your app preferences. The Settings app uses the information in this bundle to assemble the interface elements required by your app.

This bundle is optional.

Nonlocalized resource files

sun.png

mydata.plist

Nonlocalized resources include things like images, sound files, movies, and custom data files that your app uses. All of these files should be placed at the top level of your app bundle.

Subdirectories for localized resources

en.lproj

fr.lproj

es.lproj

Localized resources must be placed in language-specific project directories, the names for which consist of an ISO 639-1 language abbreviation plus the .lproj suffix. (For example, the en.lproj, fr.lproj, and es.lproj directories contain resources localized for English, French, and Spanish.)

An iOS app should be internationalized and have a language.lproj directory for each language it supports. In addition to providing localized versions of your app’s custom resources, you can also localize your app icon, launch images, and Settings icon by placing files with the same name in your language-specific project directories.

 

关于发布app到App Store要做的准备工作,可参考:

Prepare for App Store Submission

转载请注明:在路上 » 和Mac下发布App有关的知识

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
82 queries in 0.193 seconds, using 22.04MB memory