-
Notifications
You must be signed in to change notification settings - Fork 466
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
Fix regression resulting in projects existing product refs being altered #429
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -216,7 +216,11 @@ def initialize_from_file | |
if object_version.to_i > Constants::LAST_KNOWN_OBJECT_VERSION | ||
raise '[Xcodeproj] Unknown object version.' | ||
end | ||
root_object.product_ref_group = root_object.main_group['Products'] || root_object.main_group.new_group('Products') | ||
|
||
# Projects can have product_ref_groups that are not listed in the main_groups["Products"] | ||
if root_object.product_ref_group.nil? | ||
root_object.product_ref_group = root_object.main_group['Products'] || root_object.main_group.new_group('Products') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That works as well. I don't really have ties to either way. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. :) |
||
end | ||
end | ||
|
||
public | ||
|
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "0730" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "E525238B16245A900012E2BA" | ||
BuildableName = "Cocoa Application.app" | ||
BlueprintName = "Cocoa Application" | ||
ReferencedContainer = "container:Cocoa Application.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
<TestableReference | ||
skipped = "NO"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "E52523B216245A910012E2BA" | ||
BuildableName = "Cocoa ApplicationTests.octest" | ||
BlueprintName = "Cocoa ApplicationTests" | ||
ReferencedContainer = "container:Cocoa Application.xcodeproj"> | ||
</BuildableReference> | ||
</TestableReference> | ||
</Testables> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "E525238B16245A900012E2BA" | ||
BuildableName = "Cocoa Application.app" | ||
BlueprintName = "Cocoa Application" | ||
ReferencedContainer = "container:Cocoa Application.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "YES" | ||
ignoresPersistentStateOnLaunch = "YES" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "E525238B16245A900012E2BA" | ||
BuildableName = "Cocoa Application.app" | ||
BlueprintName = "Cocoa Application" | ||
ReferencedContainer = "container:Cocoa Application.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
<CommandLineArguments> | ||
<CommandLineArgument | ||
argument = "Some argument" | ||
isEnabled = "YES"> | ||
</CommandLineArgument> | ||
</CommandLineArguments> | ||
<EnvironmentVariables> | ||
<EnvironmentVariable | ||
key = "Some Environment Variable" | ||
value = "" | ||
isEnabled = "YES"> | ||
</EnvironmentVariable> | ||
</EnvironmentVariables> | ||
<AdditionalOptions> | ||
<AdditionalOption | ||
key = "MallocStackLogging" | ||
value = "" | ||
isEnabled = "YES"> | ||
</AdditionalOption> | ||
<AdditionalOption | ||
key = "DYLD_INSERT_LIBRARIES" | ||
value = "/usr/lib/libgmalloc.dylib" | ||
isEnabled = "YES"> | ||
</AdditionalOption> | ||
<AdditionalOption | ||
key = "DYLD_PRINT_LIBRARIES" | ||
value = "" | ||
isEnabled = "YES"> | ||
</AdditionalOption> | ||
<AdditionalOption | ||
key = "USERBREAK" | ||
value = "1" | ||
isEnabled = "YES"> | ||
</AdditionalOption> | ||
<AdditionalOption | ||
key = "DYLD_PRINT_APIS" | ||
value = "" | ||
isEnabled = "YES"> | ||
</AdditionalOption> | ||
<AdditionalOption | ||
key = "NSZombieEnabled" | ||
value = "YES" | ||
isEnabled = "YES"> | ||
</AdditionalOption> | ||
<AdditionalOption | ||
key = "NSDOLoggingEnabled" | ||
value = "YES" | ||
isEnabled = "YES"> | ||
</AdditionalOption> | ||
<AdditionalOption | ||
key = "AUTO_LOG_ALL" | ||
value = "" | ||
isEnabled = "YES"> | ||
</AdditionalOption> | ||
<AdditionalOption | ||
key = "MallocGuardEdges" | ||
value = "" | ||
isEnabled = "YES"> | ||
</AdditionalOption> | ||
<AdditionalOption | ||
key = "MallocScribble" | ||
value = "" | ||
isEnabled = "YES"> | ||
</AdditionalOption> | ||
</AdditionalOptions> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "E525238B16245A900012E2BA" | ||
BuildableName = "Cocoa Application.app" | ||
BlueprintName = "Cocoa Application" | ||
ReferencedContainer = "container:Cocoa Application.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "0730" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "E52523F316245AB20012E2BA" | ||
BuildableName = "iOS application.app" | ||
BlueprintName = "iOS application" | ||
ReferencedContainer = "container:Cocoa Application.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "806F6FB517EFAF46001051EE" | ||
BuildableName = "libiOS staticLibrary.a" | ||
BlueprintName = "iOS staticLibrary" | ||
ReferencedContainer = "container:Cocoa Application.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "NO" | ||
buildForProfiling = "NO" | ||
buildForArchiving = "NO" | ||
buildForAnalyzing = "NO"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "806F6FC217EFAF47001051EE" | ||
BuildableName = "iOS staticLibraryTests.xctest" | ||
BlueprintName = "iOS staticLibraryTests" | ||
ReferencedContainer = "container:Cocoa Application.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
<TestableReference | ||
skipped = "NO"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "E525241E16245AB20012E2BA" | ||
BuildableName = "iOS applicationTests.octest" | ||
BlueprintName = "iOS applicationTests" | ||
ReferencedContainer = "container:Cocoa Application.xcodeproj"> | ||
</BuildableReference> | ||
</TestableReference> | ||
<TestableReference | ||
skipped = "NO"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "806F6FC217EFAF47001051EE" | ||
BuildableName = "iOS staticLibraryTests.xctest" | ||
BlueprintName = "iOS staticLibraryTests" | ||
ReferencedContainer = "container:Cocoa Application.xcodeproj"> | ||
</BuildableReference> | ||
</TestableReference> | ||
</Testables> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "E52523F316245AB20012E2BA" | ||
BuildableName = "iOS application.app" | ||
BlueprintName = "iOS application" | ||
ReferencedContainer = "container:Cocoa Application.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "E52523F316245AB20012E2BA" | ||
BuildableName = "iOS application.app" | ||
BlueprintName = "iOS application" | ||
ReferencedContainer = "container:Cocoa Application.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "E52523F316245AB20012E2BA" | ||
BuildableName = "iOS application.app" | ||
BlueprintName = "iOS application" | ||
ReferencedContainer = "container:Cocoa Application.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add two spaces to the end of the changelog entry (i.e
* Fix regression resulting in projecs existing product ref groups being altered
)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.