The .swift file is part of an iOS ObjC static lib. When I try to build, I get the build error.
Sleep is because I want to make sure that stopscan is done and then wan