English 中文(简体)
Xcode 10 Error: 多名指挥员生产
原标题:Xcode 10 Error: Multiple commands produce

error: Multiple commands produce /Users/uesr/Library/Developer/Xcode/DerivedData/OptimalLive-fxatvygbofczeyhjsawtebkimvwx/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist : 1) Target OptimalLive has copy command from /Users/uesr/Desktop/workSpace/SEALIVE/SeaLive1.1/OptimalLive/Info.plist to /Users/uesr/Library/Developer/Xcode/DerivedData/OptimalLive-fxatvygbofczeyhjsawtebkimvwx/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist 2) Target OptimalLive has copy command from /Users/uesr/Desktop/workSpace/SEALIVE/SeaLive1.1/OptimalLive/Server/Masonry/Info.plist to /Users/uesr/Library/Developer/Xcode/DerivedData/OptimalLive-fxatvygbofczeyhjsawtebkimvwx/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist 3) Target OptimalLive has process command with input /Users/uesr/Desktop/workSpace/SEALIVE/SeaLive1.1/OptimalLive/Info.plist

在X代码9中操作该代码,但X编码第10条有错误。

最佳回答

可能出现这一问题的原因是申请程序中的多份清单或其他档案。

Solution -> Open Target ->Building phase > 制版Bundle Resources 并删除info.plist

“enterography

<>说明: 如果你也建立了观察台,那么你也必须从监视和监视中删除该名单。

问题回答

www.un.org/Depts/DGACM/index_spanish.htm 这一答复作了解释——Xcode 12已经对Legacy Building System做了解释,将在进一步发布时予以删除。

I found the solution for this build error, for anybody else having the same issue with Xcode 10 build system, follow the following steps to fix it:

  1. In Xcode, go to File->Project/Workspace settings.
  2. Change the build system to Legacy Build system.

enter image description here It will resolve the build issue with the new Xcode 10.

如果你想与新的建筑系统合作,那么你会发现麻烦,帮助。 页: 1 Xcode help page

我正在试验核心数据。 我为简单的清单方案建立了一个数据模型,并产生了国家抽样调查目标。 在我汇编项目时,我发现以下错误:

error: Multiple commands produce  /Users/myUSerName/Library/Developer/Xcode/DerivedData/myCoreDateExperiment-gzbslaqdwglkzxemijpdqmizgyzc/Build/Intermediates.noindex/ myCoreDateExperiment /Debug-iphonesimulator/ myCoreDateExperiment.build/Objects-normal/x86_64/CheckListItem+CoreDataProperties.o :
1) Target   myCoreDateExperiment   (project   myCoreDateExperiment  ) has compile command for Swift source files
2) Target   myCoreDateExperiment   (project   myCoreDateExperiment  ) has compile command for Swift source files

问题是数据模型(我情况下的CheckList.xcdatamodeld)被列入“附属来源”清单。 在我从名单上删除时,该项目进行了清理。

  1. Open the project navigator and select the project (very first entry at the top)
  2. Select your build target under Targets in the "Projects and Targets" pane
  3. Select Build Phases option near the top
  4. Expand the "Compile Sources" entry and look for your data model name. Search for "xcdatamodeld" if you have trouble finding it.
  5. Delete the model from the compile list
  6. Make sure the data model is included in the "Copy Bundle Resources" list. Add it if it is missing.

http://www.ohchr.org。

正如评论中所解释的,你需要汇编清单中的xcdatamodeld。 相反,在Xcdatamodeld档案中向贵实体求助。 选择错误的模型,扩大左小组,将“传统”领域改为“管理/None”。

This answer is deprecated - XCode 12 has deprecated the Legacy Build System, it will be removed in a further release

Try this as well. Xcode->File->Project Settings-> Build System -> Legacy Build System.

如果你使用CocoaPods,你可能想设法使od子解体并再次安装。 它为我工作。

在核对施工记录时,我注意到警告:

