Git Product home page Git Product logo

Comments (9)

Tricertops avatar Tricertops commented on June 8, 2024

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.

Sajjon avatar Sajjon commented on June 8, 2024

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

Tricertops avatar Tricertops commented on June 8, 2024

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.

Sajjon avatar Sajjon commented on June 8, 2024

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

Sajjon avatar Sajjon commented on June 8, 2024

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

Tricertops avatar Tricertops commented on June 8, 2024

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.

Sajjon avatar Sajjon commented on June 8, 2024

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

mauriciomassaia avatar mauriciomassaia commented on June 8, 2024

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.

orkenstein avatar orkenstein commented on June 8, 2024

@iMartinKiss, why Cocoapods version will never be updated?

from block-kvo.

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.