Totally baffled by Xcode 4
Totally baffled by Xcode 4
- Subject: Totally baffled by Xcode 4
- From: Graham Cox <email@hidden>
- Date: Fri, 12 Aug 2011 15:26:01 +1000
I have a framework project and several apps that use it.
Looked to me like the new workspace feature was a good idea - I can add all these related projects to the one workspace and have the framework built and kept up to date for any one of them. Xcode 4 claims that these interdependencies tare detected automatically and managed automatically.
Xcode 4 made a mess of importing my Xcode 3 project with these various interdependencies, so I decided to start over and keep it clean by making new projects in the workspace and manually adding all the source code to them. The framework builds successfully.
I can't for the life of me work out how to get the app project to import the framework project, copy it to its Resources/Frameworks folder and link it. It can't even find its header file.
The obvious way seemed to me to simply drag the .framework 'product' from the framework project into the 'Frameworks' group of the app project, but needless to say that's far too simple (the drag isn't accepted). So I added the framework to the app manually in the 'Linked Frameworks and Libraries' panel (Targets > Summary) but this seemed a bit odd since I had to dig down into Xcode's private build folder to find the darn thing. Still, it added the framework and a search path for it. Still won't build though, and still can't find the framework headers, which is a showstopper - the framework is 99% of the app.
How do I do this? I just need to embed the framework in the app and have it build when I build the app. This ought to be simple - it never was all that simple in Xcode 3, but at least it worked.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden