Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pod_target_xcconfig ends up applied to aggregate target #3906

Closed
pixelglow opened this issue Jul 27, 2015 · 1 comment
Closed

pod_target_xcconfig ends up applied to aggregate target #3906

pixelglow opened this issue Jul 27, 2015 · 1 comment
Assignees
Labels
s2:confirmed Issues that have been confirmed by a CocoaPods contributor

Comments

@pixelglow
Copy link

In the Podspec Syntax Reference, the pod_target_xcconfig setting is documented as applying only to the private pod target xcconfig file, but ends up applying to the aggregate/project target as well.

Steps to reproduce:

  • Create a Xcode iOS project (6.3 or later).
  • Use the following podfile in the project directory:
platform :ios, '8.0'
pod 'zipzap'
  • Run pod install from that directory.
  • Open the new xcworkspace file.
  • Note that the created Pods.debug.xcconfig and Pods.release.xcconfig files contain CLANG_CXX_LANGUAGE_STANDARD=c++11, OTHER_CPLUSPLUSFLAGS=-fno-exceptions etc. and the project uses these configurations.
  • Note that in the current zipzap podspec, these flags are found in the pod_target_xcconfig setting and nowhere else.

Reference: pixelglow/ZipZap#105

Versions: Xcode 6.3.2, CocoaPods 0.38.2, ZipZap 8.0.4

@segiddins segiddins added the s2:confirmed Issues that have been confirmed by a CocoaPods contributor label Jul 27, 2015
@segiddins
Copy link
Member

@mrackwitz this seems to be caused by https://github.com/CocoaPods/CocoaPods/blob/master/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb#L143, which would mean that any non-framework targets don't actually see separation of xcconfigs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s2:confirmed Issues that have been confirmed by a CocoaPods contributor
Projects
None yet
Development

No branches or pull requests

3 participants