[英]Xcode 10: Multiple command produce [CP] Embed Pods Framework
There are a lot of questions and answers for this problem on stack overflow.堆栈溢出这个问题有很多问答。 I'm using Jumio Mobile SDK which encountered this problem.
我正在使用遇到此问题的 Jumio Mobile SDK。 One solution that I've tried is by selecting "Copy only when installing" option under Embed Frameworks.
我尝试过的一种解决方案是在 Embed Frameworks 下选择“仅在安装时复制”选项。
Can anyone confirm this solution won't affect the functionality enabled by the framework in question?任何人都可以确认此解决方案不会影响相关框架启用的功能吗? Anyone tried this solution in their project?
有人在他们的项目中尝试过这个解决方案吗? I'm unable to test it.
我无法测试它。
If anyone still has problems with this, one solution that worked great is to如果有人仍然对此有问题,一个很好的解决方案是
Run pod deintegrate
in terminal then run pod install
or pod update
在终端中运行
pod deintegrate
然后运行pod install
或pod update
For some reason my project got "corrupted" and deintegrating and installing again regenerated the project and everything worked.出于某种原因,我的项目“损坏”,解体并再次安装重新生成了项目,一切正常。
These possible solutions may work.这些可能的解决方案可能会奏效。
Workaround 1:解决方法 1:
Open yourProject.xcworkspace
打开
yourProject.xcworkspace
Select the Project target and then select the Build Phases tab.选择 Project 目标,然后选择 Build Phases 选项卡。
Expand the Embed Frameworks
phase and select Jumio Mobile SDK
from the embedded frameworks list.展开
Embed Frameworks
阶段并从嵌入式框架列表中选择Jumio Mobile SDK
。
Click -
to remove Jumio Mobile SDK
from the list单击
-
从列表中删除Jumio Mobile SDK
Workaround 2:解决方法 2:
Open your workspace project, then navigate to File -> Workspace Settings
and change the build system
to Legacy Build System
.打开您的工作区项目,然后导航到
File -> Workspace Settings
并将build system
更改为Legacy Build System
。
I came to this question finding a solution for the same problem but, in my case, I was using Streamroot which also contains a dSYM.我来到这个问题是为同样的问题寻找解决方案,但就我而言,我使用的是 Streamroot,它也包含一个 dSYM。
I had the following error in my Test target:我的测试目标中有以下错误:
Multiple commands produce '/Users/ramonharomarques/Library/Developer/Xcode/DerivedData/WhiteLabel-fxmmcdtjlibmcxeakswrahwfxrqj/Build/Products/Debug-iphoneos/StreamrootSDK.framework.dSYM':
1) That command depends on command in Target 'HistoryHit' (project 'WhiteLabel'): script phase “[CP] Embed Pods Frameworks”
2) That command depends on command in Target 'TVPlayer' (project 'WhiteLabel'): script phase “[CP] Embed Pods Frameworks”
3) That command depends on command in Target 'WhiteLabel' (project 'WhiteLabel'): script phase “[CP] Embed Pods Frameworks”
Turns out I had in my Target - Build Phase - Dependencies 2 extra app targets using the same framework.结果我在我的 Target - Build Phase - Dependencies 中使用了相同的框架 2 个额外的应用程序目标。
By removing the 2 extra targets, everything worked smoothly.通过删除 2 个额外的目标,一切顺利。
I encountered it after I added Swinject
to multiple targets.我在将
Swinject
添加到多个目标后遇到了它。 To fix it, I tried to run gem update cocoapods
to 1.7.5
and the issue is no more.为了修复它,我尝试将
gem update cocoapods
运行到1.7.5
并且问题不再存在。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.