GithubHelp home page GithubHelp logo

Comments (22)

scutdavy avatar scutdavy commented on April 25, 2024

@jobiwankanobi try cocoaPods https://github.com/CocoaPods/CocoaPods

from reactivecocoa.

jwilling avatar jwilling commented on April 25, 2024

Is this for an iOS project, or is this for a Mac project?

from reactivecocoa.

jobrienski avatar jobrienski commented on April 25, 2024

iOS

from reactivecocoa.

jwilling avatar jwilling commented on April 25, 2024

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.

jspahrsummers avatar jspahrsummers commented on April 25, 2024

@jwilling That should've been fixed by #252. Are you on master?

from reactivecocoa.

jwilling avatar jwilling commented on April 25, 2024

@jspahrsummers Yes I'm on master with the latest version, which includes that commit. I will attempt to pull again.

from reactivecocoa.

jspahrsummers avatar jspahrsummers commented on April 25, 2024

Just to double-check, is RAC actually set up as a dependency of your target?

from reactivecocoa.

jwilling avatar jwilling commented on April 25, 2024

By dependency, do you mean added as a subproject? If so, then yes.

from reactivecocoa.

jspahrsummers avatar jspahrsummers commented on April 25, 2024

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.

jwilling avatar jwilling commented on April 25, 2024

Aha, now we're getting somewhere. It looks like that was the culprit. Is that for an iOS-only thing?

from reactivecocoa.

jspahrsummers avatar jspahrsummers commented on April 25, 2024

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.

jwilling avatar jwilling commented on April 25, 2024

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.

jspahrsummers avatar jspahrsummers commented on April 25, 2024

(Discussion moved to #255.)

from reactivecocoa.

schell avatar schell commented on April 25, 2024

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.

Coneko avatar Coneko commented on April 25, 2024

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.

schell avatar schell commented on April 25, 2024

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.

jspahrsummers avatar jspahrsummers commented on April 25, 2024

@Coneko Great answer. Would you mind PRing that into the README instructions? 💚

from reactivecocoa.

nickcheng avatar nickcheng commented on April 25, 2024

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

sh-rp avatar sh-rp commented on April 25, 2024

Same Problem here, see #793. Maybe this is some kind of Migration issue? Starting a clean project worked for me..

from reactivecocoa.

nickcheng avatar nickcheng commented on April 25, 2024

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.

Ref: CocoaPods/CocoaPods#1352

from reactivecocoa.

sh-rp avatar sh-rp commented on April 25, 2024

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.

hanpagnarith avatar hanpagnarith commented on April 25, 2024

zz

from reactivecocoa.

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.