美文网首页
OC和Swift混编

OC和Swift混编

作者: 月下独酌灬 | 来源:发表于2016-11-30 09:38 被阅读177次

    编译报错:

    报错一>

      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混编

          本文链接:https://www.haomeiwen.com/subject/uvnzpttx.html