andyhuang
andyhuang

Reputation: 11

Reason: image not found

When I try to use Carthage to add ReactiveCocoa lib to my new project,I got this exception .I work in Xcode7

dyld: Library not loaded: @rpath/Result.framework/Result Referenced from: /private/var/mobile/Containers/Bundle/Application/74AD1FE2-7095-47D2-B059-520863050EE2/ReactiveCocoaTest.app/Frameworks/ReactiveCocoa.framework/ReactiveCocoa Reason: image not found

Upvotes: 1

Views: 1778

Answers (4)

user8408685
user8408685

Reputation: 1

I've just solved the question!. I wanna import rac by the method of git document.

enter image description here

then got the same reason.and I've tried again. Found I don't follow 5 step. just you need "Add ReactiveObjC.framework. RAC must also be added to any "Copy Frameworks" build phase. If you don't already have one, simply add a "Copy Files" build phase and target the "Frameworks" destination."

enter image description here

then it work out!

Upvotes: 0

aircraft
aircraft

Reputation: 26924

I have the same problem, my solution is:

In the TARGET -> Build Setting -> Other Linker Flag -> delete the ReactiveCocoa framework.

There is ReactiveCocoa in the Other Linker Flag, I have delete.

enter image description here

Upvotes: 1

Steven Gardner
Steven Gardner

Reputation: 234

when I use: $ curl -L get.rvm.io | bash -s stable

I had the same problem and it's fixed now. You need to reinstall the gem which rebuilds the native executables. For homebrew: $ gem install charlock_holmes should just work.

Try: uninstall the gem, uninstall icu4c, reinstall icu4c, reinstall the gem.

Upvotes: 0

Dvaid
Dvaid

Reputation: 11

The problem is xcode is not load ReactiveCocoa.framework, so you must manually add ReactiveCocoa.framework. Check below image.

enter image description here

Upvotes: 1

Related Questions