note: Using new build system
note: Planning build
note: Constructing build description
Build system information
warning: The Copy Bundle Resources build phase contains this target s Info.plist file  /Users/<redacted>/Repositories/Whitesmith/optimize-ios/Carthage/Checkouts/WSStatusBarNotification/Miscellaneous/Info.plist . (in target  JDStatusBarNotification )

因此,如果你的情况只是为了达到你的目标:

  1. Build Phases
  2. Copy Bundle Resource
  3. Remove info.plist.

Read this answer if error message references Core Data files

www.un.org/Depts/DGACM/index_spanish.htm 综合症: 您可能拥有自动生成和人工生成的核心数据管理对象类别档案。

如果该错误的第一行指的是Foo+CoreDataProperties.oFoo+CoreDataClass.o文档,则适用这一答案。 例:

<代码>error>: 多个指挥单位生产/Users/me/Library/Developer/Xcode/DerivedData/MyApp-uebslaqdwgldkjemijpdqmizgyzc/Build/Intermediates.noindex/ MyApp /Debug-iphonesimulator/ MyApp.build/Objects-normal/x86_64/Foo+CoreDataProperties.o:

<代码>1)MyApp(项目MyApp)汇编了快速源文档的指令

<代码>2)MyApp(项目MyApp)汇编了快速源文档的指令

可以通过扩大“建筑说明”的Compile Source files部分来看待这一根本原因。 例如:

<unknown>:0: error: filename "Address+CoreDataClass.swift" used twice: /Users/myUserName/Projects/Jnky/Foo+CoreDataProperties and /Users/jk/myUserName/Developer/Xcode/DerivedData/MyApp-uebslaqdwgldkjemijpdqmizgyzc/Build/Intermediates.noindex/MyApp.build/Debug/MyApp.build/DerivedSources/CoreDataGenerated/Jnky/Foo+CoreDataProperties.swift

The first file mentioned there is a source file in your project directory, which someone generated by selecting your data model in the Project Navigator and clicking in the menu Editor > Create Managed Object Subclass. This feature was added in Xcode 7 or so.

The second file is a file of the same name but which is buried in Xcode s DerivedData. This file is generated automatically by Xcode during every build if the data model (.xcdatamodeld) file is included in the target s Compile Sources build phase. This feature was added in Xcode 9 or so. Zero, one or two files are generated for each entity/class, depending on the setting of the Codegen popup. That popup is in the Data Model Inspector when you select an entity while editing your data model…

“数据模型检查员的筛选”,</a

这些环境是:

  • Manual/None No files are generated
  • Category/Extension One file, Foo+CoreDataProperties.m or .swift is generated, containing an Objective-C category or Swift extension.
  • Class Definition That same Category/Extension file is generated, and in addition a Foo+CoreDataClass.m or .swift is generated, containing class declaration and definition.

因此,如果一位老的X条码习惯的开发商(如我)开始采用新的X条码项目,就会出现问题。 我们认为,我们需要使用Create Managered Object Subqu menu项目,我们这样做是为了建立我们在“Nagator”项目中能够看到的档案,而没有认识到我们在“Codegen上所处的环境正在造成X条码制造重复的档案,而“ Apple”项目在“Nagator”项目中并不显示,因为它们没有信托开发商读和<>heed<<<>>>>>>> / 该档案自动生成,不应编辑。

Solution 1 - Use the Older Way

如果数据模型仅采用一种情况,则你可以将其所有自动数据Codegen:

  • Open the problem Target s Build Phases (In Project Navigator, select project, then in list of TARGETS which appears, select the problem target, then tab Build Phases).
  • Expand the Compile Sources entry and find the problem data model (.xcdatamodeld file).
  • Delete it from the compile list
  • Ensure the data model is included in the Copy Bundle Resources list.

Solution 2 - Core Data Magic For Beginners

在这方面,你走得更新的道路。

  • Leave your data model as is in that Compile Sources.
  • In each Entity Inspector in your data model, set Codegen to Class Definition.
  • In the Project Navigator, delete and trash any Foo+CoreDataClass files, and rename any Foo+CoreDataProperties.m or .swift files to something like Foo+MyProperties.
  • In each Foo+MyProperties.m or .swift file, if there are properties generated by Xcode, delete these properties because they will be in the hidden files created by Codegen.

