I am using the following line of code to create `CLBeaconRegion` and then called `location manager` in following way:

```
 let beaconRegion:CLBeaconRegion = CLBeaconRegion(proximityUUID: beaconUUID as UUID,
                                                                 identifier: beaconIdentifier)

///  save a beacon region for stopping after.
                (beaconInfo as! BeaconInfo).beaconRegion = beaconRegion

                ///  start monitoring the specified region.
                self.locationManager.startMonitoring(for: beaconRegion)

                ///  start calculating ranges for beacons in the specified region.
                self.locationManager.startRangingBeacons(in: beaconRegion)

```

The code inside location Manager delegate is :

```
func locationManager(_ manager: CLLocationManager,
                         didRangeBeacons beacons: [CLBeacon],
                         in region: CLBeaconRegion) {

        ///  it may be assumed no beacons that match the specified region are nearby.
        if beacons.count == 0 {
            print ("beacon.count = 0")
            return
        }
else
{
     \\executed rest of the code
}

```

where beaconUUID is the UUID of my iBeacon and beaconIdentifier is the identifier string. The issue is that as my app will detect generic iBeacons, so I might not be aware of their beaconIdentifier string (which is not the UUID, just an identifier). Is there any way in which I can pass this as a generic string or nil (to remove the dependancy)? 

Edit: Added CLLocationManager code