Skip to content

上架App Store或Testflight下载的app,会出现渲染失败;AdHoc或编译运行可以正常渲染 #392

@SoonKong

Description

@SoonKong

描述

项目采用的是swift,采用Pod接入Hummer后,上架App Store或Testflight下载的app,会出现渲染失败,报错:

Error Domain=HMJSContextErrorDomain Code=1000 "Hummer.render() function is not called" UserInfo={NSLocalizedDescription=Hummer.render() function is not called}

但导出AdHoc或编译运行是可以正常渲染;采用release编译运行也可以正常

Hummer version:

0.2.8

复现步骤

1、前端代码:通过 hummer init 创建 ts 项目
2、iOS项目代码:Xcode创建最简单的干净项目(采用Swift语言),
3、Pod 接入 hummer

pod 'Hummer', :git => 'https://github.com/didi/Hummer.git', :branch => 'master', :subspecs => ["Hermes", "OSSYoga"]

4、部署前端 hummer 服务
5、编译运行iOS项目,可以正常打开hummer页面
6、打包后上传(不需要提审)
7、缓存更新后,通过Testflight下载
8、运行app,打开Hummer的页面,出现渲染失败

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions