I have created a bluetooth peripheral manager. I am adding some services to this peripheral manager using [self.peripheralManager addService:myService].
For iOS7.0
@Paulw has answered this correctly in the comments. Below is the answer
There is change between ios7 and ios8 in that ios7 permitted operations before the Bluetooth hardware was initialised (power on state) and issued a warning. In ios8 it just fails.
So we must wait for the peripheralManagerDidUpdateState:
callback before adding any service.