dyld —Library not loaded: @rpath/RxRelay.framework/RxRelay

Asked 2 years ago, Updated 2 years ago, 215 views

RxSwift 6.0.0-rc.1
https://github.com/ReactiveX/RxSwift/tree/6.0.0-rc.1#manually-using-git-submodules
It was introduced as a submodule of Git as shown in .

I ran the simulator and the test without any problems, but when I ran it on the actual machine, it started immediately after the app started.

 dyld:launch, loading dependent libraries
DYLD_LIBRARY_PATH=/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebugger.dylibSupper.dylib
dyld —Library not loaded: @rpath/RxRelay.framework/RxRelay
  Referenced from: /private/var/containers/Bundle/Application/836F14E5-6868-4C0A-A252-05AC0BADD121/hodai.app/hodai
  Reason—image not found
Message from debugger—Terminated due to signal 6

The error appears (build succeeds).

Definitely

  • Drag Rx.xcodeprojinto Project Navigator
  • Go to Project>Targets>Build Phases>Link Binary With Libraries, click+ and select RxSwift, RxCocoa and RxRelay targets

I think you are also following the steps in .

Enter a description of the image here

Enter a description of the image here

You can find a solution to a similar error in the chargeage, but you can't find a solution in the Git Submodule.
How can I get rid of the error on the actual machine?

swift xcode12

2022-09-30 21:53

1 Answers

I'm not sure, but

https://qiita.com/fuwamaki/items/ce1cd438ec5dfd4ccb9a
with (almost intuition)

From TARGETS

General > Framework, Libraries, and Embedded Content

RxCococa.framework, RxRelay.framework, RxSwift.framework found in
I set Embed&Sign and the error disappeared.

Enter a description of the image here

Originally, Do Not Embedded was selected instead of Embed&Sign.


2022-09-30 21:53

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.