Thank you @helming, here it is, this way it won't compile into the Simulator binary + added calls to CFRelease:
#if !TARGET_IPHONE_SIMULATOR
CFArrayRef interfaces = CNCopySupportedInterfaces();
CFDictionaryRef networkInfo = CNCopyCurrentNetworkInfo(CFArrayGetValueAtIndex(interfaces, 0));
NSString *ssid = CFDictionaryGetValue(networkInfo, @"SSID");
CFRelease(interfaces);
CFRelease(networkInfo);
#endif