随笔分类 -  xcode工程编译错误

1

Xcode工程编译错误之强退Xcode后再次打开一直loading假死的解决方案
摘要:编译问题: 强退Xcode后,重新打开时一直loaading,查看活动监视器cpu直接干到99,Xcode进程红色标记无响应。 解决方案: 进入到以下目录: 打开终端:/用户/apple/资源库/Autosave Information/ (其中mac为当前登录用户名) 1.找到你强退前的项目,清除 阅读全文

posted @ 2022-12-23 17:24 梁飞宇 阅读(497) 评论(0) 推荐(0) 编辑

Xcode 编辑器之关于Other Linker Flags相关问题
摘要:一,概述 问题场景一 当从网上去下载一些之前的完整的项目的时候,用终端也 pod update了,但一运行,熟悉的linker错误就出来了。 解决办法 在Other Linker Flags(也即 OTHER_LDFLAGS)中添加$(inherited)。 在Header/Framework Se 阅读全文

posted @ 2019-07-20 20:21 梁飞宇 阅读(5950) 评论(0) 推荐(0) 编辑

Xcode工程编译错误之iOS开发之The Xcode build system has crashed. Please close and reopen your workspace
摘要:解决方法: 阅读全文

posted @ 2019-04-19 16:09 梁飞宇 阅读(7911) 评论(0) 推荐(0) 编辑

Xcode工程编译错误之iOS开发之Sending '__strong typeof (xxx)' (aka 'xxxx *__strong') to parameter of incompatible type 'id<xxx>'
摘要:iphone开发出现警告: 如图: 原因是没有在头文件实现相应协议。 解决方法是在头文件(.h文件)中 如图: 阅读全文

posted @ 2019-02-21 18:14 梁飞宇 阅读(1896) 评论(0) 推荐(0) 编辑

xcode工程编译错误之iOS解决CUICatalog: Invalid asset name supplied问题
摘要:【问题分析】: 这个问题其实是老问题,产生原因就是因为在使用的时候 [UIImage imageNamed:]时,图片不存在或者传入的图片名为nil. 【解决方法】: 添加一个系统断点,来判断如果图片名字为nil或者@""的时候,来拦截掉。【操作截图】 阅读全文

posted @ 2019-01-27 14:55 梁飞宇 阅读(1160) 评论(0) 推荐(0) 编辑

Xcode工程编译错误之iOS开发之Xcode9报错 Compiling IB documents for earlier than iOS7 is no longer supported.
摘要:概要: 在我们升级到Xcode9时,最低的编译版本为iOS8,但是在使用一些SDK的时候就会报出Compiling IB documents for earlier than iOS7 is no longer supported. 这句错误,这个时候我们点击错误跳转到Xib或Storyboard中 阅读全文

posted @ 2018-12-18 10:28 梁飞宇 阅读(493) 评论(0) 推荐(0) 编辑

Xcode报错Xcode导入runtime框架函数参数没有提示或Too many arguments to function call, expected 0, have 2错误
摘要:前言:在引入<objc/runtime.h> 与 <objc/message.h> 后,调用objc_msgSend(),会报如下错误: 报错原因: 从Xcode6之后,苹果不推荐我们使用runtime,所以就取消了参数提示功能。 修改方法:按照如上图的方式操作,搜索msg,并把YES改成NO即可。 阅读全文

posted @ 2018-11-12 01:34 梁飞宇 阅读(899) 评论(0) 推荐(0) 编辑

Xcode工程编译错误:“Cannot assign to 'self' outside of a method in the init family”
摘要:但在我自己写的过程中,忘记将初始化方法名以 init 开头,导致错误: 原因:在ARC有效时,只能在init方法中给self赋值,Xcode判断是否为init方法规则:方法返回id,并且名字以init+大写字母开头+其他 为准则。 如果此时关闭ARC,会发现刚才的错误提示不见了: 如果将初始化方法名 阅读全文

posted @ 2018-09-27 17:12 梁飞宇 阅读(319) 评论(0) 推荐(0) 编辑

Signing for "XXXX" requires a development team.
摘要:【iOS】Signing for requires a development team. Select a development team in the project editor. Code 【iOS】Signing for requires a development team. Sele 阅读全文

posted @ 2018-06-11 11:53 梁飞宇 阅读(7449) 评论(0) 推荐(0) 编辑

