帖子
帖子
用户
博客
课程
12下一页
返回列表 发新帖
显示全部楼层
1
帖子
0
勋章
16
Y币

[superwebview] iOS版加了引擎之后无法编译【真机】

[复制链接]
发表于 2021-7-19 16:16:47
本帖最后由 纯文本_ 于 2021-7-19 17:13 编辑

项目时在官方demo(demo可以正常运行)上修改的,加了官方的db模块。

真机运行, 报错信息如下:
[color=rgba(0, 0, 0, 0.85)]ld: warning: Could not find or use auto-linked framework 'UniformTypeIdentifiers'
[color=rgba(0, 0, 0, 0.85)]ld: warning: Could not find or use auto-linked framework 'AVFAudio'
[color=rgba(0, 0, 0, 0.85)]Undefined symbols for architecture armv7:
[color=rgba(0, 0, 0, 0.85)]  "vtable for std:ut_of_range", referenced from:
[color=rgba(0, 0, 0, 0.85)]      std:ut_of_range:ut_of_range(char const*) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
[color=rgba(0, 0, 0, 0.85)]  "std:ut_of_range::~out_of_range()", referenced from:
[color=rgba(0, 0, 0, 0.85)]      std::__1::__throw_out_of_range(car const*) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]  "std::length_error::~length_error()", referenced from:
[color=rgba(0, 0, 0, 0.85)]      std::__1::__throw_length_error(char const*) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      std::__1::__throw_length_error(char const*) in libAPICloud.a(YGNode.o)
[color=rgba(0, 0, 0, 0.85)]  "___cxa_allocate_exception", referenced from:
[color=rgba(0, 0, 0, 0.85)]      std::__1::__throw_out_of_range(char const*) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      std::__1::__throw_length_error(char const*) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      std::__1::__throw_length_error(char const*) in libAPICloud.a(YGNode.o)
[color=rgba(0, 0, 0, 0.85)]  "typeinfo for std::length_error", referenced from:
[color=rgba(0, 0, 0, 0.85)]      std::__1::__throw_length_error(char const*) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      std::__1::__throw_length_error(char const*) in libAPICloud.a(YGNode.o)
[color=rgba(0, 0, 0, 0.85)]  "___cxa_throw", referenced from:
[color=rgba(0, 0, 0, 0.85)]      std::__1::__throw_out_of_range(char const*) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      std::__1::__throw_length_error(char const*) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      std::__1::__throw_length_error(char const*) in libAPICloud.a(YGNode.o)
[color=rgba(0, 0, 0, 0.85)]  "___cxa_free_exception", referenced from:
[color=rgba(0, 0, 0, 0.85)]      std::__1::__throw_out_of_range(char const*) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      std::__1::__throw_length_error(char const*) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      std::__1::__throw_length_error(char const*) in libAPICloud.a(YGNode.o)
[color=rgba(0, 0, 0, 0.85)]  "std::__1::__vector_base_common<true>::__throw_length_error() const", referenced from:
[color=rgba(0, 0, 0, 0.85)]      YGNodelayoutImpl(YGNode*, float, float, YGDirection, YGMeasureMode, YGMeasureMode, float, float, bool, YGConfig*, YGMarkerLayoutData&, void*) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      YGNodeDeepClone(YGNode*) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      std::__1::vector<YGNode*, std::__1::allocator<YGNode*> >::__vallocate(unsigned long) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      std::__1::enable_if<(__is_cpp17_forward_iterator<YGNode**>::value) && (is_constructible<YGNode*, std::__1::iterator_traits<YGNode**>::reference>::value), void>::type std::__1::vector<YGNode*, std::__1::allocator<YGNode*> >::assign<YGNode**>(YGNode**, YGNode**) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      std::__1::vector<YGNode*, std::__1::allocator<YGNode*> >::insert(std::__1::__wrap_iter<YGNode* const*>, YGNode* const&) in libAPICloud.a(YGNode.o)
[color=rgba(0, 0, 0, 0.85)]  "std::logic_error::logic_error(char const*)", referenced from:
[color=rgba(0, 0, 0, 0.85)]      std:ut_of_range:ut_of_range(char const*) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      std::length_error::length_error(char const*) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      std::length_error::length_error(char const*) in libAPICloud.a(YGNode.o)
[color=rgba(0, 0, 0, 0.85)]  "___cxa_begin_catch", referenced from:
[color=rgba(0, 0, 0, 0.85)]      ___clang_call_terminate in libAPICloud.a(ACTComponent.o)
[color=rgba(0, 0, 0, 0.85)]      std::__1::vector<YGNode*, std::__1::allocator<YGNode*> >::shrink_to_fit() in libAPICloud.a(YGNode.o)
[color=rgba(0, 0, 0, 0.85)]  "operator new(unsigned long)", referenced from:
[color=rgba(0, 0, 0, 0.85)]      _YGNodeNewWithConfig in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      _YGConfigNew in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      _YGNodeClone in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      YGNodelayoutImpl(YGNode*, float, float, YGDirection, YGMeasureMode, YGMeasureMode, float, float, bool, YGConfig*, YGMarkerLayoutData&, void*) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      _YGNodeCalculateLayoutWithContext in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      YGNodeDeepClone(YGNode*) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      std::__1::vector<YGNode*, std::__1::allocator<YGNode*> >::__vallocate(unsigned long) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      ...
[color=rgba(0, 0, 0, 0.85)]  "___cxa_end_catch", referenced from:
[color=rgba(0, 0, 0, 0.85)]      std::__1::vector<YGNode*, std::__1::allocator<YGNode*> >::shrink_to_fit() in libAPICloud.a(YGNode.o)
[color=rgba(0, 0, 0, 0.85)]  "___cxa_guard_release", referenced from:
[color=rgba(0, 0, 0, 0.85)]      _YGConfigGetDefault in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]  "vtable for std::length_error", referenced from:
[color=rgba(0, 0, 0, 0.85)]      std::length_error::length_error(char const*) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      std::length_error::length_error(char const*) in libAPICloud.a(YGNode.o)
[color=rgba(0, 0, 0, 0.85)]  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
[color=rgba(0, 0, 0, 0.85)]  "___cxa_guard_acquire", referenced from:
[color=rgba(0, 0, 0, 0.85)]      _YGConfigGetDefault in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]  "operator delete(void*)", referenced from:
[color=rgba(0, 0, 0, 0.85)]      _YGNodeNewWithConfig in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      _YGConfigNew in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      _YGNodeClone in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      _YGNodeFree in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      YGNodelayoutImpl(YGNode*, float, float, YGDirection, YGMeasureMode, YGMeasureMode, float, float, bool, YGConfig*, YGMarkerLayoutData&, void*) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      _YGNodeCalculateLayoutWithContext in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      YGNodeDeepClone(YGNode*) in libAPICloud.a(Yoga.o)
[color=rgba(0, 0, 0, 0.85)]      ...


