Xcode13 Info.plist文件恢复

一、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文件)





     CFBundleExecutable
     YourAppName
     CFBundleIdentifier
     com.YourName.YourAppName
     CFBundleName
     YourAppName
     CFBundleShortVersionString
     1.0
     CFBundleVersion
     1
     LSRequiresIPhoneOS
     
     UIApplicationSceneManifest
     
         UIApplicationSupportsMultipleScenes
         
     
     UIApplicationSupportsIndirectInputEvents
     
     UILaunchScreen
     
         UILaunchScreen
         
     
     UISupportedInterfaceOrientations~ipad
     
         UIInterfaceOrientationPortrait
         UIInterfaceOrientationPortraitUpsideDown
         UIInterfaceOrientationLandscapeLeft
         UIInterfaceOrientationLandscapeRight
     
     UISupportedInterfaceOrientations~iphone
     
         UIInterfaceOrientationPortrait
         UIInterfaceOrientationLandscapeLeft
         UIInterfaceOrientationLandscapeRight
     


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

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

你可能感兴趣的:(Xcode13 Info.plist文件恢复)