Error Message In Xcode

hi i have recintly got Xcode for my computor and i am learning how to use the code. I am lerning form "tuturial for Xcode app" and copyed the code over for the first app i made there is a error message and i can not fix it. Here is the code and error
//  ViewController.m
//  First Program alart iphone
//  Created by Jennifer Sheridan on 18/08/13.
//  Copyright (c) 2013 Oscar Winter. All rights reserved.
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
-(IBAction)sayhello:(id)sender{
    UIAlert View *alert = [ULAlert alloc]
                           initwithtitle:@"hello message"
                           message:@"hello There everyonr"
                           delegate:self
                           cancelbuttontitle:@"ok"
                           otherbuttontitles:nil];
- (void)viewDidLoad
    [super viewDidLoad];
  // Do any additional setup after loading the view, typically from a nib.
- (void)didReceiveMemoryWarning
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
@end
if you have any idear please post a responcie
thanks
osky4

The class names, method names, and parameter names must all be spelled correctly, including proper case. You must either use code completion to make sure they are valid, or carefully read the class reference documentation on the specific class/method/parameters. This information is usually one click away in Xcode Quick Help inspector. For example, the UIAlertView class reference clearly describes the parameters.
http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIAlertView _Class/UIAlertView/UIAlertView.html
initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:
Convenience method for initializing an alert view.
- (id)initWithTitle:(NSString *)title message:(NSString *)message delegate:(id)delegate cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitles:(NSString *)otherButtonTitles, ...