配置项:

配置

配置


配置

配置



配置

配置


编译后的SDK替换后:

编译的SDK替换后

编译的SDK替换后


自定义模块:

模块

模块


编译报错:

编译报错

编译报错


请帮忙看看什么原因。

28
帖子
1
勋章
1万+
Y币
添加系统 libc++ 库
1
帖子
0
勋章
16
Y币
哎, 帖子内容呢??
380
帖子
4
勋章
6
Y币
高级模式,附件里可以传图片
1
帖子
0
勋章
16
Y币
本帖最后由 纯文本_ 于 2021-7-19 17:15 编辑
技术支持-F 发表于 2021-7-19 16:39
高级模式,附件里可以传图片

重新编辑了报错内容, 麻烦看一下。
全是libAPICloud.a的报错, 但是查看libAPICloud.a文件, 是支持该架构的。

Architectures in the fat file: libAPICloud.a are: armv7 arm64


380
帖子
4
勋章
6
Y币
纯文本_ 发表于 2021-7-19 17:13
重新编辑了报错内容, 麻烦看一下。
全是libAPICloud.a的报错, 但是查看libAPICloud.a文件, 是支持该架 ...

iOS技术回复你了,看一下
1
帖子
0
勋章
16
Y币
本帖最后由 纯文本_ 于 2021-7-19 17:44 编辑

