Comments (9)
It should be #import <ReactiveObjC/ReactiveObjC.h>
from reactiveobjc.
me too
from reactiveobjc.
@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:
leads to:
while this
leads to lots of errors like
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.
It should work as a framework, but I'm not a cocoa pods expert.
from reactiveobjc.
@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.
@sergii-frost did you compiling issue got resolved? I have the exact same issue here
from reactiveobjc.
@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.
I had the same issue, and I solved it by adding the ReactiveObjc to TARGETS -> General -> Linked frameworks and libraries, then error was gone.
from reactiveobjc.
I just used @import and my project Build Setting's "Enable Modules" was 'YES'.
@import ReactiveObjC;
from reactiveobjc.
Related Issues (20)
- RACObserve(target, key) HOT 1
- should I check the existance of weakself before @strongify(self) ? HOT 3
- [RACCommand addActiveExecutionSignal:]crashed HOT 2
- Error: 'ReactiveObjC/EXTKeyPathCoding.h' file not found๏ผ
- why the instruments say that the RAC Memory leaks?
- Why use pods package tools make static frame error ? .podspec is ok? HOT 1
- OSAtomic deprecation in iOS 10.0 HOT 1
- Xcode12 ReactiveObjC archive error HOT 2
- SMP HAVE NO SUPPORT
- 3.1.1 endless loop
- AVPlayerItem was deallocated while key value observers were still registered with it.
- crash in -[NSObject(RACDeallocating) rac_deallocDisposable] NSObject+RACDeallocating.m
- Delay delays cancelled stream completion
- ้ช้ HOT 1
- m1 Can't install 3.1.1 via CocoaPods
- ReactiveObjC (3.1.1) Build Failed
- Get build errors with Xcode 15 HOT 3
- Xcode 15 Release build error "error: unexpected '@' in program @weakify(self); ^" HOT 2
- iOS 17 Crash
- Apple requires third-party SDKs to contain a privacy manifest file HOT 3
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 reactiveobjc.