j***@163.com
j***@163.com
  • 发布:2020-08-04 15:50
  • 更新:2024-05-29 13:25
  • 阅读:1615

【报Bug】ios 离线打包sdk包缺少weex-main-jsfm.js 文件,导致app启动后白屏

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

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

HBuilderX类型: 正式

HBuilderX版本号: 2.8.3

手机系统: iOS

手机系统版本号: iOS 13.4

手机厂商: 苹果

手机机型: 7 plus

页面类型: vue

打包方式: 离线

项目创建方式: HBuilderX

操作步骤:

下的2.8.3的sdk包,然后吧离线打包资源放在pandora,改了所有的id、name、version code、version name,启动页面、logo。然后运行

预期结果:

预期肯定是正常最好,但是只有启动页能看到,后面白屏,官方文档好多,但是都是很笼统还不全,只有两个文章强调要引入weex-main-jsfm文件,这时候我都已经折腾好久了。而且也没说文件在哪,SDK文件夹下我找了没有。

实际结果:

只有启动页能看,然后就白屏

bug描述:

下载的iOS 离线打包sdk中没有weex-main-jsfm.js 全剧搜了一下,根本没这个文件,运行app之后,过了启动页就一直白屏。
下面是报错信息

2020-08-04 15:44:35.137556+0800 MedPeer[44878:2037069] ######===>>>>New Device Model:[x86_64]
2020-08-04 15:44:35.141460+0800 MedPeer[44878:2038141] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2020-08-04 15:44:35.141586+0800 MedPeer[44878:2038141] [Client] Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2020-08-04 15:44:35.141725+0800 MedPeer[44878:2037069] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2020-08-04 15:44:35.142119+0800 MedPeer[44878:2037069] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2020-08-04 15:44:35.142176+0800 MedPeer[44878:2038141] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2020-08-04 15:44:35.142622+0800 MedPeer[44878:2037069] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2020-08-04 15:44:35.142716+0800 MedPeer[44878:2038141] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2020-08-04 15:44:35.217132+0800 MedPeer[44878:2037069] [Runtime][DEBUG:] ##CoreApp##...app start load..
2020-08-04 15:44:35.242691+0800 MedPeer[44878:2037069] -canOpenURL: failed for URL: "hbuilder://" - error: "未能完成操作。(OSStatus错误-10814。)"
2020-08-04 15:44:35.242853+0800 MedPeer[44878:2037069] [Runtime][DEBUG:] ##CoreApp##...createAppRuntime..
2020-08-04 15:44:35.282264+0800 MedPeer[44878:2038141] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2020-08-04 15:44:35.282396+0800 MedPeer[44878:2038141] [Client] Updating selectors after delegate removal failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2020-08-04 15:44:35.340736+0800 MedPeer[44878:2037069] [Runtime][DEBUG:] splash screen 需要自动关闭
2020-08-04 15:44:35.393218+0800 MedPeer[44878:2037069] [Runtime][DEBUG:] core started
2020-08-04 15:44:35.393868+0800 MedPeer[44878:2038237] [Runtime][INFO:] Started HTTP server on ip local. port 13131
2020-08-04 15:44:35.397500+0800 MedPeer[44878:2037069] [Runtime][DEBUG:] ##CoreApp##...createAppWindow..
2020-08-04 15:44:35.400684+0800 MedPeer[44878:2037069] [Runtime][DEBUG:] ##CoreApp##...创建首页..
2020-08-04 15:44:35.612009+0800 MedPeer[44878:2037069] WF: === Starting WebFilter logging for process MedPeer
2020-08-04 15:44:35.612119+0800 MedPeer[44878:2037069] WF: _userSettingsForUser : (null)
2020-08-04 15:44:35.612203+0800 MedPeer[44878:2037069] WF: _WebFilterIsActive returning: NO
2020-08-04 15:44:35.667243+0800 MedPeer[44878:2037069] [Runtime][DEBUG:] show NWindow--[1]
2020-08-04 15:44:35.672023+0800 MedPeer[44878:2037069] [Runtime][INFO:] refreshWhitePageCheckWebview---evt[3]---[<PDRCoreAppFrame: 0x7fbcf882a000; frame = (0 0; 414 896); clipsToBounds = YES; layer = <CALayer: 0x60000009c180>>]
2020-08-04 15:44:35.672409+0800 MedPeer[44878:2037069] [Runtime][INFO:] Archiver file fullPath /Users/jiaoyaxin/Library/Developer/CoreSimulator/Devices/56FC8B2F-8552-4FDF-B704-2002EACF2B19/data/Containers/Data/Application/C393954B-F1F8-4B7F-8534-AACCF0C1A9E5/Library/Pandora/apps/UNI479293C/data/download.plist
2020-08-04 15:44:35.672911+0800 MedPeer[44878:2037069] [Runtime][INFO:] Archiver file fullPath /Users/jiaoyaxin/Library/Developer/CoreSimulator/Devices/56FC8B2F-8552-4FDF-B704-2002EACF2B19/data/Containers/Data/Application/C393954B-F1F8-4B7F-8534-AACCF0C1A9E5/Library/Pandora/apps/UNI479293C/data/upload.plist
2020-08-04 15:44:35.678071+0800 MedPeer[44878:2037069] <Weex>[error]script_bridge.h:168, <WeexCore> xxx set_core_side is runing and 0x600000210c70
2020-08-04 15:44:35.680112+0800 MedPeer[44878:2037069] <Weex>[log]WXSDKInstance.m:503, Start rendering page:app-service.js
2020-08-04 15:44:35.772273+0800 MedPeer[44878:2038211] <Weex>[error]WXBridgeContext.m:1310, jsLog: TypeError: null is not an object (evaluating 'e.resolutionWidth') ERROR
2020-08-04 15:44:35.773949+0800 MedPeer[44878:2038211] <Weex>[error]WXBridgeContext.m:1310, jsLog: SyntaxError: JSON Parse error: Unexpected token '('
ERROR
2020-08-04 15:44:37.368422+0800 MedPeer[44878:2037069] [Runtime][INFO:] checkCurwebviewWhiteCheck---[1]
2020-08-04 15:44:37.368554+0800 MedPeer[44878:2037069] [Runtime][INFO:] check webview enable white check--[1]--manifesttarget [1]
2020-08-04 15:44:37.368645+0800 MedPeer[44878:2037069] [Runtime][INFO:] webviewWhiteCheck--Enable---[1]
2020-08-04 15:44:37.411746+0800 MedPeer[44878:2038237] [Runtime][INFO:] Bonjour Service Published: domain(local.) type(_http._tcp.) name(焦亚鑫的MacBook Pro (2))
2020-08-04 15:44:37.621737+0800 MedPeer[44878:2037069] [Runtime][INFO:] ###whiteCheckTimerSel----[<PDRCoreAppFrame: 0x7fbcf882a000; frame = (0 0; 414 862); clipsToBounds = YES; layer = <CALayer: 0x60000009c180>>]
2020-08-04 15:44:37.726041+0800 MedPeer[44878:2038140] [Runtime][INFO:] >>>>>>>>>>>>>>>>>>>>>>>>>>白屏 ---[0]---name-[1]--result-[1]
2020-08-04 15:44:37.869748+0800 MedPeer[44878:2037069] [Runtime][INFO:] ###whiteCheckTimerSel----[<PDRCoreAppFrame: 0x7fbcf882a000; frame = (0 0; 414 862); clipsToBounds = YES; layer = <CALayer: 0x60000009c180>>]
2020-08-04 15:44:37.957369+0800 MedPeer[44878:2038140] [Runtime][INFO:] >>>>>>>>>>>>>>>>>>>>>>>>>>白屏 ---[0]---name-[1]--result-[1]
2020-08-04 15:44:38.118934+0800 MedPeer[44878:2037069] [Runtime][INFO:] ###whiteCheckTimerSel----[<PDRCoreAppFrame: 0x7fbcf882a000; frame = (0 0; 414 862); clipsToBounds = YES; layer = <CALayer: 0x60000009c180>>]
2020-08-04 15:44:38.213010+0800 MedPeer[44878:2038140] [Runtime][INFO:] >>>>>>>>>>>>>>>>>>>>>>>>>>白屏 ---[0]---name-[1]--result-[1]
2020-08-04 15:44:38.369269+0800 MedPeer[44878:2037069] [Runtime][INFO:] ###whiteCheckTimerSel----[<PDRCoreAppFrame: 0x7fbcf882a000; frame = (0 0; 414 862); clipsToBounds = YES; layer = <CALayer: 0x60000009c180>>]
2020-08-04 15:44:38.471061+0800 MedPeer[44878:2038140] [Runtime][INFO:] >>>>>>>>>>>>>>>>>>>>>>>>>>白屏 ---[0]---name-[1]--result-[1]
2020-08-04 15:44:38.619891+0800 MedPeer[44878:2037069] [Runtime][INFO:] ###whiteCheckTimerSel----[<PDRCoreAppFrame: 0x7fbcf882a000; frame = (0 0; 414 862); clipsToBounds = YES; layer = <CALayer: 0x60000009c180>>]
2020-08-04 15:44:38.712683+0800 MedPeer[44878:2038140] [Runtime][INFO:] >>>>>>>>>>>>>>>>>>>>>>>>>>白屏 ---[0]---name-[1]--result-[1]
2020-08-04 15:44:38.869670+0800 MedPeer[44878:2037069] [Runtime][INFO:] ###whiteCheckTimerSel----[<PDRCoreAppFrame: 0x7fbcf882a000; frame = (0 0; 414 862); clipsToBounds = YES; layer = <CALayer: 0x60000009c180>>]
2020-08-04 15:44:38.969403+0800 MedPeer[44878:2038140] [Runtime][INFO:] >>>>>>>>>>>>>>>>>>>>>>>>>>白屏 ---[0]---name-[1]--result-[1]
2020-08-04 15:44:39.119451+0800 MedPeer[44878:2037069] [Runtime][INFO:] ###whiteCheckTimerSel----[<PDRCoreAppFrame: 0x7fbcf882a000; frame = (0 0; 414 862); clipsToBounds = YES; layer = <CALayer: 0x60000009c180>>]
2020-08-04 15:44:39.217459+0800 MedPeer[44878:2038140] [Runtime][INFO:] >>>>>>>>>>>>>>>>>>>>>>>>>>白屏 ---[0]---name-[1]--result-[1]
2020-08-04 15:44:39.369776+0800 MedPeer[44878:2037069] [Runtime][INFO:] ###whiteCheckTimerSel----[<PDRCoreAppFrame: 0x7fbcf882a000; frame = (0 0; 414 862); clipsToBounds = YES; layer = <CALayer: 0x60000009c180>>]
2020-08-04 15:44:39.468995+0800 MedPeer[44878:2038140] [Runtime][INFO:] >>>>>>>>>>>>>>>>>>>>>>>>>>白屏 ---[0]---name-[1]--result-[1]
2020-08-04 15:44:39.619893+0800 MedPeer[44878:2037069] [Runtime][INFO:] ###whiteCheckTimerSel----[<PDRCoreAppFrame: 0x7fbcf882a000; frame = (0 0; 414 862); clipsToBounds = YES; layer = <CALayer: 0x60000009c180>>]
2020-08-04 15:44:39.716196+0800 MedPeer[44878:2038140] [Runtime][INFO:] >>>>>>>>>>>>>>>>>>>>>>>>>>白屏 ---[0]---name-[1]--result-[1]
2020-08-04 15:44:39.868857+0800 MedPeer[44878:2037069] [Runtime][INFO:] ###whiteCheckTimerSel----[<PDRCoreAppFrame: 0x7fbcf882a000; frame = (0 0; 414 862); clipsToBounds = YES; layer = <CALayer: 0x60000009c180>>]
2020-08-04 15:44:39.930268+0800 MedPeer[44878:2038140] [Runtime][INFO:] >>>>>>>>>>>>>>>>>>>>>>>>>>白屏 ---[0]---name-[1]--result-[1]
2020-08-04 15:44:40.118992+0800 MedPeer[44878:2037069] [Runtime][INFO:] ###whiteCheckTimerSel----[<PDRCoreAppFrame: 0x7fbcf882a000; frame = (0 0; 414 862); clipsToBounds = YES; layer = <CALayer: 0x60000009c180>>]
2020-08-04 15:44:40.184411+0800 MedPeer[44878:2038140] [Runtime][INFO:] >>>>>>>>>>>>>>>>>>>>>>>>>>白屏 ---[0]---name-[1]--result-[1]
2020-08-04 15:44:40.368951+0800 MedPeer[44878:2037069] [Runtime][INFO:] ###whiteCheckTimerSel----[<PDRCoreAppFrame: 0x7fbcf882a000; frame = (0 0; 414 862); clipsToBounds = YES; layer = <CALayer: 0x60000009c180>>]
2020-08-04 15:44:40.432164+0800 MedPeer[44878:2038140] [Runtime][INFO:] >>>>>>>>>>>>>>>>>>>>>>>>>>白屏 ---[0]---name-[1]--result-[1]
2020-08-04 15:44:40.619352+0800 MedPeer[44878:2037069] [Runtime][INFO:] ###whiteCheckTimerSel----[<PDRCoreAppFrame: 0x7fbcf882a000; frame = (0 0; 414 862); clipsToBounds = YES; layer = <CALayer: 0x60000009c180>>]
2020-08-04 15:44:40.718760+0800 MedPeer[44878:2038140] [Runtime][INFO:] >>>>>>>>>>>>>>>>>>>>>>>>>>白屏 ---[0]---name-[1]--result-[1]
2020-08-04 15:44:40.869471+0800 MedPeer[44878:2037069] [Runtime][INFO:] ###whiteCheckTimerSel----[<PDRCoreAppFrame: 0x7fbcf882a000; frame = (0 0; 414 862); clipsToBounds = YES; layer = <CALayer: 0x60000009c180>>]
2020-08-04 15:44:40.967241+0800 MedPeer[44878:2038140] [Runtime][INFO:] >>>>>>>>>>>>>>>>>>>>>>>>>>白屏 ---[0]---name-[1]--result-[1]
2020-08-04 15:44:41.118932+0800 MedPeer[44878:2037069] [Runtime][INFO:] ###whiteCheckTimerSel----[<PDRCoreAppFrame: 0x7fbcf882a000; frame = (0 0; 414 862); clipsToBounds = YES; layer = <CALayer: 0x60000009c180>>]
2020-08-04 15:44:41.215409+0800 MedPeer[44878:2038140] [Runtime][INFO:] >>>>>>>>>>>>>>>>>>>>>>>>>>白屏 ---[0]---name-[1]--result-[1]
2020-08-04 15:44:41.369923+0800 MedPeer[44878:2037069] [Runtime][INFO:] ###whiteCheckTimerSel----[<PDRCoreAppFrame: 0x7fbcf882a000; frame = (0 0; 414 862); clipsToBounds = YES; layer = <CALayer: 0x60000009c180>>]
2020-08-04 15:44:41.467419+0800 MedPeer[44878:2038140] [Runtime][INFO:] >>>>>>>>>>>>>>>>>>>>>>>>>>白屏 ---[0]---name-[1]--result-[1]
2020-08-04 15:44:41.619272+0800 MedPeer[44878:2037069] [Runtime][INFO:] ###whiteCheckTimerSel----[<PDRCoreAppFrame: 0x7fbcf882a000; frame = (0 0; 414 862); clipsToBounds = YES; layer = <CALayer: 0x60000009c180>>]
2020-08-04 15:44:41.710390+0800 MedPeer[44878:2037069] [Runtime][DEBUG:] doSplashTimeout
2020-08-04 15:44:41.710641+0800 MedPeer[44878:2037069] [Runtime][INFO:] ##destoryWhitePageCheckTimer--[<PDRCoreAppFrame: 0x7fbcf882a000; frame = (0 0; 414 862); clipsToBounds = YES; layer = <CALayer: 0x60000009c180>>]---[<__NSCFTimer: 0x60000353c780>]
2020-08-04 15:44:41.711367+0800 MedPeer[44878:2037069] [Runtime][DEBUG:] core handle startparam end
2020-08-04 15:44:41.711669+0800 MedPeer[44878:2037069] [Runtime][DEBUG:] closeSplashscreen
2020-08-04 15:44:41.713460+0800 MedPeer[44878:2037069] [Runtime][DEBUG:] -----deviceid+BAC39E47-D79C-44F8-9D0C-DE3BB36AB66C
2020-08-04 15:44:41.726098+0800 MedPeer[44878:2038140] [Runtime][INFO:] >>>>>>>>>>>>>>>>>>>>>>>>>>白屏 ---[0]---name-[1]--result-[1]

