> On Jan 4, 2016, at 1:55 PM, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Jan 4, 2016, at 12:25 , Doug Hill <xcodeus...@breaqz.com > <mailto:xcodeus...@breaqz.com>> 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 (Xcode-users@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to arch...@mail-archive.com