GithubHelp home page GithubHelp logo

Library not found about infer HOT 8 CLOSED

facebook avatar facebook commented on April 20, 2024
Library not found

from infer.

Comments (8)

yurikoles avatar yurikoles commented on April 20, 2024

infer -- xcodebuild -workspace AppName.xcworkspace -scheme AppName -configuration Debug -sdk iphonesimulator

from infer.

louiseyang avatar louiseyang commented on April 20, 2024

I use xcodebuild -workspace AppName.xcworkspace -scheme AppName -configuration Debug -sdk iphonesimulator returns ** BUILD SUCCEEDED **

But infer -- xcodebuild -workspace AppName.xcworkspace -scheme AppName -configuration Debug -sdk iphonesimulator returns

/Users/louise/workspace/ios/Pods/pop/pop/POPVector.h:13:10: fatal error: 'iostream' file not found
#include <iostream>
         ^
** BUILD FAILED **

The following build commands failed:
    CompileC /Users/louise/Library/Developer/Xcode/DerivedData/App-gqzswdekjpuqdcdldgboeqbvbprd/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-pop.build/Objects-normal/armv7/POPAnimatableProperty.o pop/pop/POPAnimatableProperty.mm normal armv7 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

from infer.

Elmundo avatar Elmundo commented on April 20, 2024

I tried out simple example of Infer;
infer -- clang -c Hello.m

and got this error.

Hello.m:1:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^
1 error generated.

from infer.

martinoluca avatar martinoluca commented on April 20, 2024

@Elmundo That example is meant to be executed on a Mac with Xcode installed (with the command line tools) and the iOS SDK.

from infer.

Elmundo avatar Elmundo commented on April 20, 2024

i got a Mac which has Xcode installed with its command line tools and iOS SDK also.

Bariss-MacBook-Air:examples barisyilmaz$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
Bariss-MacBook-Air:examples barisyilmaz$ gcc
clang: error: no input files
Bariss-MacBook-Air:examples barisyilmaz$ 

Still got this error.

from infer.

martinoluca avatar martinoluca commented on April 20, 2024

@Elmundo what happens if you just run clang -c Hello.m does it work?

from infer.

Elmundo avatar Elmundo commented on April 20, 2024

@martinoluca Just warnings, no error.

$ clang -c Hello.m
Hello.m:4:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
      [-Wobjc-property-no-attribute]
@property NSString* s;
^
Hello.m:4:1: warning: default property attribute 'assign' not appropriate for non-GC object
      [-Wobjc-property-no-attribute]
2 warnings generated.

from infer.

markohlebar avatar markohlebar commented on April 20, 2024

Hey @Elmundo, @martinoluca, I had the same issue...
Reinstalling command line tools has fixed it for me.
I'm running OSX 10.11 (15A178w), and command line tools for Xcode 6.3.2.
Xcode 7 beta command line tools break this in a completely different way for me.

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.