Similar Messages

  • Error Message in xcode: Command /usr/bin/codesign failed with exit code 1

    I am attempting build my iPad application on my device and I have went though the provisioning and successfully created an App ID, provisioning, etc. and when i 'Build and go' i get this error message:
    *Command /usr/bin/codesign failed with exit code 1*
    The only thing that I could think of that might be causing this is that when I 'Build and Go' on my device it come up with this pop-up message from xcode twice:
    +codesign wants to sign using key "MY NAME" in your keychain.+
    +Do you want to allow access to this item?+
    Please Help.

    Hey jamez97,
    In Xcode, top left hand corner of the window. Access the drop down menu, make sure that you have;
    1) Set to run on the DEVICE
    2) Selected DEBUG
    3) Connected your device
    click build and run...adjusting these sometimes works when i have the same error as you.
    You should have also added your device the provisioning profile you made. If you haven't done this, you can do it via the iOS Devcentre --> provisioning portal -->launch assistant.
    Hope this helps...if it doesn't, post back and somebody else may be able to give you the solution.
    j
    Message was edited by: james_coleman01
    Message was edited by: james_coleman01

  • Hi all, i am trying to install Xcode 3.2.5 & Xcode 4.2 in iMac (Mac OS X 10.6.8) , I am getting error message as "Installation Failed". somebody can help me. Thanks in advance.

    Hi all,
               I am trying to install Xcode 3.2.5 & Xcode 4.2 in iMac (Mac OS X 10.6.8) , I am getting error message as "Installation Failed". somebody can help me. Thanks in advance.

    I too have the same error while installing  xcode 4.2 in Mac os x 10.6.8.
    Can any one solve this issue.

  • Xcode clang exit code of 254 error message; what does it mean?

    I have tried to develop an iOS app on Xcode 4.3 and it has failed and quite with the message: clang exit code of 254.
    This has happened twice with the exact same error message. When it happened the first time, I closed my project, then quit Xcode and opened it again. I thought that I needed to flush my settings and should start over again to make sure that the error did not happen again. But it did.
    Can you tell me what this error message means and tell me what I need to do to keep it from happening again?
    Thank you.

    this happened to me alsi and it turned out to be the slightest error in my code. I simply went through my methods in the class where the crash was occuring and found a couple of simple mistakes that 4.2 was not bothered with and fixing the second one fixed it.

  • Hi, im getting an error message, "expected identifier"  and another one, "expected expression" when i try a c   program in xcode

    hi, im getting an error message, "expected identifier"  and another one, "expected expression" when i try a c   program in xcode

    You have errors in your C code. If you want anyone to be able to help you, you need to post the code. You also should tell us the version of Xcode you're using and the type of Xcode project you created for the C program.

  • Xcode distributing error messages

    hey @ all,
    we have just finished our iphone game and now we whant to distribute it in xcode, we set every thing like in the iphonedeveloper_program_user_guide_standard_programv2.pdf.
    we also watched the publishing on the app store.mov from the dev page und read the whole dev page discription, but we still get error messages while compiling.
    http://forum.unity3d.com/files/error_138.jpg
    http://forum.unity3d.com/files/error1_108.jpg
    please help.
    TIA

    Hello fordfor,
    Welcome to the Discussions Boards.
    This portion of the Discussions Boards is primarily an iPhone end-user forum.
    You may have better luck getting information regarding APP development/testing in the Developers resources:
    http://discussions.apple.com/category.jspa?categoryID=164
    http://developer.apple.com/iphone/
    Good luck with that APP,
    Charles H.

  • Xcode problem,  how do I get rid of doubled up warnings and error messages?

    One of my cocoa projects is always showing the compiler warnings and error messages twice. It is only happening in one project which indicates to me that it must be something in this particular project configuration.
    I have looked high and low for setting to control this behaviour in Xcode.
    There must be a way to correct this behaviour.
    I am using Xcode 3.1.4

    You have to get rid of the triggers....and cleaning up the code is the only way to do that. As you've noted, it only happens in one project.

  • Some applications will not open with an error message it is incomplete or broken

    A few applications like iChat, iSync and iCal will not open and has an error message that they are incomplete or broken. How do I fix them and how did they come to be this way? There are no updates to load.

    You probably ran a defective third-party "utility" such as "CleanMyMac" or "MacCleanse" that purports to "clean up" "junk" files. What it really does is to corrupt the operating system and many applications.   
    The first thing you need to do is remove that software according to the developer's instructions. Never install it, or anything like it, again. Then see below.
    If you don't already have a current backup, back up all data, then reinstall the OS.* You don't need to erase the startup volume, and you won't need the backup unless something goes wrong. If the system was upgraded from an older version of OS X, you may need the Apple ID and password you used.
    If you use FileVault 2, then before running the Installer you must launch Disk Utility and select the icon of the FileVault boot volume ("Macintosh HD," unless you gave it a different name.) It will be nested below another icon with the same name. Click the Unlock button in the toolbar and enter your login password when prompted. Then quit Disk Utility to be returned to the main screen.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    If you installed the Java runtime distributed by Apple and still need it, you'll have to reinstall it. The same goes for Xcode.
    *The linked support article refers to OS X 10.9 ("Mavericks"), but the procedure is the same for OS X 10.7 ("Lion") and later.

  • Internal Error when launching XCode 3.2.5

    I just installed XCode 3.2.5 but whenever I launch the program, I get an internal error message. The console backtrace for this error is included below. Additionally, trying to open a project or create a new project causes XCode to stop responding. Any ideas?
    1/2/11 10:27:44 PM Xcode[1185] [MT] Uncaught Exception:
    -[NSCFString unsignedLongLongValue]: unrecognized selector sent to instance 0x200031060
    Backtrace:
    0 0x00007fff80820796 __exceptionPreprocess (in CoreFoundation)
    1 0x00007fff806700f3 objcexceptionthrow (in libobjc.A.dylib)
    2 0x00007fff8087a110 +[NSObject(NSObject) doesNotRecognizeSelector:] (in CoreFoundation)
    3 0x00007fff807f291f __forwarding__ (in CoreFoundation)
    4 0x00007fff807eea68 CF_forwarding_prep0 (in CoreFoundation)
    5 0x00007fff87959afe _NSSetUnsignedLongLongValueForKeyWithMethod (in Foundation)
    6 0x00007fff879455f5 -[NSObject(NSKeyValueCoding) setValue:forKey:] (in Foundation)
    7 0x00000001165bb7c6 -[XCRemoteIPhone setValue:forUndefinedKey:] (in iPhoneRemoteDevice)
    8 0x00007fff879455f5 -[NSObject(NSKeyValueCoding) setValue:forKey:] (in Foundation)
    9 0x00007fff879540fd -[NSObject(NSKeyValueCoding) setValuesForKeysWithDictionary:] (in Foundation)
    10 0x00000001165b783f -[XCRemoteIPhone initWithPlistRepresentation:] (in iPhoneRemoteDevice)
    11 0x0000000100374629 +[XCRemoteComputer itemWithPlistRepresentation:] (in DevToolsCore)
    12 0x00000001000ce034 -[XCRemoteComputerManager init] (in DevToolsCore)
    13 0x000000010036d621 __54+[XCRemoteComputerManager sharedRemoteComputerManager]block_invoke0 (in DevToolsCore)
    14 0x00007fff874cec65 dispatchoncef (in libSystem.B.dylib)
    15 0x00000001000cdef1 +[XCRemoteComputerManager sharedRemoteComputerManager] (in DevToolsCore)
    16 0x0000000100002146
    17 0x00007fff87935a66 nsnotecallback (in Foundation)
    18 0x00007fff807c8000 __CFXNotificationPost (in CoreFoundation)
    19 0x00007fff807b4578 _CFXNotificationPostNotification (in CoreFoundation)
    20 0x00007fff8792c9ce -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation)
    21 0x00007fff809b16fd -[NSApplication finishLaunching] (in AppKit)
    22 0x00007fff809b1350 -[NSApplication run] (in AppKit)
    23 0x00007fff809aa1a8 NSApplicationMain (in AppKit)
    24 0x00000001000017a4
    25 0x0000000000000002

    Hi,
    One of main and primary reasons are that by default your mac is set to go in sleeping mode after 10 minutes and thus your harddisk also goes into sleep mode. This is done to ensure power saving.
    To change this setting, please goto system preferences--> power settings and change according to your neeeds.
    Jony

  • Error message for iTunes update. "The operation was cancelled.(3072)" What can I do?

    I get an error message:

    Quit iTunes and Xcode in all logged in users, and log out all other users — all users except the user performing the install.

  • Safari 7.0.6 crashes: Dyld Error Message: Symbol Not Found

    After I did the latest MacOS update (10.9.5) Safari (7.0.6) no longer runs. I repaired permissions and also rebooted in safe mode so I could potentially remove any spurious plug-ins, but the last time I did this was with MaxOS 6 so I have no idea where to look in the current version.
    The error message that pops up is:
    Process:         Safari [1279]
    Path:            /Applications/Safari.app/Contents/MacOS/Safari
    Identifier:      com.apple.Safari
    Version:         ???
    Build Info:      WebBrowser-7537085010017001~4
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [194]
    Responsible:     Safari [1279]
    User ID:         505
    Date/Time:       2014-09-26 08:16:17.066 +1000
    OS Version:      Mac OS X 10.9.5 (13F34)
    Report Version:  11
    Anonymous UUID:  84ADDFB5-CAD4-0759-3667-8E0B47E8E995
    Sleep/Wake UUID: 51EC656E-25AB-4167-810D-D7A644340E28
    Crashed Thread:  0
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Application Specific Information:
    dyld: launch, loading dependent libraries, ignoring DYLD_* env vars
    Dyld Error Message:
    Symbol not found: __ZN3JSC10JSDataView6s_infoE
    Referenced from: /System/Library/StagedFrameworks/Safari/WebCore.framework/Versions/A/WebCore
    Expected in: /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
    in /System/Library/StagedFrameworks/Safari/WebCore.framework/Versions/A/WebCore
    (insert a 'shed load' of other lines of log data which you probably don't need, right?)

    If you don't already have a current backup, back up all data, then reinstall the OS.* You don't need to erase the startup volume, and you won't need the backup unless something goes wrong. If the system was upgraded from an older version of OS X, you may need the Apple ID and password you used.
    If you use FileVault 2, then before running the Installer you must launch Disk Utility and select the icon of the FileVault startup volume ("Macintosh HD," unless you gave it a different name.) It will be nested below another icon with the same name. Click the Unlock button in the toolbar and enter your login password when prompted. Then quit Disk Utility to be returned to the main Recovery screen.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    If you installed the Java runtime distributed by Apple and still need it, you'll have to reinstall it. The same goes for Xcode. All other data will be preserved.
    *The linked support article refers to OS X 10.9 ("Mavericks"), but the procedure is the same for OS X 10.7 ("Lion") and later.

  • Getting an error when upgrading xcode

    hi
    currently,im getting an error when im trying to upgrade xcode from my mac to the latest version.
    the erros is like this:
    the product distribution file could not be certified.
    it may be damaged or was not signed.
    it happen when i trying to upgrade iphoto via app store as well.
    hope some one can help me to fix this.

    If you would like help from these user forums then saying what the error message was would be useful.

  • Error message in Terminal upon startup?

    Hi, I'm a new Mac user.
    I was installing a few things on my new MacBook Pro (XCode, XQuartz, X11, and Homebrew) when I noticed some funky error message that I get whenever I open Terminal.
    It says: -bash: export: `/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin': not a valid identifier.
    I am still getting used to my Mac after a decade of Windows, and I have no clue what this error means or how to fix it.  Could anyone enlighten me?

    Hi there,
    Sorry for just jumping in on this convo but it seems more relevant to my issue and I don't think creating a new topic would be advised.
    I have a similar issue. Whenever I open a new shell session / window I get the following output;
    Last login: Fri Aug  8 14:24:02 on ttys000
    Process name
    Warren-MacBook:etc warren$ Process name
    -bash: Process: command not found
    Warren-MacBook:etc warren$
    The line which says -bash: Process: command not found is whats bugging me.
    I tried to editing the following files;
    sudo vi /.bash_profile
    sudo vi /Users/warren/.profile
    None of them have any reference to a startup command which invokes a process.
    I have mlocate installed and when I run;
    locate .bash
    I only get the above two files.
    I have also looked at cron, and there are no jobs added so I'm really in the dark as to how to resolve this. If you are able to assist it would be much appreciated.

  • Printing from Preview produces error message "The file couldn't be opened".

    Hi,
    Ever since the upgrade to OS X 10.8, I get the error message "The file couldn't be opened" each time I want to print from Preview. I just have to click "OK" and then everything prints fine, but if anyone knows how to get rid of this message, it would be even better!
    I have run "Verify disk permissions" without success.
    The system is on an SSD volume whereas my home volume is on an internal HD. But other users with (smaller) accounts residing on the system volume have the same problem.
    Each time I open the print dialog, the following message appears in the logs:
         com.apple.Preview.TrustedBookmarksService[2159]: Failure to de-serialize bookmark data file.
    I removed  files related to Preview in ~/Library/Preferences/
    There is no *.plist file in ~/Library/Application Support/Preview
    Thanks!

    Pages 5.2 Mac OSX 10.9.2
    Start Pages app
    Create a blank document
    File > Save or <Command>+S
    Select Mac Device and find your user folder or favorite, Desktop (not iCloud)
    Error: the file "Untitled.pages" couldn't be opened!?!
    Repeat giving the document a different name and it works
    Since when do we write error messages with "n't"?
    Usually a well written error message offers a suggestion as to what you might do about it?
    Since it says opened and I clicked on Save, there is a bug in there somewhere.
    All I was trying to do today was copy and paste some text from a website into numbers spreadsheet
    Both Edit > Paste options but the text in one cell so I tried to save it as a text file first to try and import the data
    Text Edit does not have a text only export format so before loading Terminal and starting vi or emacs, I tried pages. I'll go try XCode's editor or my Windows 7 vm with notepad and openoffice
    I miss the old Pages with the Appleworks importer, this one needs more Quality Assurance Testing IMHO
    WWSJD "What Would Steve Jobs do?"

  • Need A Fix For Error Message Safari 5.1.7 OS X Lion 10.7.4

    When trying to open bingo on a Will Hill gambling site in Safari 5.1.7 OS X Lion keep getting this error message.
    This worked perfect a few month ago when i last used it and it opens fine if i use Firefox.
    Have reset Safari and Reset the Cache and still the same Error message.
    An error has occurred.
    You may need to refresh the application.
    Please contact customer support if the problem persists.
    Click here to close this message.
    Your session has timed out.
    After the current game has completed please log back into the application.

    If you don't already have a current backup, back up all data, then reinstall the OS.* You don't need to erase the startup volume, and you won't need the backup unless something goes wrong. If the system was upgraded from an older version of OS X, you may need the Apple ID and password you used.
    If you use FileVault 2, then before running the Installer you must launch Disk Utility and select the icon of the FileVault startup volume ("Macintosh HD," unless you gave it a different name.) It will be nested below another icon with the same name. Click the Unlock button in the toolbar and enter your login password when prompted. Then quit Disk Utility to be returned to the main screen.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    If you installed the Java runtime distributed by Apple and still need it, you'll have to reinstall it. The same goes for Xcode.
    *The linked support article refers to OS X 10.9 ("Mavericks"), but the procedure is the same for OS X 10.7 ("Lion") and later.

Maybe you are looking for

  • Motion-created QuickTime not playing back properly

    I have a small animation created in Motion that I imported into Final Cut Pro and inserted into my Timeline. It looks alright on my external NTSC monitor but when I change my AV settings to Digital Desktop Display -Full Screen and monitor it on my Ci

  • Why can't I create a new landscape document in Pages on the ipad?

    I can create a keynote landscape page on my iPad. I can create a landscape pages document on my Mac, email to myself, open on the iPad and it is there, yet I cannot create a new landscape document on my ipad, this is crazy?

  • LSI 9650SE-12ML RAID Card - Can this be hooked up to a SAS expander?

    I recently acquired a SuperMicro chassis that has a SAS2 expander backplane. It has SFF-8087 ports on it.http://www.supermicro.com/manuals/other/BPN-SAS2-846EL.pdfI made a post on another forum and someone mentioned that the card couldn't be used wit

  • G/L Account Post

    Hi, SAP Version : 4.6 On using the BAPI : BAPI_ACC_EMPLOYEE_PAY_POST to post the G/L the message "Document Posted Successfully" gets returned. But on using BAPI_TRANSACTION_COMMIT the "Update Termination Error" appears. Assist me in posting the G/L s

  • Axis error when calling deployed service on weblogic

    Hi, I am trying to deploy the simple HelloWorld service using an .ear file on the weblogic8.1 server. But when I am trying to call the service, its giving me the error: **Fault - ; nested exception is:** ** org.apache.axis.ConfigurationException: Cou