Comments (10)
You should be seeing this:
You should add the .xcodeproj
file, not all source files directly. Then you can link to the static library.
Step 5 is about setting Header Search Paths or User Header Search Paths:
I have all external projects in Libraries/
, you may have different. There are several ways to specify this path and using $(SRC_ROOT)
is also one of them.
Maybe you can post some screenshots with your project?
from block-kvo.
Tried again, but can't get it to work. Attaching screenshots from my project.
from block-kvo.
Noticed that my lib folder is under another folder, so moved it up to root level but still have same issue.
from block-kvo.
You have to enter the relative path to the project. Is your lib/
directory in the same directory as .xcodeproj
file?
from block-kvo.
It's in a directory above the .xcodeproj-file. Modified user header search paths and it's still the same. Seems like there's no issue with header files? Just getting the error about the .a file not being found.
from block-kvo.
Thatt's true. Let's check some other settings. Did you change any other paths to non-default values?
- Pre-configuration Build Products Path
- Pre-configuration Intermediate Build Products Path
My paths to products always end with Debug-iphoneos/
or Debug-iphonesimulator/
. Your error is showing simply Debug/
from block-kvo.
It's an OS X project, that's why I don't have those. Haven't changed any other settings that I'm aware of, but did start from an example project so the example project author might've changed some settings. I'm about to switch to CocoaPods with this project anyways so probably won't have any issue with this. Just thought I'd let you know about the problem because I thought it was an issue with the instructions or BLock-KVO's project file. I'll try to set it up in another project and see if it works there.
from block-kvo.
Aw sorry, just saw that it's for iOS only. Thanks a lot for trying to help me out!
from block-kvo.
Ah, there is only lib for iOS, but the code will work on OS X too. Just add the sources directly or create OS X lib. You may even open Pull Request with OS X target.
from block-kvo.
Cool. I went ahead and did that: #24
from block-kvo.
Related Issues (20)
- Readme.md Is it necessary to remove the observer (like with regular KVO) or not? HOT 8
- Support removing observer for specified keypath
- Not compiling with Xcode 6.3, Swift 1.2 HOT 9
- Compile error when included in .mm file HOT 3
- Can't compile 'objc_msgSend has too many arguments' HOT 9
- Block-KVO logic should follow the same approach as original KVO HOT 1
- Macro MTKObservePropertySelf can not use with stringWithFormat in the block HOT 2
- MTKObserver should removeObserver in dealloc HOT 5
- can you delete "block(self, nil);" HOT 1
- Update deployment_target for cocoa pods HOT 1
- Expose change dictionary for observing collections HOT 2
- Obscure retain issue in -removeAllObservationsOfObject: HOT 10
- Registering change observer without calling block with initial value HOT 3
- Initial value detection HOT 4
- Two-way binding causing infinite loop HOT 2
- Too Many Arguments to Function Call HOT 3
- Update cocoapods version HOT 1
- Want my stuff HOT 2
- PodSpec Version HOT 1
- worth mentioning the use of @keypath in the example
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 block-kvo.