Open petaren opened 6 years ago
Weird. You must have some character that the regex function doesn't like in one of your source files. I'd need to have more info about the specifics to fix
I have the same issue.
@oleghnidets if there is any way you can provide a test file that causes this failure that would be helpful.
While debugging, I noticed fus goes very deeply into the Pods folder analyzing if swift class is used in ObjC classes and failed on this file:
.../Pods/Postal/dependencies/build/macos/include/libetpan/clist.h
This file online: https://github.com/dinhviethoa/libetpan/blob/master/src/data-types/clist.h
The file which was analyzing by fus at the moment of failure is just the first available file containing that:
//
// EmptyCase.swift
//
import XCTest
/// Empty test case to make Tests target compilable until any platform-specific tests would be added
class EmptyCase: XCTestCase {}
Workaround for me was:
10c10
< .glob("#{path}/**/*.swift")
---
> .glob("#{path}/**{,/*/**}/*.swift")
13c13
< @obj_c_paths = Dir.glob("#{path}/**/*.m") + Dir.glob("#{path}/**/*.h")
---
> @obj_c_paths = Dir.glob("#{path}/**{,/*/**}/*.m") + Dir.glob("#{path}/**{,/*/**}/*.h")
15,16c15,16
< @ib_paths = (Dir.glob("#{path}/**/*.xib") +
< Dir.glob("#{path}/**/*.storyboard"))
---
> @ib_paths = (Dir.glob("#{path}/**{,/*/**}/*.xib") +
> Dir.glob("#{path}/**{,/*/**}/*.storyboard"))
I installed fus using
sudo gem install fus
and tried running it in the root of my project but got the following error message: