Do you know how to import the KalViewController opensource library for iPhone in Xcode 4?
Asked
Active
Viewed 918 times
1
-
1Perhaps you could add a link to tell us which library you mean? – Sandro Meier May 07 '11 at 22:19
2 Answers
3
Update
The best way right now is to use CocoaPods with
pod 'Kal'
Old answer
I think you should create a new group folder under the Classes folder of your projects, drag into it all the .m and .h files of the Kal library, telling to Xcode to copy the files if they are missing. This way they will be added to the project and automatically to the targets.
From now on you can use all the imports of the .h files from the library in your whole project.
Does this help?

marzapower
- 5,531
- 7
- 38
- 76
-
I see what you're saying. I actually went with Terry's approach as KalViewController library provides you the whole project. If I do the files separately then I would have to add the pictures and it just seems cumbersome. Either way, thanks! – Sahir May 09 '11 at 04:11
2
I followed the Xcode 4 docs for creating a workspace with multiple projects.
It handles the dependencies for you.

Terry Wilcox
- 9,010
- 1
- 34
- 36
-
Thanks! It worked though I did have Xcode crash on me several times for some reason... – Sahir May 09 '11 at 04:12
-