With this solution, your class definitions are generated automatically from the data model on each build. You can t even see them. It is Core Data Magic, nice and simple for beginners.

Solution 3 - For Most Real-World Apps

但是,如果你真想增加非管理的财产,解决办法2就没有好处。 (目标-C不允许在类别中添加财产,快速不允许在延伸中添加所储存的财产。) 因此,在大多数现实世界观中,你很可能要把解决办法1和2放在一半。

  • Leave your data model in the list of Compile Sources
  • In each Entity Inspector in your data model, set Codegen to Category/Extension.
  • In the Project Navigator, delete and trash any Foo+CoreDataClass.m or .swift files, and, to reduce future confusion, rename any Foo+CoreDataProperties.m or .swift files to maybe just Foo.m or .swift.
  • Ensure that each Foo.m or .swift file contains the class definition, to which you can add your own non-managed properties.

(Acknowledgments to the answer by Positron. My answer here explains why Positron s answer (my Solution 1) works, and adds Solution 2 and Solution 3.)

Solution 1 :
Open target ➼ Build phases ➼ Copy Bundle Resources ➼ remove info.plist from there. ➼ you will have to remove the plist from the Extensions too (if any).

Solution 2:
If you use CocoaPods you may want to try deintegrate the pods and install again. Commands:

1) pod deintegrate
2) pod install

Solution 3:
In Xcode, go to File ➼ Project/Workspace settings.
➼ Change the build system to Legacy Build system.

Try this working:

在X条码中,进入文档和;项目/工作空间。

Change the build system to Legacy Build system.

这里提出的解决办法都没有对我有效。 这主要是因为可可豆。 我以前曾使用Cocoapods 1.3.1。 简单地将问题提升到1.5.3,没有解决问题。

我采取的步骤是:

  1. Delete Podfile.lock
  2. Delete Pods directory
  3. Delete Derived Data & Clean
  4. Exit Xcode
  5. Update CocoaPods to 1.5.3
  6. Run pod install
  7. Open workspace and build

解决我问题的一个选择是,将建筑系统改为遗产建设系统。 请遵循Xcode 10+中的以下步骤。

这里,我撰写了一篇关于问题与计划的详细文章;其解决办法:。 Xcode Error:多指挥制

“entergraph

“entergraph

In my case PDFGenerator was producing an info.plist file, I just deleted it.

“在座的影像描述”/</a

www.un.org/Depts/DGACM/index_spanish.htm 这一答复作了解释——Xcode 12已经对Legacy Building System做了解释,将在进一步发布时予以删除。

I m using Xcode 11.4 Can t build old project

Xcode => file => Project Settings =>Building System => 遗产建设系统

enter image description here

“entergraph

there are some reasons that cause this error to be shown.

1-项目名称与项目上所用的依赖名称相同。

如果你选择项目名称与你在项目中使用的附属名称相同,例如,你不能选择/code>或 KellySignIn,作为项目名称,如果你通过复制或SPM使用的话,则可能发生这一错误。

为了解决这一问题,你应当修改项目名称如下:

项目名称从左侧栏的<条码>项目航标/代码>选择,从<条码>查询/编码>上更改项目名称。 ->Identity and打字 ->name/code> from the rightsidebar.

“enter

在你改变之后,瑞士天主教会要求你改变所有相对目标,并改称新闻。

“entergraph

2 -plicad info.plist on theform Bundle resources part

you may face this error when info.plist is added to Copy Bundle resources unwanted, choose project form project navigator -> choose target -> goto Build Phases tab -> Copy Bundle Resources and if you see info.plist there, remove it by choose info.plist like the following image

“entergraph

<>strong>3 - pod file do not work well

有时,由于你出于意外原因利用休息的附属条件,你会发现这一错误。

页: 1

