Could not find auto-linked library 'swiftObjectiveC'

简介: Could not find auto-linked library 'swiftObjectiveC'

oc工程中使用swift的第三方库,结果没有一个swift文件,导致编译报错。

解决方案:建立一个swift文件(空的文件也可以)就可以。


允许 target 使用 swift 代码,开启这个配置后 Swift 的标准库将能够在该项目使用(使用 oc和 swift 混编可能导致包体积变大十几兆)

Build Options 中
Embedded Content Contains Swift Code 改为 YES (Xcode 8.1 and earlier)
Always Embed Swift Standard Libraries 改为 YES (Xcode 8.2+)

支持使用@import导入文件,当需要导入 framework 的时候这个选项必须是YES

Defines Module 改为 YES

目录
相关文章
|
Ubuntu Unix Linux
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
|
1月前
|
资源调度 JavaScript 内存技术
error @achrinza/node-ipc@9.2.2: The engine “node“ is incompatible with this module. Expected version
error @achrinza/node-ipc@9.2.2: The engine “node“ is incompatible with this module. Expected version
207 0
|
10月前
|
缓存 内存技术
解决 Error: Node Sass does not yet support your current environment: OS X ...
解决 Error: Node Sass does not yet support your current environment: OS X ...
676 0
Could not find com.serenegiant:common:4.1.1
Could not find com.serenegiant:common:4.1.1
215 0
OPA 15 - find existing item by its type.note
Created by Wang, Jerry, last modified on Nov 08, 2015
OPA 15 - find existing item by its type.note
Cannot find source code based button in SE24
When you are logging on to customer system for incident handling, you want to switch to source code to perform some keyword search. However, you could not find button “Source code based builder” in toolbar, with following warning message: ———————————————— 版权声明:本文为CSDN博主「汪子熙」的原创文章,遵循CC 4.0 BY-SA版权协
Cannot find source code based button in SE24
Cannot find source code based button in SE24 - modification assistant
Cannot find source code based button in SE24 - modification assistant
136 0
LD_LIBRARY_PATH shouldn't contain the current directory when building glibc. Please change the envir
执行# ./glibc-2.14/configure 出现以下错误: checking LD_LIBRARY_PATH variable... contains current directory configure: error: *** LD_LIBRARY_PATH ...
1793 0
|
DataX 程序员 算法
Single linked list by pointer
其实本应该从一般性的表讲起的,先说顺序表,再说链表 。但顺序表的应用范围不是很广,而且说白了就是数组的高级版本,他的优势仅在于两点:1.逻辑直观,易于理解。2.查找某个元素只需要常数时间——O(1),而与此同时,因为每个单元的物理内存都是连续的,所以不便于移动,不便于精细化操作,每次插入和删除都会带来巨额的时间开销。
1024 0
|
Go Windows 开发工具
解决golang windows调试问题:Could not determine version number: could not find symbol value for runtime.buildVersion
版本信息: go:1.8.3 windows: win7/64 idea-go-plugin:171.4694.61 在windows下,使用dlv进行调试的时候,如果golang程序引入了c模块,比如常用的sqlite模块,那么在调试的时候一定会发生这个错误: · Could not determine version number: could not find symbol value for runtime.buildVersion· 现在这个问题已经解决了,解决方法就是go build 的时候加入-ldflags="-linkmode internal" ,这样就可以正常调试了。
2130 0