[英]Adding share extension to the existing project. So the already existing project pod starts getting errors
When we add a share extension to the existing project.当我们向现有项目添加共享扩展时。 So the already existing project pods start getting errors because your code is in
Swift 4
and the extension is in Swift 5
.因此,已经存在的项目 pod 开始出现错误,因为您的代码在
Swift 4
,而扩展在Swift 5
。
When I add a pod in the extension target, an error occurs on the pod install both targets have different swift version.当我在扩展目标中添加一个 pod 时,pod install 发生错误,两个目标具有不同的 swift 版本。 then we change the share extension
swift 5 to 4.2
.然后我们将共享扩展名
swift 5 to 4.2
更改swift 5 to 4.2
。 Then the pod is installed.然后安装pod。 But when I run the project, errors appear in the pods already included in the project.
但是当我运行项目时,错误出现在项目中已经包含的 pod 中。
KVNProgress
IQKeyboardManagerSwift
CameraManager
Gallery
If anyone has an idea how we can solve the issue如果有人知道我们如何解决问题
Set to Allow API Extension to No to particular framework who gives this e error like IQKeyboardManager将“允许 API 扩展”设置为“否”,以便特定框架提供此错误,例如 IQKeyboardManager
Consider you facing this issue for IQKeyboardManager and you installed this framework using Pod.考虑到您为 IQKeyboardManager 面临这个问题,并且您使用 Pod 安装了这个框架。 Then your project click on Pod -> CLick on IqkeyboardManager.
然后你的项目点击 Pod -> 点击 IqkeyboardManager。
And set Allow API Extension to No并将允许 API 扩展设置为否
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.