OC中引用swift文件报错误的解决方法

错误信息:

dyld: Library not loaded: @rpath/libswiftCore.dylib

  Referenced from: /private/var/mobile/Containers/Bundle/Application/1348BA9E-21D9-4A31-A03A-B3C801EF6D98/UcanService.app/UcanService

  Reason: no suitable image found.  Did find:

/private/var/mobile/Containers/Bundle/Application/1348BA9E-21D9-4A31-A03A-B3C801EF6D98/UcanService.app/Frameworks/libswiftCore.dylib: code signature invalid for '/private/var/mobile/Containers/Bundle/Application/1348BA9E-21D9-4A31-A03A-B3C801EF6D98/UcanService.app/Frameworks/libswiftCore.dylib'


解决办法(如图):

添加如下信息:

@executable_path/Frameworks

@loader_path/Frameworks

OC中引用swift文件报错误的解决方法_第1张图片



你可能感兴趣的:(IT技术)