我有一个带有OneSignal通知的应用程序。我使用的是@capacitor/cli@3.3.1。如果我在Podfile中启用use_frameworks!和use_modular_headers!,pod安装会显示错误:!] The 'Pods-App' target has transitive dependencies that include statically linked binaries: (/Users/.../Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework)
删除use_frameworks!,我得到的错误是:[!] Using Swift static libraries with custom module maps is currently not supported. Please build
Capacitoras a framework or remove the custom module map.
1条答案
按热度按时间mkh04yzy1#
将OneSignal插件名称添加到
capacitor.config.json
中的staticPlugins
数组:请参阅https://capacitorjs.com/docs/config: