Comments (8)
infer -- xcodebuild -workspace AppName.xcworkspace -scheme AppName -configuration Debug -sdk iphonesimulator
from infer.
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.
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.
@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.
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.
@Elmundo what happens if you just run clang -c Hello.m
does it work?
from infer.
@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.
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)
- C Simple memory leak cannot be detected HOT 1
- [java] DEADLOCK: False Negative in Infer analysis results after converting anonymous classes to lambda expressions HOT 1
- [java] STARVATION: False Negative in Infer analysis results after converting anonymous classes to lambda expressions HOT 1
- False positive of Infer/Pulse when `std::unique_ptr` is used with no throw `new` HOT 2
- how to use --custom-symbols?
- How to check custom malloc and free functions for memory leak?
- can infer find out all suspecious bugs? HOT 2
- java: Infer injects outdated, buggy maven-compiler-plugin version 3.8.0
- False positive memory leak on loop HOT 4
- Dockerfile: US-ASCII locale causes crash on UTF-8 input
- How to add extra nullability condition to NULL_DEREFERENCE checking
- Is Adding a C++ Infer Port to the VSCode Plugin on the Roadmap? HOT 3
- [java] A false negative about the rule NULL_DEREFERENCE
- [java] A false positive about the rule THREAD_SAFETY_VIOLATION
- `--biabduction-unsafe-malloc` doesn't assume that `calloc()` and `realloc()` never return null HOT 1
- Error building the `Resource Leak analysis` lab in docker
- False positive Uninitialized Value in C code
- Need help when using infer run or capture during maven compilation HOT 1
- Query on --changed-files-index option HOT 3
- Meta leak HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from infer.