2
votes

How to disable the following warning in Xcode:

Values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead

Please note that I want to disable the warning only, I know can cast the NSInteger to long, but I don't want to.

1
Did you find the actual way to build the app anyway? It's not letting me after updating to the latest xcodeoctohedron
@octohedron No, I didn't. I think %zd works for Mac (64bit) but not for iOS where you can get both 32bit and 64bitTibidabo

1 Answers

-1
votes

You can just use %zd for NSInteger instead disable warning use #pragma