Requirements: Re-update the project, showing bugs as follows at compile time

dyld: Library not loaded: @rpath/libswiftCore.dylib ** Referenced from: /var/containers/Bundle/Application/43ADEA88-8A5A-4ACF-A95E-E4C81E80363D/BaskSharing.app/BaskSharing** ** Reason: no suitable image found. Did find:** ** /private/var/containers/Bundle/Application/43ADEA88-8A5A-4ACF-A95E-E4C81E80363D/BaskSharing.app/Frameworks/libswiftCore. dylib: mmap() errno=1 validating first page of '/private/var/containers/Bundle/Application/43ADEA88-8A5A-4ACF-A95E-E4C81E80363D/BaskSharing.app/Frameworks/libswiftCore .dylib'**Copy the code

There are two solutions

The first type (test effective)

1. Go to targets-> Build Settings, search for runPath Search paths, and add @executable_path/Frameworks

2. If the item already exists, delete it and add it again. Remember to clean the item

3. Target – > build Settings – > Embedded Content contains swift code. This item is disabled by default. After that, clean it and build it again.

The second type (valid for personal test)

Dynamic library need to add reference signature, otherwise the repository path will not be found