遇到not valid for use in process u
2023-09-01 12:12:37.704028+0800 ProductName[4966:741241] Error loading /var/containers/Bundle/Application/927FF81F-F873-402E-8BE8-B8B0D8C2CEE2/ProductName.app/Frameworks/UnityFramework.framework/UnityFramework: dlopen(/var/containers/Bundle/Application/927FF81F-F873-402E-8BE8-B8B0D8C2CEE2/ProductName.app/Frameworks/UnityFramework.framework/UnityFramework, 265): Library not loaded: @rpath/libgmeogg.framework/libgmeogg
Referenced from: /private/var/containers/Bundle/Application/927FF81F-F873-402E-8BE8-B8B0D8C2CEE2/ProductName.app/Frameworks/UnityFramework.framework/UnityFramework
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/927FF81F-F873-402E-8BE8-B8B0D8C2CEE2/ProductName.app/Frameworks/UnityFramework.framework/Frameworks/libgmeogg.framework/libgmeogg: code signature in (/private/var/containers/Bundle/Application/927FF81F-F873-402E-8BE8-B8B0D8C2CEE2/ProductName.app/Frameworks/UnityFramework.framework/Frameworks/libgmeogg.framework/libgmeogg) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
unity工程在接入腾讯语音的时候遇到了这个问题,经过排查最终发现是因为把腾讯语音的动态库放在了动态库UnityFramework.framework里面,导致报了签名问题,最终把所有的动态库都添加到unity-iphone里就可以了