Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Unity] Bug: 打包ios之后低版本ios崩溃 #1601

Open
1 task done
fuhongpu3299 opened this issue Nov 22, 2023 · 5 comments
Open
1 task done

[Unity] Bug: 打包ios之后低版本ios崩溃 #1601

fuhongpu3299 opened this issue Nov 22, 2023 · 5 comments
Assignees
Labels
bug Something isn't working Unity

Comments

@fuhongpu3299
Copy link

fuhongpu3299 commented Nov 22, 2023

前置阅读 | Pre-reading

Puer的版本 | Puer Version

2.0.3

Unity的版本 | Unity Version

2021.3.1f1c

发生在哪个平台 | Platform

iOS

错误信息 | Error Message

image
经过打印跟踪崩溃在这个位置
image
PuertsDLL.InvokeJSFunction(nativeJsFuncPtr, true);

问题重现 | Bug reproduce

只在ios13以下出现

Tasks

@fuhongpu3299 fuhongpu3299 added bug Something isn't working Unity labels Nov 22, 2023
@chexiongsheng
Copy link
Collaborator

有没可能是你打包ipa时,选的就是高版本的ios了?

@fuhongpu3299
Copy link
Author

有没可能是你打包ipa时,选的就是高版本的ios了?

并不是的,打包选择的办事ios12,而且我跑的官网的demo也是在一个地方崩溃的,
尝试了,就是promies.mjs里global.__tgjsSetPromiseRejectCallback(promiseRejectHandler)这个函数报错的

@fuhongpu3299
Copy link
Author

fuhongpu3299 commented Nov 23, 2023

有没可能是你打包ipa时,选的就是高版本的ios了?

image
image

我跑官网demo的时候这里事ios11,我自己项目里是12.

@chexiongsheng
Copy link
Collaborator

那我估计是v8的编译得加上ios版本限定参数:ios_deployment_target=12 , 加的位置在这里:https://github.com/puerts/backend-v8/blob/master/ios.sh#L33C8-L33C8
你可以加上在你本地重新编译一下v8库,然后重新构建个plugin。

@chexiongsheng
Copy link
Collaborator

也不一定需要本地搭环境编译v8,可以试试fork一个,修改后在github一键出包

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Unity
Projects
None yet
Development

No branches or pull requests

3 participants