I have been loading data from a plist fine in a couple view controllers using this code:

```
if let path = NSBundle.mainBundle().pathForResource("eBaySiteIDs", ofType: "plist") {

        if let dict = NSArray(contentsOfFile: path) as? Array<AnyObject> {
            // use swift dictionary as normal
            countryArray = dict as? [[String : AnyObject]]
        }
    }

```

This runs properly in debug mode, but as soon I build for release mode, the app crashes when trying to access the countryArray, saying it is nil.

Any ideas? 

Thanks

**EDIT**

If I try to log the array using 

```
NSLog("\(NSArray(contentsOfFile: path))")

```

I get the correct values.