Skip to content

Commit c074228

Browse files
committed
更新文档,添加 xcode 26.x上崩溃的错误
1 parent 4fd22ce commit c074228

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

docs/help/commonerrors.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,10 @@ WebGL平台打包时默认使用 `faster (smaller) build`选项,该选项会
538538
#pragma clang optimize on
539539
```
540540
541+
### 升级到xcode 26.x版本后在ios平台以release方式构建时的app运行到`InterpreterDelegateInvoke`函数发生崩溃,以Debug方式编译或者xcode 16.4及早版本没有这个问题
542+
543+
这是因为InterpreterDelegateInvoke函数存在UB代码导致在新版本clang上编译出错误了代码。解决办法为升级到hybridclr 8.5.2或更高版本。
544+
541545
### 使用 Unity.netcode.runtime 后出现 NotSupportNative2Managed 桥接函数缺失异常
542546
543547
原因是 在Unity.netcode.runtime.dll中 NetworkManager.RpcReceiveHandler 是internal, 定义如下

i18n/en/docusaurus-plugin-content-docs/current/help/commonerrors.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,10 @@ This is a Unity & iOS 15.4 BUG. There are two solutions:
529529
#pragma clang optimize on
530530
```
531531
532+
### After upgrading to Xcode 26.x, building the app in Release mode on iOS causes a crash in the InterpreterDelegateInvoke function. This issue does not occur when building in Debug mode or when using Xcode 16.4 and earlier versions.
533+
534+
The crash is caused by undefined behavior (UB) in the InterpreterDelegateInvoke function, which results in incorrect code generation on the newer Clang. The issue can be resolved by upgrading to HybridCLR version 8.5.2 or later.
535+
532536
### NotSupportNative2Managed bridge function missing exception after using Unity.netcode.runtime
533537
534538
The reason is that NetworkManager.RpcReceiveHandler in Unity.netcode.runtime.dll is internal, defined as follows:

0 commit comments

Comments
 (0)