infer icon indicating copy to clipboard operation
infer copied to clipboard

Library not found

Open justvanbloom opened this issue 11 years ago • 8 comments

Please integrate .xcworkspace so dynamic librarys also loaded .. e.g. pods .. since there are nice pods out there

justvanbloom avatar Jun 11 '15 20:06 justvanbloom

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

yurikoles avatar Jun 12 '15 02:06 yurikoles

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)

louiseyang avatar Jun 12 '15 06:06 louiseyang

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.

Elmundo avatar Jun 12 '15 11:06 Elmundo

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

martinoluca avatar Jun 12 '15 11:06 martinoluca

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.

Elmundo avatar Jun 12 '15 11:06 Elmundo

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

martinoluca avatar Jun 15 '15 08:06 martinoluca

@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.

Elmundo avatar Jun 15 '15 10:06 Elmundo

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.

markohlebar avatar Jun 21 '15 13:06 markohlebar