Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6863409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:46:45+00:00 2026-05-27T02:46:45+00:00

I am developping an iPhone App that sends SMS, I am using XCode 4.2

  • 0

I am developping an iPhone App that sends SMS, I am using XCode 4.2

basically I need it to generate a body and to add a phone number to the receipient .

I ran the application on an iPad and it crashed the application , when I went through the code and found out that the receipient line is making the problem when I remove this line it works perfectly fine and it directs to the messages application.

any clue how to avoid this problem ?

here is the Code I am using

MFMessageComposeViewController *sms = [[MFMessageComposeViewController alloc] init];
    if ([MFMessageComposeViewController canSendText]) {
        sms.recipients=[NSArray arrayWithObjects:@"1111111111"];
        sms.body= @"test";
        sms.messageComposeDelegate = self;
        [self presentModalViewController:sms animated:YES];
    }

the log :

GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Fri Sep 16 06:56:50 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys000
sharedlibrary apply-load-rules all
target remote-mobile /tmp/.XcodeGDBRemote-692-73
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
[Switching to process 7171 thread 0x1c03]
[Switching to process 7171 thread 0x1c03]
Re-enabling shared library breakpoint 1
Re-enabling shared library breakpoint 7
(gdb) 

I get the following green error :

Tread1 : Program Received signal :"EXC_BAD_ACCESS"

and the following warning(yellow)

Missing sentinel dispatch
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:46:45+00:00Added an answer on May 27, 2026 at 2:46 am

    writing this as answer because i do not have privilege to comment.
    i think the problem is with

    sms.receipients=[NSArrayWithObjects:@"1111111111"];
    

    which should be

     sms.receipients=[NSArray arrayWithObjects:@"1111111111"];
    

    EDIT :

      sms.receipients=[NSArray arrayWithObjects:@"1111111111",nil]; 
    

    or

      sms.receipients = [NSArray arrayWithObject:@"1111111111"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an iPhone app that sends in app email (using MFMailComposeViewController) and SMS
I am developing an app on iphone that lets user take photos, add comments
Im developing an iPhone app that has an groupchat. Im using the XMPP framework.
I am developing an iPhone app that delivers alerts at certain times using UILocalNotifications
I am developing an iphone app using xcode. I would like to automate the
I am developing iPhone app that let user login using their facebook account using
I'm developing an iPhone app that uses the built-in SQLite database. I'm trying to
I've been developing an iPhone app that uses a UIToolbar (in the context of
I am developing an iPhone app that displays several views, all acessed via Tab
I'm developing an iPhone app that features a tab-bar based navigation with five tabs.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.