美文网首页
Xcode13 Info.plist文件恢复

Xcode13 Info.plist文件恢复

作者: 清风_____ | 来源:发表于2022-08-15 15:41 被阅读0次

    一、xcdoe13 中Info.plist

    列表文件内容变少


    截屏2022-08-16 15.29.03.png

    其他配置:target - Info


    截屏2022-08-16 15.29.19.png
    打包时Xcode会自动合并Info.plist文件 和 target - Info 里面的配置,并将合并后的Info.plist放在.app目录中。

    二、 Info.plist恢复以前

    1. BuildSetting - Generate Info.plist File设置为NO,关闭打包合并功能。


      截屏2022-08-16 15.43.10.png

    2.修改Info.plist文件为下列代码(旧版本Info.plist文件)

    <?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>CFBundleExecutable</key>
         <string>YourAppName</string>
         <key>CFBundleIdentifier</key>
         <string>com.YourName.YourAppName</string>
         <key>CFBundleName</key>
         <string>YourAppName</string>
         <key>CFBundleShortVersionString</key>
         <string>1.0</string>
         <key>CFBundleVersion</key>
         <string>1</string>
         <key>LSRequiresIPhoneOS</key>
         <true/>
         <key>UIApplicationSceneManifest</key>
         <dict>
             <key>UIApplicationSupportsMultipleScenes</key>
             <false/>
         </dict>
         <key>UIApplicationSupportsIndirectInputEvents</key>
         <true/>
         <key>UILaunchScreen</key>
         <dict>
             <key>UILaunchScreen</key>
             <dict/>
         </dict>
         <key>UISupportedInterfaceOrientations~ipad</key>
         <array>
             <string>UIInterfaceOrientationPortrait</string>
             <string>UIInterfaceOrientationPortraitUpsideDown</string>
             <string>UIInterfaceOrientationLandscapeLeft</string>
             <string>UIInterfaceOrientationLandscapeRight</string>
         </array>
         <key>UISupportedInterfaceOrientations~iphone</key>
         <array>
             <string>UIInterfaceOrientationPortrait</string>
             <string>UIInterfaceOrientationLandscapeLeft</string>
             <string>UIInterfaceOrientationLandscapeRight</string>
         </array>
    </dict>
    </plist>
    

    3.关闭Xcode重新进入,使这些修改生效。

    https://weibo.com/ttarticle/p/show?id=2309634762338967289881

    相关文章

      网友评论

          本文标题:Xcode13 Info.plist文件恢复

          本文链接:https://www.haomeiwen.com/subject/fezrgrtx.html