लिंकर कमांड लाइन उत्पादन तुम क्या XCode कोशिश करने के लिए उपयोग कर रहा है के बारे में बहुत बता देंगे:
ld: framework not found Message
collect2: ld returned 1 exit status
मैं इस ट्यूटोरियल का पालन किया: त्रुटि संदेश नीचे
-(void)showEmailModalView {
MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
picker.mailComposeDelegate = self; // <- very important step if you want feedbacks on what the user did with your email sheet
NSString * emailSubject = [[NSString alloc] initWithFormat:@"iPhone Subject Test"];
[picker setSubject:emailSubject];
NSString * content = [[NSString alloc] initWithFormat:@"iPhone Email Content"];
// Fill out the email body text
NSString *pageLink = @"http://mugunthkumar.com/mygreatapp"; // replace it with yours
NSString *iTunesLink = @"http://link-to-mygreatapp"; // replate it with yours
NSString *emailBody =
[NSString stringWithFormat:@"%@\n\n<h3>Sent from <a href = '%@'>MyGreatApp</a> on iPhone. <a href = '%@'>Download</a> yours from AppStore now!</h3>", content, pageLink, iTunesLink];
[picker setMessageBody:emailBody isHTML:YES]; // depends. Mostly YES, unless you want to send it as plain text (boring)
picker.navigationBar.barStyle = UIBarStyleBlack; // choose your style, unfortunately, Translucent colors behave quirky.
[self presentModalViewController:picker animated:YES];
[picker release];
[content release];
[emailSubject release];
}
- (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error
{
[self dismissModalViewControllerAnimated:YES];
}
मेरे त्रुटि संदेश यह और फ्रेमवर्क समेत अपनी बाइनरी का निर्माण पथ और फ्रेमवर्क में शामिल है जो ढांचे में शामिल है। वहां से आप यह देखने में सक्षम होंगे कि एक्सकोड क्या उपयोग कर रहा है और आपकी सेटिंग्स से क्या गुम हो सकता है। कमांड लाइन आउटपुट बिल्ड परिणाम विंडो में आउटपुट पैन में से एक में पाया जा सकता है।
देखें http://stackoverflow.com/questions/3352664/how-to-add-existing-frameworks-in-xcode-4 – Stan