Reputation: 3203
I am getting "Cyclic dependency in module 'Foundation': Foundation -> UIKit -> QuartzCore -> Foundation" Error when i build my project.how to resolve it. i have refer below links answer but its not work for me.I have remove derived data and quit xcode many times still i am getting this error.
Upvotes: 5
Views: 8126
Reputation: 254
This might generalise your situation - You have imported class B into class A and now you are importing class A in class B, so in second case rather than importing class A in B use forward declaration - Use @class A in class B (second case). If you are using .pch file, you might be adding Framework or Headers twice. In .pch file and in other files as well. In your case try removing the UIKit and Foundation frameworks either from .pch file or from other place where you are adding them repetitively.
Upvotes: 1
Reputation: 11
Maybe you can break the cyclic import by #import
one in the .m file
,or you can learn to use @import
the new feature which use the module map made dependency.
Upvotes: 1