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

  • SEARCH
  • Home
  • 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 942429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:16:14+00:00 2026-05-15T22:16:14+00:00

XCode is giving me a warning that I can’t figure out why. @interface SFHFKeychainUtils

  • 0

XCode is giving me a warning that I can’t figure out why.

@interface SFHFKeychainUtils : NSObject {

}

+ (BOOL) storeUsername: (NSString *) username andPassword: (NSString *) password forServiceName: (NSString *) serviceName updateExisting: (BOOL) updateExisting error: (NSError **) error;
@end

In another class I call storeUsername:andPassword:forServiceName:updateExisting:error:, see:

- (void)armazenarLogin:(NSString *)login withPassword:(NSString *)password {
    if (login != nil && password != nil) {
        NSError *error = nil;
        [SFHFKeychainUtils storeUsername:login andPassword:password forServiceName:kKeychainServiceName updateExisting:YES error:&error]; // warning here
    }
}

This is the warning:

Passing argument 3 of
‘storeUsername:andPassword:forServiceName:updateExisting:error:’
discards qualifiers from pointer
target

But I’m passing a pointer to NSError. How do I solve this warning?

  • 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-15T22:16:15+00:00Added an answer on May 15, 2026 at 10:16 pm

    Argument 3 is serviceName, isn’t it? Check its declaraion. I bet it’s const.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 methods that are giving me a warning: id LoadObjectFromFile(NSString* filename) {
Xcode is giving me this warning: ld: warning: duplicate dylib /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/usr/lib/system/libSystem.host.dylib There's an SO
my XCode 4 is giving me a warning about the launch image for iPad
XCode is giving me a warning about my minimum font size being greater than
(XCode 4.3) Why does the following crash at the NSLog statement with EXC_BAD_ACCESS? BOOL
I've recently upgraded my Xcode version to 4.2 - and now it's giving a
I've recently downloaded Xcode 4 and now two of my projects that were working
I'm creating a project in Java using XCode 3.2.1..... But it is giving an
IIRC, this normally works. But recently I've noticed that NSAssert…() isn't giving me stack
I'm trying to figure something that is going on with my Route-Me code using

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.