-2

enter image description here

enter image description here

I have Copy a project folder from github into my new project But it's show some error.

So I have deleted that project(Deleted my new project too).

But suddenly xcode 6.1 show build error when i run in device for all my project also all in files. like attached images.

I dont know why it's happened.

Hope someone try to resolve this!

Mohanraj S K
  • 657
  • 4
  • 16
  • 1
    I think you deleted any framework accidentally, so check for framework i.e. Security Framework.. – Jitendra Feb 27 '15 at 04:31
  • If all your projects are giving error maybe something got messed up in derived data. Try clearing that up by using this http://stackoverflow.com/questions/24039932/how-to-delete-derived-data-in-xcode6 – Ganesh Somani Feb 27 '15 at 04:34
  • But its show an error all my projects's all files , also Build phases not show any library with name security . FYI: There is no error when run with simulator. – Mohanraj S K Feb 27 '15 at 04:36
  • Then try to Cleanup your xcode derived Data go to --->OS X Mavericks ▸ Users ▸ your system ▸ Library ▸ Developer ▸ Xcode ▸ DerivedData – Jitendra Feb 27 '15 at 04:44
  • hi @Jitendra i have cleared derived data from xcode menu Window->Organisor->projects and remove all items after restart xcode but its not done. – Mohanraj S K Feb 27 '15 at 05:09
  • @Mohanraj - Please attach a zoomed in screenshot so that the error is visible. What exact error are you getting? – z22 Feb 27 '15 at 05:37
  • Hi @z22 , please have a look my edited question. – Mohanraj S K Feb 27 '15 at 05:50
  • try adding security framework again – z22 Feb 27 '15 at 06:11
  • I cant able to add Security frame work because its not show in build phases search after click + button. – Mohanraj S K Feb 27 '15 at 06:54
  • @Mohanraj please check this path for security framework ,if unavailable then add security framework there and then add on your project from build phase... Path--> Applications ▸ Xcode ▸ Contents ▸ Developer ▸ Platforms ▸ iPhoneOS.platform ▸ Developer ▸ SDKs ▸ iPhoneOS.sdk ▸ System ▸ Library ▸ Frameworks – Jitendra Feb 27 '15 at 07:05

2 Answers2

0

Your first error:

Security/Security.h not found

Means that you need Security.Framework, seems you are removed it. For the rest errors it is seems you are removed Foundation.framework.

If you are using RCS(svn, git)(if not, I strongly recommend to start using it) , and you don't done any major changes, I will suggest to revert your last changes.

David V
  • 2,134
  • 1
  • 16
  • 22
  • Hi @IAmDav I have add Foundation.framework to Build phases. but cant find Security.Framework by seraching. also i have checked with old projects and there also the same issue as Build error . – Mohanraj S K Feb 27 '15 at 06:05
  • Hi @Mohanraj, What you mean by "old proejcts"? Do you have any working state of your app? then revert local changes. Do you getting the same errors after adding Foundation,framework? – David V Feb 27 '15 at 06:15
  • The Security.Framework in the iOS framework, so you can find it by typing the name, ,after + button in embedded binaries. – David V Feb 27 '15 at 06:17
  • old project means before meet this issue has some working projects, they also produce same build error when i ht run button. – Mohanraj S K Feb 27 '15 at 06:40
0

Thanks to every one to help me,

In this issue was happened even i am create a new project

But I have some work to continue , so simply i was reinstall my xcode application and its work now.

Mohanraj S K
  • 657
  • 4
  • 16