OC和Swift混编

编译报错:

报错一>

  Referenced from: /private/var/mobile/Containers/Bundle/Application/7424220C-D688-4EA1-BD26-B741DAC8DD03/FaBo.app/Frameworks/AliyunLOGiOS.framework/AliyunLOGiOS
  Reason: no suitable image found.  Did find:
    /private/var/mobile/Containers/Bundle/Application/7424220C-D688-4EA1-BD26-B741DAC8DD03/FaBo.app/Frameworks/libswiftCore.dylib: mmap() errno=1 validating first page of '/private/var/mobile/Containers/Bundle/Application/7424220C-D688-4EA1-BD26-B741DAC8DD03/FaBo.app/Frameworks/libswiftCore.dylib'
    /private/var/mobile/Containers/Bundle/Application/7424220C-D688-4EA1-BD26-B741DAC8DD03/FaBo.app/Frameworks/libswiftCore.dylib: mmap() errno=1 validating first page of '/private/var/mobile/Containers/Bundle/Application/7424220C-D688-4EA1-BD26-B741DAC8DD03/FaBo.app/Frameworks/libswiftCore.dylib'```

报错二>
 ```dyld: Library not loaded: @rpath/AliyunLOGiOS.framework/AliyunLOGiOS
  Referenced from: /var/containers/Bundle/Application/C4E29A18-0A68-499B-B38E-562707D883CF/FaBo.app/FaBo
  Reason: image not found```

找到项目的Build Setting 
Xcode8以后ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES 设置为YES
Xcode8以前EMBEDDED_CONTENT_CONTAINS_SWIFT 设置为YES

你可能感兴趣的:(OC和Swift混编)