5***@qq.com
5***@qq.com
  • 发布:2024-08-10 10:25
  • 更新:2024-08-28 17:01
  • 阅读:172

【报Bug】iOS运行白屏

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: window10

HBuilderX类型: 正式

HBuilderX版本号: 4.24

手机系统: iOS

手机系统版本号: iOS 15

手机厂商: 苹果

手机机型: iphone 7 plus

页面类型: vue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

/ 5+App特有相关 /
"app-plus" : {
"usingComponents" : true,
"nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3,
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
"autoclose" : true,
"delay" : 0
},
"safearea" : {
//可选,JSON对象,安全区域配置
"bottom" : {
//可选,JSON对象,底部安全区域配置
"offset" : "none" //可选,字符串类型,安全区域偏移值,可取值auto、none
}
},
// "left": { //可选,JSON对象,左侧安全区域配置
// "offset": "none" //可选,字符串类型,安全区域偏移值,可取值auto、none
// },
// "right": { //可选,JSON对象,左侧安全区域配置
// "offset": "none" //可选,字符串类型,安全区域偏移值,可取值auto、none
// }
/ 模块配置 /
"modules" : {
"Barcode" : {},
"Camera" : {}
},
/ 应用发布信息 /
"distribute" : {
/ android打包配置 /
"android" : {
"permissions" : [
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
],
"minSdkVersion" : "21",
"targetSdkVersion" : "",
"abiFilters" : [ "armeabi-v7a" ]
},
/ ios打包配置 /
"ios" : {
"appid" : "com.daoxiplm.fsyt-mc",
// "mobileprovision" : "/Users/jtp/jtp/work/ios-certificate/develop/fsytmcdevelop.mobileprovision",
// "p12" : "/Users/jtp/jtp/work/ios-certificate/develop/cccd700d53e3452f98c177bc6b76e370.p12",
// "password" : "Daoxi123456",
"devices" : "iphone",
"privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "上传服装搭配图",
"NSPhotoLibraryAddUsageDescription" : "拍摄服装搭配图",
"NSCameraUsageDescription" : "扫码,拍摄服装搭配图"
},
"dSYMs" : false,
"idfa" : false
},
/ SDK配置 /
"sdkConfigs" : {
"ad" : {},
"oauth" : {}
},
"icons" : {
"android" : {
"hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
},
"ios" : {
"appstore" : "unpackage/res/icons/1024x1024.png",
"iphone" : {
"app@2x" : "unpackage/res/icons/120x120.png",
"app@3x" : "unpackage/res/icons/180x180.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"settings@3x" : "unpackage/res/icons/87x87.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"notification@3x" : "unpackage/res/icons/60x60.png"
},
"ipad" : {
"app" : "unpackage/res/icons/76x76.png",
"app@2x" : "unpackage/res/icons/152x152.png",
"notification" : "unpackage/res/icons/20x20.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png"
}
}
}
}

操作步骤:

1

预期结果:

1

实际结果:

1

bug描述:

hb3.99云打包发布ios,打开正常
hb4.24打包,打开之后,页面白屏;tabbar正常

2024-08-10 10:25 负责人:无 分享
已邀请:
BFC

BFC

你好,可以参考这个首页白屏,只有显示底部tabbar帖子,看下是否相关逻辑阻塞了。 如何还是不行,可以试试官网的demo项目 hello-uniapp,看下是否正常

4***@qq.com

4***@qq.com

解决没有,找到什么问题了吗,我这边也是一样的问题,4.23都正常,4.24部分iOS打开白屏,白屏的机器系统版本都是15或者16,17没有问题。

  • 4***@qq.com

    请问解决了么,这边也遇到同样问题了

    2024-09-30 16:18

Big_Shark

Big_Shark

问题处理好了吗

要回复问题请先登录注册