2020-08-04 15:50 负责人:无 分享
已邀请:
j***@163.com

j***@163.com (作者) - yyy

没人的吗

j***@163.com

j***@163.com (作者) - yyy

dddd

h***@qq.com

h***@qq.com

我也遇到了 不知道楼主解决了吗:
2021-08-13 16:11:17.707287+0800 HBuilder[40838:16335604] -canOpenURL: failed for URL: "taobao://" - error: "This app is not allowed to query for scheme taobao"
2021-08-13 16:11:17.708239+0800 HBuilder[40838:16335604] -canOpenURL: failed for URL: "kwai://" - error: "This app is not allowed to query for scheme kwai"
2021-08-13 16:11:17.709126+0800 HBuilder[40838:16335604] -canOpenURL: failed for URL: "awemesso://" - error: "This app is not allowed to query for scheme awemesso"
2021-08-13 16:11:17.710112+0800 HBuilder[40838:16335604] -canOpenURL: failed for URL: "pinduoduo://" - error: "This app is not allowed to query for scheme pinduoduo"
2021-08-13 16:11:17.711118+0800 HBuilder[40838:16335604] -canOpenURL: failed for URL: "openApp.jdMobile://" - error: "This app is not allowed to query for scheme openapp.jdmobile"
2021-08-13 16:11:17.732843+0800 HBuilder[40838:16335604] ######===>>>>New Device Model:[iPhone12,1]
2021-08-13 16:11:17.861398+0800 HBuilder[40838:16335806] [Client] Updating selectors after delegate removal failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 86 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 86 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}

  • 大树_

    朋友,解决没?

    2023-03-27 15:53

xiaoshitou

xiaoshitou

我也遇到了,解决了吗?

5***@qq.com

5***@qq.com - 业余dcloud开发

解决了吗?

要回复问题请先登录注册