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

Can't Read .swiftdeps ? #67

Open
yingmu52 opened this issue Jul 23, 2021 · 3 comments
Open

Can't Read .swiftdeps ? #67

yingmu52 opened this issue Jul 23, 2021 · 3 comments

Comments

@yingmu52
Copy link

When I run
./generate-objc-dependencies-to-json.rb -w -s "swift-project-analyzer"

I get the following error

Cannot read file /Users/xinyi/Library/Developer/Xcode/DerivedData/OnePlayer-cqtdohbytzcdggcjripigujhpuhx/Build/Intermediates.noindex/OnePlayer.build/Debug-iphonesimulator/OnePlayer.Example.SwiftUI.build/Objects-normal/x86_64/SwiftUIOnePlayerViewModel.swiftdeps : This is possibly because output file was changed:(/Users/xinyi/Library/Developer/Xcode/DerivedData/OnePlayer-cqtdohbytzcdggcjripigujhpuhx/Build/Intermediates.noindex/OnePlayer.build/Debug-iphonesimulator/OnePlayer.Example.SwiftUI.build/Objects-normal/x86_64/SwiftUIOnePlayerViewModel.swiftdeps): control characters are not allowed at line 1 column 1

@Nikoloutsos
Copy link

I face same problem:

  • Xcode 12.5.1
  • Simulator iPhone 8 (14.4)

@Nikoloutsos
Copy link

It works well if you run in Xcode 12.4!
I guess something has changes in Xcode 12.5

@cbh2000
Copy link

cbh2000 commented Oct 29, 2021

If my memory is correct, that's when Swift switched to binary .swiftdeps. There is a utility to convert them back into text, but it's in the Swift source and someone would need to compile it.

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

3 participants