XCode 4.5 -OCMockObserver: unexpected notification observed

Discussion of the OCMock framework. If you have patches we would prefer you to send them to the mailing list, but attaching them to a topic is possible, too.

XCode 4.5 -OCMockObserver: unexpected notification observed

Postby gtregoni » 03 Oct 2012, 03:57

Hi all,

After upgrading to XCode 4.5 and compiling the latest source I've started observing the following error for my observer mocks:
Code: Select all
OCMockObserver: unexpected notification observed: NSConcreteNotification 0x212a150 {name = mytestnotificationname; userInfo = {
    payload =     {
        aps =         {
            alert = "Example alert";
        };
    };
}}


In XCode 4.4.1 my previous test was passing?

Has anyone else seen this with the latest code / are there any workarounds?

Thanks,
Glen
gtregoni
 
Posts: 3
Joined: 03 Oct 2012, 03:48

Re: XCode 4.5 -OCMockObserver: unexpected notification obser

Postby gtregoni » 05 Oct 2012, 04:05

I've downloaded and run the latest ocmock library code off github (3a377e6120) against XCode 4.4.1 and these tests pass. For some reason something about XCode 4.5 are disrupting notification validation?
gtregoni
 
Posts: 3
Joined: 03 Oct 2012, 03:48

Re: XCode 4.5 -OCMockObserver: unexpected notification obser

Postby gtregoni » 16 Oct 2012, 20:32

Also this seems limited to the iOS 6.0 Simulator - iOS Simulator 5.1 seems fine (on XCode 4.5.1)
gtregoni
 
Posts: 3
Joined: 03 Oct 2012, 03:48


Return to OCMock