Giter VIP home page Giter VIP logo

Comments (9)

mdiep avatar mdiep commented on May 6, 2024 1

It should be #import <ReactiveObjC/ReactiveObjC.h>

from reactiveobjc.

ztiandan avatar ztiandan commented on May 6, 2024

me too

from reactiveobjc.

sergii-frost avatar sergii-frost commented on May 6, 2024

@mdiep I do not want to create new issue, so decided to ask here.

Does ReactiveObjC support use_frameworks! and import as a module, like @import ReactiveObjC?

I cannot make it work in this way, getting plenty of errors, like it was while using ReactiveCocoa, "~> 2.5":
ReactiveCocoa/ReactiveCocoa#2495 or "Duplicate declaration" errors occur for me.

Clearing derived data, deleting pods and reinstalling all of them for project did not help.

Dev env:

  • cocoapods 1.1.1
  • Xcode 8.2.1
  • Obj-C project mainly with a bit of Swift code --> need to use use_frameworks! for pods
  • ReactiveObjC v2.1.2

A bit of images with project config and corresponding errors:
screenshot 2017-03-02 12 07 57
leads to:
screenshot 2017-03-02 12 08 14

while this
screenshot 2017-03-02 12 10 22
leads to lots of errors like
screenshot 2017-03-02 12 08 37

Please let me know if there is any workaround for this or this is a limitation or I should open new issue.

Thank you,
Sergii

from reactiveobjc.

mdiep avatar mdiep commented on May 6, 2024

It should work as a framework, but I'm not a cocoa pods expert.

from reactiveobjc.

sergii-frost avatar sergii-frost commented on May 6, 2024

@mdiep thanks for quick reply.
I have tried to create new ObjC-based project in Xcode 8 and added ReactiveObjC pod (as a framework/module) and it seems to work. Will dig into my current project settings then.

from reactiveobjc.

xialisun avatar xialisun commented on May 6, 2024

@sergii-frost did you compiling issue got resolved? I have the exact same issue here

from reactiveobjc.

sergii-frost avatar sergii-frost commented on May 6, 2024

@xialisun yes.

I am using this combination of pods and versions to make ReactiveObjc, Obj-C and Swift friends again:

use_frameworks!
...
pod 'ReactiveObjC', '~> 2.1'
pod 'ReactiveObjCBridge', '~> 1.0'
pod 'ReactiveSwift', '~> 1.1'
...

Enabled Modules in project settings should be YES as well.

from reactiveobjc.

Mylittleswift avatar Mylittleswift commented on May 6, 2024

I had the same issue, and I solved it by adding the ReactiveObjc to TARGETS -> General -> Linked frameworks and libraries, then error was gone.

reactiveobjc_not_found

from reactiveobjc.

developforapple avatar developforapple commented on May 6, 2024

I just used @import and my project Build Setting's "Enable Modules" was 'YES'.

@import ReactiveObjC;

from reactiveobjc.

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.