Comments (22)
@jobiwankanobi try cocoaPods https://github.com/CocoaPods/CocoaPods
from reactivecocoa.
Is this for an iOS project, or is this for a Mac project?
from reactivecocoa.
iOS
from reactivecocoa.
What exactly is the procedure for using RAC in a new iOS project? I'm switching over from the CocoaPods version, and I set up my header search paths to recursively include the ReactiveCocoaFramework
folder, as well as linking to the static library. It does complain about EXTKeyPathCoding
not being found, for some reason. Is there a special method for including the libextobjc
folder inside of the RAC project?
from reactivecocoa.
@jwilling That should've been fixed by #252. Are you on master?
from reactivecocoa.
@jspahrsummers Yes I'm on master with the latest version, which includes that commit. I will attempt to pull again.
from reactivecocoa.
Just to double-check, is RAC actually set up as a dependency of your target?
from reactivecocoa.
By dependency, do you mean added as a subproject? If so, then yes.
from reactivecocoa.
No, the RAC iOS target needs to be a dependency of your application target, so that the library copies headers when the project is built. You can set that up under your target's Build Phases.
from reactivecocoa.
Aha, now we're getting somewhere. It looks like that was the culprit. Is that for an iOS-only thing?
from reactivecocoa.
That's how any dependent projects should be added (OS X or iOS), because otherwise Xcode doesn't know to rebuild them when they change. Or, in this case, if the build process has side effects that your parent project needs, they wouldn't be triggered without that dependency.
from reactivecocoa.
RAC does not appear to be set up correctly when building for iOS devices. It builds (and works) fine for the simulator. This appears to be caused by the "Build Active Architecture Only" switch being turned on for Debug under the iOS target. I can make a PR for this if ya'll would like.
from reactivecocoa.
(Discussion moved to #255.)
from reactivecocoa.
After altering the project to build for all architectures (which is the only way I was able to get my project running with RC) I'm now having a very similar problem, though only when attempting an archive build for distribution. Simulator and device builds both run great but when I try to archive I get a linker error: fatal error: 'ReactiveCocoa/ReactiveCocoa.h' file not found
.
I'm not including the ReactiveCocoa/ReactiveCocoaFramework folder (or any others) in my search headers. When I do I get a different error: fatal error: 'ReactiveCocoa/EXTKeyPathCoding.h' file not found
I am using the NSNotificationCenter+RACSupport extension which I have added to my project by reference, though I'm not sure if that makes matters more complicated.
from reactivecocoa.
Check the top answer to this question:
http://stackoverflow.com/questions/5543854/xcode-4-cant-locate-public-header-files-from-static-library-dependancy
Archive builds put the headers in another directory compared to all other types of build, so you have to add $(BUILD_ROOT)/../IntermediateBuildFilesPath/UninstalledProducts
to your header search path.
from reactivecocoa.
Thanks, that helped, I added "$BUILD_ROOT/../IntermediateBuildFilesPath/UninstalledProducts/include"
to my User Header Search Paths and set Always Search User Paths to YES.
Xcode can be pretty wacky sometimes.
from reactivecocoa.
@Coneko Great answer. Would you mind PRing that into the README instructions? 💚
from reactivecocoa.
@schell Have you tried today's new Xcode 5 GM? It seems that the same problem happened again here. When I try to archive, I get fatal error: 'ReactiveCocoa/ReactiveCocoa.h' file not found
again.
from reactivecocoa.
Same Problem here, see #793. Maybe this is some kind of Migration issue? Starting a clean project worked for me..
from reactivecocoa.
I've solved this problem. In my case, clean project didn't work.
In Xcode 5 GM, standard architecture includes both 32-bit and 64-bit. If your app would support iOS version prior to 6.0, you'll get a warning when you compile project under standard architecture. That's why I got the error above.
I changed architecture to $(ARCHS_STANDARD_32_BIT)
solved this.
from reactivecocoa.
Thanks for pointing this out Nick. I set the standard architecture of my main project to $(ARCHS_STANDARD_32_BIT), but that didn't help in my case. Still looking into it. It does make sense though that it has to do with the 64 bit architecture.
from reactivecocoa.
zz
from reactivecocoa.
Related Issues (20)
- [SwiftPM on Xcode] Package resolution failed HOT 2
- Unable to compile targeting macOS Catalyst using SwiftPM (fix exists)
- why RACObserve(self.scoreStepper,value) not available? HOT 1
- App rejected for HealthKit metadata HOT 4
- UISearchBar delegate proxy crash on Mac Catalyst HOT 1
- Build error when using ReactiveCocoa via Swift Package Manager HOT 3
- can not deinit HOT 2
- Xcode12 ReactiveObj archive error HOT 3
- How to implement PIN input with attempts HOT 1
- Dispose SignalProducer created via Action HOT 1
- UnsafeKVOProperty initializer crashes after updating to ReactiveSwift 6.5.0 HOT 1
- EXC_BAD_ACCESS Cash with NSURL HOT 1
- ReactiveCocoa 11.1.0 incompatible with ReactiveSwift 6.6.0 HOT 5
- Xcode 12.5 beta 3 can't build ReactiveCocoa with SwiftPM. HOT 2
- Using "<~" binding function with Signal.Observers causes memory leaks. HOT 1
- Upgrading from very old version (2.5) fails - can't find ReactiveCocoa.h HOT 1
- Cannot remove an observer <RACKVOProxy 0x280264940> for the key path "unit" from <HGConfigureModel 0x280d25050> because it is not registered as an observer.
- Current version can't be compiled with the latest ReactiveSwift version HOT 2
- Current version can't be compiled with the latest ReactiveSwift version HOT 6
- Add output values support for interception
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 reactivecocoa.