flutter iOS运行weibo组件报错Error (Xco
2024-03-06 本文已影响0人
香烟不灭
Running Xcode build...
└─Compiling, linking and signing... 899ms
Xcode build done. 44.2s
Failed to build iOS app
Error (Xcode): Undefined symbol: _OBJC_CLASS_$_WBAuthorizeRequest
Error (Xcode): Undefined symbol: _OBJC_CLASS_$_WBAuthorizeResponse
Error (Xcode): Undefined symbol: _OBJC_CLASS_$_WBImageObject
Error (Xcode): Undefined symbol: _OBJC_CLASS_$_WBMessageObject
Error (Xcode): Undefined symbol: _OBJC_CLASS_$_WBSendMessageToWeiboRequest
Error (Xcode): Undefined symbol: _OBJC_CLASS_$_WBSendMessageToWeiboResponse
Error (Xcode): Undefined symbol: _OBJC_CLASS_$_WBWebpageObject
Error (Xcode): Undefined symbol: _OBJC_CLASS_$_WeiboSDK
Encountered error while building for device.
image.png
解决方法:podfile 文件里 use_frameworks! 改为 use_frameworks! :linkage => :static
image.png