New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instructions for using the library in a project in Xcode #13
Comments
@jobiwankanobi try cocoaPods https://github.com/CocoaPods/CocoaPods |
Is this for an iOS project, or is this for a Mac project? |
iOS |
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 |
@jspahrsummers Yes I'm on master with the latest version, which includes that commit. I will attempt to pull again. |
Just to double-check, is RAC actually set up as a dependency of your target? |
By dependency, do you mean added as a subproject? If so, then yes. |
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. |
Aha, now we're getting somewhere. It looks like that was the culprit. Is that for an iOS-only thing? |
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. |
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. |
(Discussion moved to #255.) |
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: |
Check the top answer to this question: Archive builds put the headers in another directory compared to all other types of build, so you have to add |
Thanks, that helped, I added Xcode can be pretty wacky sometimes. |
@Coneko Great answer. Would you mind PRing that into the README instructions? 💚 |
@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 |
Same Problem here, see #793. Maybe this is some kind of Migration issue? Starting a clean project worked for me.. |
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 |
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. |
zz |
I'm sort of a newbie to Xcode, but it's not obvious how to include this library in your project. Some other libraries I have been able to drag and drop into the Frameworks section. This one seems like you have to install it as a subproject. When I followed these instructions, however, I got errors: http://yannickloriot.com/2011/04/how-to-install-zxing-in-xcode-4/. Some instructions in the README.md would be great.
Thanks.
The text was updated successfully, but these errors were encountered: