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

Fatal error #4

Closed
tempire opened this issue Jul 25, 2018 · 1 comment
Closed

Fatal error #4

tempire opened this issue Jul 25, 2018 · 1 comment

Comments

@tempire
Copy link

tempire commented Jul 25, 2018

find . -name "*.swift" | xargs SwiftGenStrings

Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=260 "The file “Supporting” couldn’t be opened because there is no such file." UserInfo={NSFilePath=./Pods/Log/Source/Supporting, NSUnderlyingError=0x7fd7c5007b80 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}: file /BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-902.0.48/src/swift/stdlib/public/core/ErrorType.swift, line 184

@juraj-blahunka
Copy link
Member

@tempire You might want to modify the find command to exclude any external dependencies, like Pods or Carthage.
Please try (or modify according to your project structure or neeeds):

find . \( -name "*.swift" ! -path "./Carthage/*" ! -path "./Pods/*" \) | xargs SwiftGenStrings

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

2 participants