2 - 删除波德名录

3 - 删除原始数据与格式; ->Derived Data and go to the summary, by Pointing the arrow icon at the right of the address)

4 - Exit Xcode

5 - 更新含有<条码>的可可豆。

6 - 前往终端站和运行podstal/code>的项目目录

7 - 开放工作空间和建设工作空间

<>strong>5-重复d Core data

当你使用项目核心数据时,你可能面临这一问题。

第一部分:核心 数据代码类型:

“entergraph

** 定义: ** 如果你不需要编辑管理物体子级的特性或功能以及核心数据为你生成的财产档案,则选择等级定义。

<><>Category/Extension: • 选择类别/延伸,在您管理的物体次类别内添加更多的便利方法或商业逻辑。

<>strong>Manual/None: • 选择手册/None,将贵方管理的物体子类别中的特性加以编辑,例如,改变接触方,并增加便利方法或商业逻辑。

选择<代码>Manual/None,如果存在xcmodel数据的副本,则核对在上。 http://www.undleRecources/code_。

“entergraph

在我开始指出,我的项目利用 Car作为扶养经理。

这里现有的答案都没有解决我的问题。 对我来说,解决问题的方法是:

首先,我注意到,建筑错误特别指出了一个框架。 随后,我过滤了“应用目标”;为该框架建立了阶段。 我注意到,该框架存在于“与图书馆的链接”和“有色人种的框架”。 注意到在“有色人种框架”下所列的框架中,没有一个是由Carthage I管理的框架从“有色人种的框架”中删除。 然后,我重建了我的项目,一切工作都很出色,包括相关框架所赋予的职能。

当我以两个不同的目标提出同一名字的档案时,我有这个问题。 出于某种原因,其中一份档案属于这两个目标。 因此,我基本上有两个档案。 这两个档案都属于一个目标。

意思是,目标只能有每个目标一个名字,因此,只是不核对与主要目标挂钩的档案标的箱子。

我在把SDKs的法布里诉讼的第二部分添加到一起之后便产生了这一问题。

实际发生的情况是,谷歌化肥框架在波德项目中增加了两倍。

“谷歌Utilities.framework”/

This would have been fine prior to Xcode 10 but Xcode 10 will complain if a file has two actions against it (in this case a copy action).

消除第二个框架是安全的。

不幸的是,我没有为我作任何答复......这里我看到的错误是:

“....../....../....../....../....../....../ 框架/框架”

  1. That command depends on command ...: script phase ""
  2. That command depends on command ...: script phase ""

把这一条线添加到波德森特,并做“波德·英斯塔”是奥文特干的。

install!  cocoapods , :disable_input_output_paths => true

我真的希望能帮助别人。 我花了几个小时时间试图解决这一问题,最后又去了。

有时,我只希望X条码与英特尔利J /安乐施会一样有效:

Goodluck!

确实,在我的案件中:

If you create two file with same name, will trigger this error. Remove the one you recently added, will solve this problem.

Hope this helps.

我的错误是:

/Users/home/Library/Developer/Xcode/DerivedData/myAppName-fawptgabysjowicvpeqydjniuovo/Build/Products/Debug-iphoneos/myAppName.app/GoogleMaps.bundle on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/home/Library/Developer/Xcode/DerivedData/myAppName-fawptgabysjowicvpeqydjniuovo/Build/Intermediates.noindex/myAppName.build/Debug-iphoneos/myAppName.build/Script-32CCC25BF727B592A1784900.sh

我着重谈到问题档案,即:/Maps.bundle,以及该档案存放在<代码>上[CP] 拷贝/代码上的位置,以及它具体指明了其复制的<编码>产出文件(我着重提到黑色以上),第4步如下:

首先制作一份您的项目副本,确保你首先在<>copy上采取下列步骤:

1- 在项目导航器中,我参加了蓝色项目icon

“在此处的影像描述”/</a

2-I 选择建筑阶段

“在座的影像描述”/</a

3- Under Build Phases I choose [CP] Copy Pods Resources

