Following the http://www.otierney.net/objective-c.html#gettingstarted tutorial, I got the following error:
".objc_class_name_NSObject", referenced from:
.objc_class_name_Fraction in Fraction.o
"_objc_msgSend", referenced from:
It was caused because there was missing a link to a framework: "Foundation.framework".
So, you can add existing frameworks to you project in XCode4 following these steps:
references:
http://forums.macnn.com/79/developer-center/391122/newby-trying-learn-obj-c-xcode/
http://stackoverflow.com/questions/3352664/how-to-add-existing-frameworks-in-xcode-4
".objc_class_name_NSObject", referenced from:
.objc_class_name_Fraction in Fraction.o
"_objc_msgSend", referenced from:
It was caused because there was missing a link to a framework: "Foundation.framework".
So, you can add existing frameworks to you project in XCode4 following these steps:
- In the project navigator, select your project
- Double click your target
- Select the 'Build Phases' tab
- Open 'Link Binaries With Libraries' expander
- Click the '+' button
- Select your framework (Foundation.framework)
references:
http://forums.macnn.com/79/developer-center/391122/newby-trying-learn-obj-c-xcode/
http://stackoverflow.com/questions/3352664/how-to-add-existing-frameworks-in-xcode-4
No comments:
Post a Comment