Closed F1248 closed 1 month ago
@F1248 would you mind including a small Xcode project where we can reproduce the issue?
@pepicrft
I created this project from scratch using Xcode 16.1 beta 2 (16B5014f):
Create New Project…
→ Multipl
→ App
% cd Test
% periphery scan --setup
Welcome to Periphery!
This guided setup will help you select the appropriate configuration for your project.
* Inspecting project...
error: (DecodingError) typeMismatch(Swift.Int, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "preferredProjectObjectVersion", intValue: nil)], debugDescription: "Expected to decode Int but found a string instead.", underlyingError: nil))
I can reproduce this as well on a fresh iOS project created with Xcode 16 (16A242d).
I opened a PR addressing the issue
Can confirm your PR fixes the issue! Thanks for the quick fix!
Context 🕵️♀️
Xcode 16.0
(objectVersion = 77
)project.pbxproj:
What 🌱
When I try to scan my project with Periphery, that uses XcodeProj, with
periphery scan
, I get this error message:error: (DecodingError) typeMismatch(Swift.Int, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "preferredProjectObjectVersion", intValue: nil)], debugDescription: "Expected to decode Int but found a string instead.", underlyingError: nil))
It seems that for my project, #854 doesn't work as expected.