IOS 6.0 xcode 4.5 compilation errors #import code held in files outside of the class

我的梦境 提交于 2019-12-08 06:39:29

I think I know what the problem might be. The methods that I'm importing are fully implemented, that is, they're not headers. These full methods are #imported after my @implementation line.

I added the method spec, in the form of a .h file as a private class inbetween my @interface and my @end as part of a private method declaration within the @implementation.

I'm perhaps not making sense but essentially, Xcode 4.3.2 seemed to be happy to have all of these methods import in between the @implementation and @end. But Xcode 4.5 utterly does not. It requires the headers defined too.

I'm not sure that it's related to your 'Object Orientation' or lack there of. As of Xcode 4.5, the minimum deployment target is iOS 4.3. I had a header import error on a recent project after migrating to Xcode 4.5 where my deployment target was 4.0. Changing that to 4.3 fixed it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!