xcode 启动屏幕imageView未在模拟器中显示在iPhone 12上

afdcj2ne  于 2023-02-25  发布在  其他
关注(0)|答案(2)|浏览(139)

我在应用程序上设置了一个启动脚本,它包含一个基本的imageView,其中包含来自我的资产目录的PNG图像,该图像与应用程序其余部分的背景相同。
在Xcode的最新更新之前,一切都运行得很好。现在我的启动屏幕只在模拟器中的iPhone 12设备上变黑了。我有一个XR作为物理设备,那里一切都很好,模拟器中的其他设备也是如此。
我试过在imageView中放置其他图片,以便在LaunchScreen上进行测试,它们在iPhone 12上看起来很好。只是我用作背景的图片不起作用。我还在查找器中重命名了该文件,并将其放入资产目录。仍然不起作用。
我已经确保指定适当的屏幕作为我的启动屏幕下的一般标签在我的目标设置以及。
我错过什么了吗?

trnvg8h3

trnvg8h31#

1- Download iOS 14.0 Support Files
2 -解压
3 -将解压缩文件夹放入路径:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

重新启动Xcode

8i9zcol2

8i9zcol22#

{
  "title": "2C335585-C46D-47E7-965B-F524EC6841E6.jpg",
  "description": "",
  "imageViews": "12",
  "creationTime": {
    "timestamp": "1659526243",
    "formatted": "3 de ago. de 2022, 11:30:43 UTC"
  },
  "photoTakenTime": {
    "timestamp": "1659525936",
    "formatted": "3 de ago. de 2022, 11:25:36 UTC"
  },
  "geoData": {
    "latitude": 0.0,
    "longitude": 0.0,
    "altitude": 0.0,
    "latitudeSpan": 0.0,
    "longitudeSpan": 0.0
  },
  "geoDataExif": {
    "latitude": 0.0,
    "longitude": 0.0,
    "altitude": 0.0,
    "latitudeSpan": 0.0,
    "longitudeSpan": 0.0
  },
  "url": "https://lh3.googleusercontent.com/oOK8nzTrSKcxo7RMyJOBCn8FSKSPh_Bk2yRpQu9geaOXjdP7qLJCeJ84y6srMx21gJga4-E7cCpmoAfZKXCqDoew9O_WCsnJjl6w7F87",
  "googlePhotosOrigin": {
    "mobileUpload": {
      "deviceType": "IOS_PHONE"
    }
  },
  "photoLastModifiedTime": {
    "timestamp": "1673202471",
    "formatted": "8 de jan. de 2023, 18:27:51 UTC"
  }
}

相关问题