0

The app runs fine but when I go "Profile" I'm getting the following error:

clang: error: no such file or directory: '/Users/J/Library/Developer/Xcode/DerivedData/MyApp-ajnudfmshjcjmphggazldsfhzvko/Build/Intermediates/PrecompiledHeaders/MyApp-Prefix-atybgvarhtjcxtdhqwgxnbhqqgou/MyApp-Prefix.pch'

I think this may have something to do with installing cocoa pods, which I've since removed. How can I stop xcode from adding a second .pch ?

** EDIT **

I recently looked at the Precompiled Headers of another app and noticed that it was also doing the addition .pch but this app was profiling fine. I didn't notice an additional file of MyApp.pch.d which is not in my other app. I have no idea what that means but as far as I understand it shouldn't be effecting whether or not I can profile. I compared both the projects and their Prefix Header properties and they match, relatively.

Jacksonkr
  • 31,583
  • 39
  • 180
  • 284
  • Sounds like it's not named correctly in your file system. Try opening the directory in Terminal and checking to make sure the source .pch file is named correctly. – Ian MacDonald Jan 12 '15 at 15:33
  • @IanMacDonald What do you mean "not named correctly"? It's adding a .pch so for that reason I know it's not named correctly. The Prefix Header in Build Settings is set to `MyApp/MyApp-Prefix.pch` but no matter what I put in there llvm is looking for an extra .pch. It's very aggrivating. – Jacksonkr Jan 12 '15 at 15:50
  • The file exists on your file system independent of what you enter into Build Settings. Your compiler is looking for a file named `MyApp-Prefix.pch`. The generated folder has a `MyApp-Prefix.pch.pch`. The `MyApp-Prefix.pch.pch` is copied from your project's folder tree. You need to find this file and rename it to be the file that your Build Settings indicate. – Ian MacDonald Jan 12 '15 at 16:04
  • @IanMacDonald I've been out of the country so thanks for be patient on my reply. I found the project file and it is named "MyApp-Prefix.pch" which looks correct to me. – Jacksonkr Jan 19 '15 at 16:42
  • Are you looking at in Finder? If you aren't showing file extensions in Finder, you won't be able to definitively know the full filename. – Ian MacDonald Jan 19 '15 at 16:46
  • @IanMacDonald Excellent point but unfortunately that is the unix name. – Jacksonkr Jan 19 '15 at 23:10

1 Answers1

0

The ONLY way I've been able to resolve this issue was by creating a new project and painstakingly moving each and every asset over until the app worked in the new environment. Problem solved.

Jacksonkr
  • 31,583
  • 39
  • 180
  • 284