Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Archive clang: error: cannot specify -o when generating multiple output files

I have a project that I can deploy to my iphone and simulator with no problem. When I try to archive it, I get a error.

Here is XCBuildConfiguration that was requested.

I don't know why i would randomly have this problem. The only changes I have made recently was I added app icon images.

like image 971
EK_AllDay Avatar asked May 29 '26 01:05

EK_AllDay


1 Answers

In the Other C Flags build setting there is an -iquote argument that is not followed by the required directory argument. This causes the subsequent -isystem argument in the clang invocation to be interpreted as the directory for the stray -iquote and /Users/ethan/WorkSpace/StudyTree/JASidePanels-master/../Pods/Headers to be interpreted as an additional input file, resulting in the multiple output files error.

Either remove the -iquote argument from the build setting or add the directory argument.

like image 132
Matt Stevens Avatar answered May 31 '26 13:05

Matt Stevens



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!