![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
工程编译
郏国上
Object C, JavaScript, python高级研发工程师
展开
-
Xcode报错“compact unwind compressed function offset doesn‘t fit in 24 bits
Assertion failed: (false && "compact unwind compressed function offset doesn't fit in 24 bits"), function operator(), file Layout.cpp, line 5758.解决方案:targerts->build settings->other linker Flages增加-ld64原创 2023-10-17 14:05:34 · 1452 阅读 · 0 评论 -
mallocstacklogging和MallocStackLoggingNoCompact引起的app文稿数据快速增加
开启了mallocstacklogging和MallocStackLoggingNoCompact,苹果系统不断快速打印日志,引起的app文稿数据快速增加。删除这两个增加的环境变量,就好了。原创 2023-07-03 11:05:06 · 409 阅读 · 0 评论 -
don‘t have write permissions for the /System/Library/Frameworks/Ruby.framework
安装Hombrew,通过它安装ruby,然后修改环境变量让它成为当前的ruby。原创 2023-06-13 17:56:59 · 3436 阅读 · 0 评论 -
The version of CocoaPods used to generate the lockfile
在我们使用cocoapods加载第三方库时,有时会碰到报这个错,这很明显是告诉我们现在所使用的cocoapods版本低于第三方库所要求的。原创 2023-06-13 17:28:04 · 1746 阅读 · 0 评论 -
syntax error: unexpected end of file
syntax error: unexpected end of file。由于.sh文件的格式为dos格式原创 2023-06-12 15:17:24 · 832 阅读 · 0 评论 -
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 · 2268 阅读 · 0 评论 -
The file “xxx.entitlements“ could not be opened和Library/MobileDevice/Provisioning Profiles, rb):
The file "xxx.entitlements" could not be opened和Library/MobileDevice/Provisioning Profiles, rb):没有Apple Push Notification service SSL证书引起原创 2021-09-14 11:07:26 · 1073 阅读 · 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 · 1187 阅读 · 1 评论 -
Could not find auto-linked library 'swiftObjectiveC'
oc工程中使用swift的第三方库,结果没有一个swift文件,导致编译报错。解决方案:建立一个swift文件(空的文件也可以)就可以。原创 2019-06-11 15:05:38 · 10388 阅读 · 8 评论 -
Xcode 10.2.1 Error:Multiple commands produce问题及解决方案
Xcode 10.2.1说的是你工程的配置中有非法的LICENSE和Info.plist。解决方案:找到工程->主 Target ->Build Phases->Copy Bundle Resources。删除非法的LICENSE和nfo.plist配置,重新编译工程就可以了。原创 2019-05-20 14:41:22 · 4607 阅读 · 0 评论