GithubHelp home page GithubHelp logo

Comments (7)

jvillard avatar jvillard commented on April 25, 2024

Hi,

What command did you use to run Infer? It looks like you passed --headers to the infer command, which makes Infer analyse headers, hence why it would report on these .h files.

from infer.

arvryna avatar arvryna commented on April 25, 2024

Hey jvillard,
this is what i've used,
infer -- xcodebuild -target -configuration Release clean build -sdk iphonesimulator

from infer.

jvillard avatar jvillard commented on April 25, 2024

It looks like Infer is wrongly reporting the locations of these errors. There is no SCNetworkReachabilityCreateWithAddress(), policies or pinnedCertificates in /Applications/Xcode 6.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h!

So these reports are actually for somewhere else in the code, not in this header.

This is a known issue in our clang frontend that sometimes line numbers/files are off. We are actively working on fixing this. Leaving this open until we do.

from infer.

cakey avatar cakey commented on April 25, 2024

Getting a similar issue.

from infer.

arvryna avatar arvryna commented on April 25, 2024

@cakey Do you use AFNetworking in your project, i did a project wide search on
SCNetworkReachabilityCreateWithAddress(), policies, pinnedCertificates found them inside AFNetworking directory .

from infer.

cakey avatar cakey commented on April 25, 2024

No - just plain c.

from infer.

dulmarod avatar dulmarod commented on April 25, 2024

This issue has been addressed, please consider using the latest release available in:
https://github.com/facebook/infer/releases/latest.

from infer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.