swift
文章平均质量分 70
郏国上
Object C, JavaScript, python高级研发工程师
展开
-
OC和swift混合工程更新库时报:target has transitive dependencies that include statically linked binaries
一种解决方法:在Podfile文件中使用use_frameworks!,把原来的含有静态库的私有库或公有库拖入工程。该种方式可能需要修改头文件的引入方式。这种方式处理简单。另一种解决方法:在Podfile文件中使用use_modular_headers!。在targets->build settings->enable bitcode配置成NO;targets(project)->build settings->built active architecture only->debug 选择NO.原创 2022-12-06 11:48:38 · 2297 阅读 · 0 评论 -
使用XCode11.2.1创建swift5纯代码主页
1.删除Main.storyboard,SceneDelegate.swift和ViewController.swift文件。2.在Info.plist文件中删除Main storyboard file base name属性和Application Scene Manifest属性。3.创建简单首页:HomeViewController.swift。4.在AppDelegate.swift文件的didFinishLaunchingWithOptions函数中增加页面代码。5.注释下面的函数。原创 2019-12-17 15:09:02 · 1193 阅读 · 1 评论 -
Git Cloning into :error: RPC failed
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54下载缓存太小错误。解决方案:增大下载缓存,重启客户端并重新下载就可以。git config https.postBuffer 1073741824git config http.postBuffer 1073741824原创 2019-05-15 09:41:15 · 1813 阅读 · 0 评论 -
The compiler is unable to type-check this expression in reasonable time; try breaking up the express
This error generally occurs when a single expression is doing a lot of things. So compiler tells you to break it to sub-expressions.一个单个的描述(判断条件)做了太多的事情。语句拆分。原创 2019-05-15 14:29:10 · 14434 阅读 · 0 评论 -
Swift4.0判断本函数是否在其它类有相同的方法
Swift4.0判断本函数是否在其它类有相同的方法是:`if (module as AnyObject).self.responds(to:#selector(UIApplicationDelegate.application(_:didFinishLaunchingWithOptions:)))`,原创 2019-05-22 09:52:27 · 702 阅读 · 0 评论 -
Could not find auto-linked library 'swiftObjectiveC'
oc工程中使用swift的第三方库,结果没有一个swift文件,导致编译报错。解决方案:建立一个swift文件(空的文件也可以)就可以。原创 2019-06-11 15:05:38 · 10419 阅读 · 8 评论