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

project.new_target does only adds "Release" and "Debug" configurations #228

Closed
neonichu opened this issue Jan 20, 2015 · 0 comments · Fixed by #229
Closed

project.new_target does only adds "Release" and "Debug" configurations #228

neonichu opened this issue Jan 20, 2015 · 0 comments · Fixed by #229

Comments

@neonichu
Copy link
Member

project.new_target only adds "Release" and "Debug" build configurations, instead of one corresponding to each build configuration of the project. This leads to inconsistencies with Xcode:

#!/usr/bin/env ruby

require 'xcodeproj'

project = Xcodeproj::Project.new('foo.xcodeproj')
project.add_build_configuration('App Store', :release)
target = project.new_target(:static_library, 'Pods', :ios)
project.save

puts target.build_configurations.inspect
# => ['Release', 'Debug']

project2 = Xcodeproj::Project.open('foo.xcodeproj')
puts project2.targets.first.build_configurations.inspect
# => ['Release', 'Debug', 'App Store']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant