试了手动导入动态包、静态包,pod导入都试了,一直报同一个错误。。。提示也说的微信sdk内部错误,让我重试,没啥参考价值,查资料也没查到什么有用的资料。
报错日志如下:
WeChatSDK: [WXApi.m]+[WXApi registerApp:universalLink:]WXLog:using sdk:xcframework-iphone-arm64
微信自检第0步, 是否成功:1, 是否失败check passed, 错误提示
微信自检第1步, 是否成功:1, 是否失败check passed, 错误提示
微信自检第2步, 是否成功:1, 是否失败check passed, 错误提示
WeChatSDK: [AppCommunicate.m]+[AppCommunicate setPropertyList:forAppID:canReadPasteBoard:]WXLog:set property list
微信自检第3步, 是否成功:0, 是否失败WeChat SDK inner Error., 错误提示Unknown error, please try again.
WeChatSDK: [WXApi.m]+[WXApi checkUniversalLinkCallback:step:success:errorInfo:suggestion:]WXLog:Error:WXCheckULStepResult[success: 0, errorInfo: WeChat SDK inner Error., suggestion: Unknown error, please try again.]
另外,如果忽略上述报错,去调用登录,会报如下错误:
WeChatSDK: [WXApi.m]+[WXApi sendReq:isAutoResend:forceScheme:completion:]WXLog:send req[<SendAuthReq: 0x13b9b5880>], appID:wx????????, universalLink:??????, sdkVersion:2.0.5 WeChatSDK: [WXApi.m]+[WXApi sendReq:isAutoResend:forceScheme:completion:]WXLog:Error:send req fail, extra url is nil!

你好,复现问题时麻烦在手机微信那里上传下日志: 我->设置->帮助与反馈右上角有个上报日志的入口,麻烦提供一下微信号,时间点,bundleid、appid和opensdk的调用时间点(可以社区私信提供)和open帐号后台移动应用包名截图
解决了。
我自己是如下方法解决:
unity导出的iOS应用,重写的CustomAppController,里面写相关wxapi代码,因为CustomAppController属于unityFramework的target,需要在unityframework的target的build setting里other link字段写-ObjC -all_load,不是在实际应用unity-iphone的target里写