Variable issue during transition from iOS 4 to iOS 5+ARC: “Passing address of non-local object to _autoreleasing parameter for write-back”
问题 The "old" way that I was doing this in iOS 4 was by declaring the object in the header file and passing the object for a write-back to handle an error parameter. NSError *error; For reasons beyond my limited knowledge I could not continue this pattern in iOS5 and received the error: "Passing address of non-local object to _autoreleasing parameter for write-back" //Instantiate an instance of AVAudioSession object AVAudioSession *audioSession = [AVAudioSession sharedInstance]; //Setup playback