enter image description here

4- 在<条码>下[CP拷贝] 我去了Output files,在座右下,我发现文件以谷歌普.bundle封顶。 我选择了这个词,并用斜线表示删除。 • 确保你到<>Output 文件和NOTInput文档上去

enter image description here

5- I did a clean shift+cmmd+k and afterwards when I built the project the error was gone

<>奇迹>,即使红色错误使黄色警报仍然消失,但还是:

This answer for you if you are facing problem in core data. Go to yourfilename.xcdatamodeld and make sure all the entities have manual/None Codegen. enter image description here

因此,我面临的问题是,我意外地将信息清单列入项目环境——和“开发阶段”——和“开发”项目;为我的目标提供软件。

Go in Project Build Phase and Remove info.plist from the Compile Sources. It will remove that issue and project will be active again.

“在座的影像描述”/

步骤:

  1. Go to Xcode File
  2. Click to WorkSpace Settings
  3. Build System Select as Legacy Build System

这里是另一项工作解决办法: (如果你使用习俗波德)

  • Select "Pods" from sidebar as highlights in screenshot.
  • Click on Build Phase. Expand "Headers" section. There are 3 options Public, Private, Project
  • Expand Public and check there are duplicate files. Remove it. DONE!!

“entergram

我是新鲜的,我尝试了上述答案,但没有为我工作。

我的XCode版本为12.4,迅速5

我正在读到<条码>Multiple突击体产生错误,同时正在建造中

我试图从错误清单中扩大这一错误,但重复计算,首先我很难知道全部错误。

So I right clicked the error and copied to clipboard, pasted it in text editor.

它显示了全部错误。

它说,哪一部分问题存在。

Multiple commands produce  /Users/userName/Library/Developer/Xcode/DerivedData/ProjectName-fbeqffupediuiedlrplqjyhgyqna/Build/Products/Production-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement :
1) That command depends on command in Target  GoogleAppMeasurement-iOS12.3  (project  Pods ): script phase “[CP] Copy XCFrameworks”
2) That command depends on command in Target  GoogleAppMeasurement-iOS14.1  (project  Pods ): script phase “[CP] Copy XCFrameworks”

(我正在使用谷歌消防基地)

令我感到惊讶的是,正在为2种不同版本的Si(12.3和14.1)汇编鞋。

I found that, in the active target configuration, I set iOS 12.3 in the Deployment Info section and set 14.1 in Deployment Target in Project level Info tab

www.un.org/Depts/DGACM/index_spanish.htm 既要确定同一版本,又要清理和解决。

Please let me know if setting 2 different versions is a mistake or not. If it was not a mistake, then what to do keeping following in mind:

  • I am not allowed to set build system to legacy
  • info.plist does not exist in the Copy Bundle Resources phase

在我的案件中,我对<编码>Info.plist重复产出档案有错误:

warning: duplicate output file


/Users/mahdifaraji/Desktop/boilerplate/ios/boilerplate.xcodeproj: warning: The Copy Bundle Resources build phase contains this target s Info.plist file  /Users/mahdifaraji/Desktop/boilerplate/ios/boilerplate/Info.plist . (in target  boilerplate  from project  boilerplate )
warning: duplicate output file  /Users/mahdifaraji/Library/Developer/Xcode/DerivedData/boilerplate-fpkyeiljiiuxbidceadasmpsntah/Build/Products/Debug-iphonesimulator/boilerplate.app/Info.plist  on task: ProcessInfoPlistFile /Users/mahdifaraji/Library/Developer/Xcode/DerivedData/boilerplate-fpkyeiljiiuxbidceadasmpsntah/Build/Products/Debug-iphonesimulator/boilerplate.app/Info.plist /Users/mahdifaraji/Desktop/boilerplate/ios/boilerplate/Info.plist (in target  boilerplate  from project  boilerplate )

** BUILD FAILED **

I solved the issue by removing it from Project -> Target -> BuildPhases -> Copy Bundle Resources





相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...

热门标签