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

时光总嘲笑我的痴心妄想 提交于 2019-12-18 10:41:38

问题


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


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/34445636/why-is-cocoapods-complaining-about-the-embedded-content-contains-swift-setting-i

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!