Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/Specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ['2.7', '3.0', '3.1', '3.2', '3.3']
ruby: ['2.7', '3.0', '3.1', '3.2', '3.3', '3.4']
os: [ubuntu-24.04]
include:
- os: macos-14
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

##### Bug Fixes

* None.
* Fix `cannot load such file -- kconv`, `cannot load such file -- base64` crash when running on Ruby 3.4.
[Eric Amorde](https://github.com/amorde)
[#1046](https://github.com/CocoaPods/Xcodeproj/pull/1046)


## 1.28.0 (2026-07-06)
Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ PATH
xcodeproj (1.28.0)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
base64
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.4.0)
nkf
rexml (>= 3.3.6, < 4.0)

GEM
Expand All @@ -31,6 +33,7 @@ GEM
ast (2.4.3)
atomos (0.1.3)
bacon (1.2.0)
base64 (0.3.0)
claide-plugins (0.9.2)
cork
nap
Expand Down Expand Up @@ -75,6 +78,7 @@ GEM
multipart-post (2.1.1)
nanaimo (0.4.0)
nap (1.1.0)
nkf (0.3.0)
notify (0.5.2)
octokit (4.21.0)
faraday (>= 0.9)
Expand Down
10 changes: 9 additions & 1 deletion spec/project/object_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,18 @@ module ProjectSpecs
end

it 'warns if it encounters an unknown attribute in a plist' do
UI.expects(:warn).with "[!] Xcodeproj doesn't know about the following " \
if Gem::Requirement.new('>= 3.4.0').satisfied_by?(Gem::Version.new(RUBY_VERSION))
UI.expects(:warn).with "[!] Xcodeproj doesn't know about the following " \
"attributes {\"unknown_attribute\" => \"might be a reference\"} for the 'PBXFileReference' isa." \
"\nIf this attribute was generated by Xcode please file " \
'an issue: https://github.com/CocoaPods/Xcodeproj/issues/new'
else
UI.expects(:warn).with "[!] Xcodeproj doesn't know about the following " \
"attributes {\"unknown_attribute\"=>\"might be a reference\"} for the 'PBXFileReference' isa." \
"\nIf this attribute was generated by Xcode please file " \
'an issue: https://github.com/CocoaPods/Xcodeproj/issues/new'
end

@objects_by_uuid_plist[@object.uuid]['unknown_attribute'] = 'might be a reference'
@object.configure_with_plist(@objects_by_uuid_plist)
end
Expand Down
2 changes: 2 additions & 0 deletions xcodeproj.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Gem::Specification.new do |s|
s.add_runtime_dependency 'colored2', '~> 3.1'
s.add_runtime_dependency 'nanaimo', '~> 0.4.0'
s.add_runtime_dependency 'rexml', '>= 3.3.6', '< 4.0'
s.add_runtime_dependency 'nkf' # required for older CFPropertyList versions on Ruby 3.4
s.add_runtime_dependency 'base64' # required for older CFPropertyList versions on Ruby 3.4

## Make sure you can build the gem on older versions of RubyGems too:
s.rubygems_version = '1.6.2'
Expand Down