jonreid / OCMockito

Mockito for Objective-C: creation, verification and stubbing of mock objects
MIT License
991 stars 118 forks source link

Swift Static Declaration of 'times' follows non-static declaration #138

Closed atacengiz closed 7 years ago

atacengiz commented 8 years ago

I tried to add OCMockito and OCHamcrest to my Objective-c bridging header but i can not build the project because of Swift Static Declaration of 'times' follows non-static declaration error on OCMockito.h line 269 (I am using version 4.0.1) with XCode 8.0. What should i do to fix this error ?

jonreid commented 7 years ago

I'm surprised to find anyone trying to use OCMockito in Swift! I'm afraid your choices are either: