Skip to content

Commit 0df744b

Browse files
committed
ignore unknown objectVersion
1 parent 78c9120 commit 0df744b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/xcodeproj/project.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,9 @@ def initialize(path, skip_initialization = false, object_version = Constants::DE
8181
unless skip_initialization
8282
initialize_from_scratch
8383
@object_version = object_version.to_s
84-
unless Constants::COMPATIBILITY_VERSION_BY_OBJECT_VERSION.key?(object_version)
85-
raise ArgumentError, "[Xcodeproj] Unable to find compatibility version string for object version `#{object_version}`."
84+
if Constants::COMPATIBILITY_VERSION_BY_OBJECT_VERSION.key?(object_version)
85+
root_object.compatibility_version = Constants::COMPATIBILITY_VERSION_BY_OBJECT_VERSION[object_version]
8686
end
87-
root_object.compatibility_version = Constants::COMPATIBILITY_VERSION_BY_OBJECT_VERSION[object_version]
8887
end
8988
end
9089

0 commit comments

Comments
 (0)