Copy Files Build Phase error: Framework "not found", but I see it
Copy Files Build Phase error: Framework "not found", but I see it
- Subject: Copy Files Build Phase error: Framework "not found", but I see it
- From: Jerry Krinock <email@hidden>
- Date: Tue, 07 Aug 2012 05:07:03 -0700
I'm migrating a Mac app project from Xcode 3 to Xcode 4. Project has 15 targets, including several private frameworks that need to be packaged into the app. All seem OK except the Sparkle framework, which I had removed before migrating, and re-added later because I wanted to update to Sparkle's latest version.
Problem: It builds Sparkle.framework, and puts this product with the others, but for some reason the Copy Files Build Phase (which I have named "Copy Frameworks Build Phase") complains "No such file or directory".
***** BUILD TRANSCRIPT for "Copy Sparkle.framework" *****
PBXCp /Users/jk/Library/Developer/Xcode/DerivedData/BookMacster-hdrekbihzhcgkngzhdqroeilxfyd/Build/Products/Debug/Sparkle.framework /Users/jk/Library/Developer/Xcode/DerivedData/BookMacster-hdrekbihzhcgkngzhdqroeilxfyd/Build/Products/Debug/BookMacster.app/Contents/Frameworks/Sparkle.framework
cd /Users/jk/Documents/Programming/Projects/BookMacster
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/jk/Library/Developer/Xcode/DerivedData/BookMacster-hdrekbihzhcgkngzhdqroeilxfyd/Build/Products/Debug/Sparkle.framework /Users/jk/Library/Developer/Xcode/DerivedData/BookMacster-hdrekbihzhcgkngzhdqroeilxfyd/Build/Products/Debug/BookMacster.app/Contents/Frameworks
(null): error: /Users/jk/Library/Developer/Xcode/DerivedData/BookMacster-hdrekbihzhcgkngzhdqroeilxfyd/Build/Products/Debug/Sparkle.framework: No such file or directory
*****
Is that "(null)" in the error message a clue?
***** TERMINAL TRANSCRIPT SHOWING THAT IT *IS* THERE *****
Air1:~ jk$ stat -x /Users/jk/Library/Developer/Xcode/DerivedData/BookMacster-hdrekbihzhcgkngzhdqroeilxfyd/Build/Products/Debug/Sparkle.framework
File: "/Users/jk/Library/Developer/Xcode/DerivedData/BookMacster-hdrekbihzhcgkngzhdqroeilxfyd/Build/Products/Debug/Sparkle.framework"
Size: 204 FileType: Directory
Mode: (0755/drwxr-xr-x) Uid: ( 501/ jk) Gid: ( 501/ (501))
Device: 1,3 Inode: 3288582 Links: 6
Access: Tue Aug 7 04:57:29 2012
Modify: Tue Aug 7 04:57:29 2012
Change: Tue Aug 7 04:57:29 2012
*****
Maybe Sparkle.framework is indeed not there when PBXCp needs it, although it is there seconds later when I look for it? But that would only explain the problem half the time because of this…
A possibly related issue is that the Access, Modify and Change times of that Sparkle.framework directory get updated on *alternate* builds. In other words,
• Delete Sparkle.framework from products directory.
• Build. It reappears.
• Build again, nothing happens.
• Build again, it gets new dates.
• Build again, nothing happens.
• Build again, it gets new dates.
…
I tried moving the Copy Files Build Phase Copy Frameworks Build Phase to happen last, but all behaviors are unchanged.
What might be going on here?
Thanks,
Jerry Krinock
_______________________________________________
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