加了libc++.a库后,编译不报错了, 可以打包,但是打包安装后APP打开直接闪退(因为测试机版本较高,XCode和系统还在升级,无法调试,只能发布后看效果)。
1
帖子
0
勋章
16
Y币
本帖最后由 纯文本_ 于 2021-7-19 17:48 编辑
技术支持-F 发表于 2021-7-19 17:34
iOS技术回复你了,看一下

好的。谢谢。
28
帖子
1
勋章
1万+
Y币
纯文本_ 发表于 2021-7-19 17:37
加了libc++.a库后,编译不报错了, 可以打包,但是打包安装后APP打开直接闪退(因为测试机版本较高,XCode ...

Xcode 菜单 window-》devices and simulators 里面找到连接的设备查看闪退日志。
1
帖子
0
勋章
16
Y币
本帖最后由 纯文本_ 于 2021-7-19 19:53 编辑
技术咨询-Kenny 发表于 2021-7-19 17:51
Xcode 菜单 window-》devices and simulators 里面找到连接的设备查看闪退日志。

只有DB模块的SDK可以正常运行,闪退的是带着dialogBox模块的SDK。
闪退时日志如下:




错误        19:52:49.571674+0800        runningboardd        [application<com.sms.test>:78127] Error disabling CPU monitoring: 3
错误        19:52:49.574315+0800        powerd        processInfoCreate: proc_name look-up unsuccessful for pid 78127
错误        19:52:49.576442+0800        SpringBoard        Unable to get short BSD proc info for 78127: No such process
错误        19:52:49.576684+0800        SpringBoard        Unable to obtain a task name port right for pid 78127: (os/kern) failure (0x5)
错误        19:52:49.576867+0800        runningboardd        proc_pidpath failed for 78127 with errno 3
错误        19:52:49.577336+0800        runningboardd        Unable to obtain a task name port right for pid 78127: (os/kern) failure (0x5)
错误        19:52:49.577451+0800        SpringBoard        elapsedCPUTimeForFrontBoard couldn't generate a task port
错误        19:52:49.577830+0800        SpringBoard        Unable to obtain a task name port right for pid 78127: (os/kern) failure (0x5)
错误        19:52:49.582221+0800        runningboardd        Unable to obtain a task name port right for pid 78127: (os/kern) failure (0x5)
错误        19:52:49.582539+0800        SpringBoard        elapsedCPUTimeForFrontBoard couldn't generate a task port
错误        19:52:49.602113+0800        SpringBoard        Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
错误        19:52:49.602159+0800        SpringBoard        [application<com.sms.test>:78127] Workspace afterlife assertion failed: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
错误        19:52:49.602349+0800        SpringBoard        Unable to get short BSD proc info for 78127: No such process
错误        19:52:49.608946+0800        runningboardd        Ignoring invalidation request for 32-59-961939 because it doesn't exist
错误        19:52:49.609002+0800        runningboardd        Assertion invalidation request from 59 for identifier 32-59-961939 failed
错误        19:52:49.619142+0800        SpringBoard        Ignoring state for untracked process [application<com.sms.test>:78127]: <RBSProcessState| task:none debug:none>
错误        19:52:49.626271+0800        SpringBoard        Error creating the CFMessagePort needed to communicate with PPT.
错误        19:52:49.666484+0800        runningboardd        proc_pidpath failed for 78127 with errno 3
错误        19:52:49.678002+0800        runningboardd        proc_pidpath failed for 78127 with errno 3
错误        19:52:49.695095+0800        runningboardd        Could not get proc_pidinfo for pid 78127 to get name
错误        19:52:49.696496+0800        UserEventAgent        Could not get process name: <Error Domain=RBSRequestErrorDomain Code=5 "Could not get proc_pidinfo for pid" UserInfo={NSLocalizedFailureReason=Could not get proc_pidinfo for pid}>
错误        19:52:49.736629+0800        ReportCrash        Unable to create process info for pid 78127, task 9219. Is dyld loaded for this binary yet?
错误        19:52:55.040106+0800        wifid        Normal priority scan request from "locationd", is5GScan=0
错误        19:52:55.437874+0800        wifid        Locationd scan done.

WechatIMG1.png
12下一页
您需要登录后才可以回帖 登录

本版积分规则