• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode warnings after pod install
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode warnings after pod install


  • Subject: Re: Xcode warnings after pod install
  • From: Doug Hill <email@hidden>
  • Date: Mon, 04 Jan 2016 14:10:33 -0800


On Jan 4, 2016, at 1:55 PM, Quincey Morris <email@hidden> wrote:

On Jan 4, 2016, at 12:25 , Doug Hill <email@hidden> wrote:

I’m seeing some wacky behavior from Xcode when I checkout a new git branch and run ‘pod install’ again. I sometimes see a lot of warnings of the form:

warning: /Users/user1/Library/Developer/Xcode/DerivedData/ModuleCache/1DYFEIW0SNQ0N/UIKit-1V5UHAPTOD24G.pcm: No such file or directory

My guess is that you’ve inadvertently checked in some files that are specific to your (or, each developer’s) Mac, so of course the unique subfolder name isn’t present when the project is freshly checked out.

Specifically, you should use .gitignore to exclude the “xcuserdata/“ subfolder, and I also (for historical reasons, not sure if it’s still helpful) ignore “project.xcworkspace/“.

Note that DerivedData/ModuleCache isn’t project specific. AFAIK, Xcode tries to share precompiled files between projects when possible. However, I think — I’m not sure — that precompiled headers for system frameworks is kinda moot these days — if your project settings have “Use Modules” set to YES (the current default), then I don’t think precompiled headers help, unless they’re precompiling a large set of your own headers too. It might be practical to stop using precompiled headers completely.

Thanks for the info.

I see our .gitignore is ignoring xcuserdata. I’ll look and see if there’s anything else that should be ignored but I don’t know if there’s any dev specific info being added to git. I remember we went through a lot of time and effort to check into git the minimum amount of the Xcode project/workspace.
In any case, I don’t totally understand why checking in extra Xcode info would result in out of date PCHs, particularly for system frameworks. It looks to me that Xcode is looking for a version of the cache that doesn’t exist or was rebuilt with a different ID. I’m not sure how I can do anything about this for Xcode.

w.r.t PCH

There’s still a lot of code that we statically link against and non-modules so we get a speedup with a PCH.

Thanks again for the reply!

Doug Hill

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Xcode warnings after pod install
      • From: Quincey Morris <email@hidden>
References: 
 >Xcode warnings after pod install (From: Doug Hill <email@hidden>)
 >Re: Xcode warnings after pod install (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Xcode warnings after pod install
  • Next by Date: Re: CopySwiftLibs never completes?
  • Previous by thread: Re: Xcode warnings after pod install
  • Next by thread: Re: Xcode warnings after pod install
  • Index(es):
    • Date
    • Thread