Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Cocoapods complaining about the embedded content contains swift setting in the build settings?

I recently added swift files to my test target (combined with older cocoa touch classes).

Why is cocoapods complaining about the embedded content contains swift setting in the build settings?

[!] The YOURP-PROJECT-Tests [Debug] target overrides the EMBEDDED_CONTENT_CONTAINS_SWIFT build setting defined in Pods/Target Support Files/Pods-YOUR-PROJECT-Tests/Pods-YOUR-PROJECT-Tests.debug.xcconfig. This can lead to problems with the CocoaPods installation

like image 703
Wojtek Dmyszewicz Avatar asked Dec 24 '15 00:12

Wojtek Dmyszewicz


2 Answers

I needed to add the $(inherited) flag to the build setting

enter image description here

like image 116
Wojtek Dmyszewicz Avatar answered Oct 31 '22 15:10

Wojtek Dmyszewicz


If you replace YES with "$(inherited)" it will fix the issue in the project/target EMBEDDED_CONTENT_CONTAINS_SWIFT value. After you click Enter it will show a "YES". Run the pod install again and the issue should disappear.

like image 7
ManuCiao Avatar answered Oct 31 '22 16:10

ManuCiao