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

typeMismatch error when opening a xcodeproj #199

Closed
Gocy015 opened this issue Dec 20, 2017 · 2 comments
Closed

typeMismatch error when opening a xcodeproj #199

Gocy015 opened this issue Dec 20, 2017 · 2 comments

Comments

@Gocy015
Copy link

Gocy015 commented Dec 20, 2017

Hi,
My Project uses cocoapods to manager third-party library dependencies. Since XCWorkspace
only has limited functionality, i instead try to initialize a Xcodeproj instance.

However, the following code throws an error:

self.proj = try XcodeProj(path: Path("/MyProject/MyProject.xcodeproj"))
typeMismatch(Swift.Int, Swift.DecodingError.Context(codingPath: [xcproj.PBXFileReference.(CodingKeys in _01A779CB452310B36A55F2992EC68B42).fileEncoding], debugDescription: "Expected to decode Int but found a string/data instead.", underlyingError: nil))

I've opened my project and searched for keyword fileEncoding, all my fileEncoding = statement are followed by an integer.

@welcome
Copy link

welcome bot commented Dec 20, 2017

Thanks for opening your first issue here! Be sure to follow the issue template!

@Gocy015
Copy link
Author

Gocy015 commented Dec 20, 2017

sorry, i was using a very old version.

@Gocy015 Gocy015 closed this as completed Dec 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant