如何重新生成iPhone Xcode info.plist文件

Atm*_*tma 6 iphone xcode plist

我已将iPhone应用程序从一台机器移动到另一台机器.在这个过程中,我的info.plist文件似乎有一个坏的包标识符,并且无法正常工作.我想为我的项目创建一个全新的info.plist文件.

我怎样才能做到这一点?

Far*_*ler 7

这是一个干净的info.plist给你.不要忘记替换xxx.yyy,并重命名xib文件(如果需要)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>CFBundleDevelopmentRegion</key>
    <string>English</string>
    <key>CFBundleDisplayName</key>
    <string>${PRODUCT_NAME}</string>
    <key>CFBundleExecutable</key>
    <string>${EXECUTABLE_NAME}</string>
    <key>CFBundleIconFile</key>
    <string>Icon.png</string>
    <key>CFBundleIdentifier</key>
    <string>xxx.yyy.${PRODUCT_NAME:rfc1034identifier}</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>${PRODUCT_NAME}</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleVersion</key>
    <string>1.0</string>
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>NSMainNibFile</key>
    <string>MainWindow</string>
</dict>
</plist>
Run Code Online (Sandbox Code Playgroud)


Kob*_*ski 5

如果你只想要一个空的 info.plist 文件,那么只需在 XCode 的“文件”菜单上选择“新建文件...”。

在“新建文件”窗口中,您选择左侧的“其他”,然后选择右侧的“属性列表”。