我正在编写我自己的电容器插件,基于
https://capacitorjs.com/docs/ios/custom-code https://devdactic.com/build-capacitor-plugin/
但是将它添加到我的主项目中
npm install ../MyPlugin失败
npx cap sync使用
✖ Updating iOS native dependencies with "pod install" (may take several minutes):
✖ update ios:
[error] Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "MyPlugin":
In Podfile:
MyPlugin (from `../../../my-plugin`)
Specs satisfying the `MyPlugin (from `../../../my-plugin`)` dependency were found, but they required a higher minimum deployment target.我尝试调整播客文件所需的ios版本,就像在Firebase/Auth dependency were found, but they required a higher minimum deployment target中一样
到11以与我的主项目保持一致
platform :ios, '11.0'
def capacitor_pods
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'Capacitor', :path => '../node_modules/@capacitor/ios'
pod 'CapacitorCordova', :path => '../node_modules/@capacitor/ios'
end
target 'Plugin' do
capacitor_pods
end
target 'PluginTests' do
capacitor_pods
end但是错误仍然存在。我应该从哪里开始呢?谢谢
https://stackoverflow.com/questions/69120081
复制相似问题