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 8132587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:23:05+00:00 2026-06-06T09:23:05+00:00

When I use XCode I (obviously) put a bunch of NSLog statements in to

  • 0

When I use XCode I (obviously) put a bunch of NSLog statements in to keep track of some variables and method executions, etc. However, I keep getting this warning:
Format String is not a string literal (potentially insecure). I understand why this is here, but I also understand that it bugs the living crap out of me, especially when I have 20 or 30 of these warnings making it harder to track down real errors. Especially because everything in the string is defined by the system, not the user. Is there some way that I can disable this warning? Here’s an example of a line that causes the warning.

NSLog([@"writeInfo " stringByAppendingString:[self saveFilePath:temp]]);
  • 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-06-06T09:23:07+00:00Added an answer on June 6, 2026 at 9:23 am

    NSLog takes in a format string on its own, you do not need to inline create strings. In other words, you only need to write:

    NSLog(@"writeInfo %@", [self saveFilePath:temp]);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to change DSTROOT(or any other variables that Xcode use for build settings)
i use Xcode 4.2 and i need to integrate an external library, obviously, it
I use Xcode 4.2 for editing a rails app. If I open a file
i use xcode with libsqlite3.dylib for sqlite , but when i compile to device
You can use Xcode to generate a managed class of an entity. This class
I'd like to use gdb or Xcode's debugger to watch every message sent to
I use MacVim as my editor within Xcode. By default Command-B and :make are
I want use BYTE_ORDER macro in my Xcode project but i can't because i
I have Xcode 4.3 and that class doesn't use ARC. I have created a
I use a statically linked library for Sqlite in an iPhone Xcode project. I

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.