Comments (9)
Is it related to this code in -observeObject:property:withSelector:
?
default: {
// +3
// -someObject:didChangeSomethingFrom:to:
void(*msgSend)(id, SEL, id, id, id) = (typeof(msgSend))objc_msgSend;
msgSend(weakSelf, observationSelector, weakObject, old, new);
break;
}
from block-kvo.
@iMartinKiss Exactly! As I metioned, it seams related to Cocoapods as well: CocoaPods/CocoaPods#3060
But however, my post installer script should fix that. So it seams something else is wrong?
Have you been able to reproduce the error? Just use XCode 6.3 Beta, Swift project with Block-KVO integrated via Cocoapods. Use Cocoapods version 0.36.0. I have iOS 8 as deployment target.
Would be amazing if this could be fixed since I really like Block-KVO π Thanks!
from block-kvo.
When you say exactly, does your code contain this line?
void(*msgSend)(id, SEL, id, id, id) = (typeof(msgSend))objc_msgSend;
If it doesnβt, please, pull the latest revision.
from block-kvo.
@iMartinKiss I have made an example project. Open it using Xcode 6.3 and use Cocoapods 0.36 or 0.36.1, fails on both.
The file (category) 'NSObject+MTKObserving.m' contains:
objc_msgSend(weakSelf, observationSelector, weakObject, old, new); // Fuck off NSInvocation!
from block-kvo.
@iMartinKiss As you can see in the podfile of the example project I am just using
pod 'Block-KVO'
Which results in version 2.2.1, which results in 'NSObject+MTKObserving.m' containing:
objc_msgSend(weakSelf, observationSelector, weakObject, old, new); // Fuck off NSInvocation!
So how do I achieve:
void(*msgSend)(id, SEL, id, id, id) = (typeof(msgSend))objc_msgSend;
?
Thanks a lot! π
from block-kvo.
Version on CocoaPods is not up to date and it will never be updated again. You should use this repositary directly, the latest commit is correct.
On 27 Mar 2015, at 17:45, Alexander Georgii-Hemming Cyon [email protected] wrote:
@iMartinKiss As you can see in the podfile of the example project I am just using
pod 'Block-KVO'
Which results in version 2.2.1, which results in 'NSObject+MTKObserving.m' containing:
objc_msgSend(weakSelf, observationSelector, weakObject, old, new); // Fuck off NSInvocation!
So how do I achieve:void(*msgSend)(id, SEL, id, id, id) = (typeof(msgSend))objc_msgSend;
?Thanks a lot!
β
Reply to this email directly or view it on GitHub.
from block-kvo.
@iMartinKiss ah okay! Sorry I did not know that. Maybe you can add that info to the README? And also how to "use this repository directly" - can you point me the correct direction on how to do that?
Thanks a bunch!
from block-kvo.
on my Podfile i tried:
platform :ios, '7.0'
target "GeLoBeaconOTAConfiguration" do
# pod "Block-KVO", "~> 2.2.1"
pod 'Block-KVO', :git => 'https://github.com/iMartinKiss/Block-KVO.git'
end
target "GeLoBeaconOTAConfigurationTests" do
end
but im getting the same error.
My apologies if it is wrong but im new on iOS projects. I am trying to run https://github.com/GeLoInc/GeLo-OTAC-iOS .
Cheers
from block-kvo.
@iMartinKiss, why Cocoapods version will never be updated?
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
- 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.