简体   繁体   English

Xcode 10:多命令生成 [CP] Embed Pods Framework

[英]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 installpod 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.

相关问题 自定义外壳脚本“ [CP] Embed Pods Frameworks”没有用于框架的此类文件或目录 - Custom shell script '[CP] Embed Pods Frameworks' No such file or directory for framework 运行自定义Shell脚本[cp]嵌入式Pod框架 - Run Custom Shell Script [cp] Embed Pods Framework iOS Xcode 10:具有 Pod 依赖项的私有框架 - iOS Xcode 10: Private framework with pods dependencies '[CP] Embed Pods Frameworks' 构建脚本排序 - '[CP] Embed Pods Frameworks' build script ordering Xcode 10 - 多个命令生成 .app - Xcode 10 - Multiple commands produce .app 构建错误 Xcode 10 - 产生多个命令 - Build error Xcode 10 - Multiple commands produce Xcode 10 iOS firebase firestore SDK —多个命令在Firebase中产生gRPCCertificates.bundle错误 - Xcode 10 iOS firebase firestore SDK — multiple command produce gRPCCertificates.bundle error in Firebase Xcode 11 Beta 7 命令 PhaseScriptExecution 失败,退出代码非零([CP] Copy Pods Resources) - Xcode 11 Beta 7 Command PhaseScriptExecution failed with a nonzero exit code ([CP] Copy Pods Resources) Xcode 10多个命令为Pods依赖构建错误 - Xcode 10 multiple commands build error for Pods dependency iOS - 运行脚本“[CP] Embed Pods Frameworks”卡在 Github 操作中 - iOS - Running script '[CP] Embed Pods Frameworks' stuck in Github Actions
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM