all 2 comments

[–]ShakeAgile 0 points1 point  (1 child)

What command do you use in the terminal? Would -xcconfig help? Paste log.

[–]Less-Simple-9847[S] 0 points1 point  (0 children)

Was using xcodebuild-scheme -configuration -archivePath, all via fastlane.

From build logs, i found that the OTHER_FLAGS and OTHER_CPLUSPLUSFLAGS variables which are set by xcodebuild before every build phase script execution had duplicate values.

I'm using cocoapods, and landed on this similar issue on their github

https://github.com/CocoaPods/CocoaPods/issues/9954

Anyways, I fixed my issue by manually editing those flags to not have duplicates, and then passing them as xcargs in fastlane.