0

I am recently open one of my old project and trying to run/build in XCODE 6.4 and as well as XCODE 7.0. But showing One error that "Could not build module 'UIKit' " enter image description here

even shows below error that could not build module CoreImage.h file and coreVideo.h file not found.

enter image description here enter image description here

I tried following things. But unable to solve please help me.

  • I removed framework and add in build setting.
  • In .pch file I removed UIKIT framework and add.
  • I clean derived data.
  • Even check .pch file path.
  • I set disable and than further enable "Use Standard Header Directory Searching".
  • Even try by changing deployment target but not work for me.

Help me please.

Meera
  • 309
  • 2
  • 14
  • Just a tip: This occurred when I accidentally typed something in `UICollectionView.h`, replacing it physically inside sdk folder with another fresh copy of this header from my friend's sdk solved this. – Adil Soomro Feb 17 '17 at 12:23

2 Answers2

1

Finally got solution, I go through target > shown in folder and here i found there is one corevideo framework and i just removed it and try to build/run app and its worked successful :)

Meera
  • 309
  • 2
  • 14
0

I did the following process to solve this problem of not finding the UIKit,

  • I cleaned the devided data;
  • I checked to see if any of the Foundation files had changed.

I advise you to check in the Foundation for these files, CoreImage.h and coreVideo.h to see if you do not have any changed files in your root.

  • 1
    Wait - so you put system framework headers into source control? That's a bad idea! Don't do that. In Xcode settings there's a checkbox somewhere to allow "Automatically unlock files" (or something along those lines). Just disable that checkbox and you're not able to change a header without a popup warning from Xcode. – HAS Dec 01 '16 at 16:53
  • This is not present in my Xcode. So to tell him to see if there was any change in the Foundation files. – Vinicius Carvalho Dec 01 '16 at 18:07
  • It's been around for a very long time, it's right there in settings: http://imgur.com/a/ddkNv – HAS Dec 01 '16 at 18:13