Xcode工程编译之duplicate symbol问题引发的一些知识
摘要:概括: 一般的解决方法 1 在使用import 引入头文件时,由于疏忽,误引入.m 文件。 2 同名文件放在不同的文件夹下。 3.在 Targets 的 Build Phrases 设置里,查看下 Complie Sources这一项,看看出现问题的类是不是重复的.如果是重复的,删除掉重新添加也能解 阅读全文

posted @ 2018-03-06 11:52 梁飞宇 阅读(3329) 评论(0) 推荐(0) 编辑

Xcode报错Expected selector for Objective-C and Expected method body
摘要:昨天把键盘拿起来拍一下清清灰,然后就发现Xcode报错了,Xcode报错Expected selector for Objective-C and Expected method body,也不知道什么原因,可能是按到什么键了。在网上搜索了一下报错,说是把这个文件删除了重新把代码写一遍。但发现还是报 阅读全文

posted @ 2018-01-09 00:34 梁飞宇 阅读(472) 评论(0) 推荐(0) 编辑

iOS开发之duplicate symbols for architecture x86_64错误
摘要:一、错误提示 在我们写代码过程中可能会经常遇到这样一个错误: 1. duplicate symbols for architecture x86_64 2.clang: error: linker command failed with exit code 1 (use -v to see invo 阅读全文

posted @ 2017-09-13 16:06 梁飞宇 阅读(1869) 评论(0) 推荐(0) 编辑

xcode工程编译错误:"An instance 0xca90200 of class UITableView was deallocated while key value observers were still registered with it"
摘要:An instance 0xca90200 of class UITableView was deallocated while key value observers were still registered with it. Observation info was leaked, and m 阅读全文

posted @ 2017-08-09 17:38 梁飞宇 阅读(381) 评论(0) 推荐(0) 编辑

xcode工程编译错误:一般错误总结
摘要:1.Apple LLVM 8.0 Error Group /’all-product-headers.yaml’ not found 最近升级了xcode打包后出现了个BUG,记录解决的方法。 现象:报错误信息:“......'all-product-headers.yaml' not found" 阅读全文

posted @ 2017-06-28 22:39 梁飞宇 阅读(606) 评论(0) 推荐(0) 编辑

解决pathForResource返回nil, 无法读取plist文件问题
摘要:有很多人在设置plist文件的时候, 会发现读取不了plist文件里面的内容, 返回值为nil, 下面我们来解决一下这个问题. 首先我们打开工程并且按照下面的步骤来设置: 设置好后, 我们来写一段代码测试一下看看是否添加好: NSBundle *bundle = [NSBundle mainBund 阅读全文

posted @ 2017-06-28 22:36 梁飞宇 阅读(370) 评论(0) 推荐(0) 编辑

xcode工程编译错误:error: Couldn’t materialize
摘要:解决:Release改为Debug 阅读全文

posted @ 2017-06-28 22:34 梁飞宇 阅读(1380) 评论(0) 推荐(0) 编辑

Xcode编译警告Assigning to 'id<XXXDelegat> ——Nullable' from incompatible type 'XXXView *const_strong'
摘要:编译报警告 可能是 自定义分类使用协议时出现与父类协议的冲突 解决方法如下: 编译报警告 可能是 自定义分类使用协议时出现与父类协议的冲突 解决方法如下: 阅读全文

posted @ 2017-06-14 14:13 梁飞宇 阅读(813) 评论(0) 推荐(0) 编辑

xcode工程编译错误:The maximum number of apps for free development profiles has been reached.
摘要:真机调试免费App ID出现的问题The maximum number of apps for free development profiles has been reached.免费应用程序调试最大限度苹果免费App ID只能运行2个应用程序,当调试第三个的时候就会报这个错误,必须把之前的应用程 阅读全文

posted @ 2017-05-16 13:35 梁飞宇 阅读(679) 评论(0) 推荐(0) 编辑

xcode工程编译错误:missing required architecture i386 解决方法
摘要:可能原因一:项目内保存了.framework文件,在复制分发到不同计算机的时候可能会引发该错误 解决方法一:来到Targets->Build Settings->Framework Search Paths,将其内容删除。让xcode不管项目目录下的.framework文件,而是去包含本机的。当然你 阅读全文

posted @ 2017-05-06 00:27 梁飞宇 阅读(597) 评论(0) 推荐(0) 编辑

xcode工程编译错误:No architectures to compile for
摘要:问题 开发环境:xcode6,iPhone6模拟器 xcode工程编译错误:No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386). 原因 导致这个错误的原因主要是CPU 阅读全文

posted @ 2017-05-06 00:21 梁飞宇 编辑

1
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示