`###一、环信升级版本后,在导入其sdk后报错
Undefined symbols for architecture i386:
"_fwrite$UNIX2003", referenced from:
_hex_dump_internal in libEaseMobClientSDK.a(dump.o)
_pkt_dump_internal in libEaseMobClientSDK.a(dump.o)
ld: symbol(s) not found for architecture i386

解决方法
在工程中添加这个文件

文件这里获取
二、 objc_msgSend()报错 too many arguments to function call,expected0,have3
解决方法
Xcode配置 Build Setting--> Apple LLVM 6.0 - Preprocessing--> Enable Strict Checking of objc_msgSend Calls 改为 NO
三、对于报错在NSObject.h、CoreData.h、NSZone.h、NSObjCRuntime.h、CMAccelerometer.h中

解决方法
在pch文件中加上
#ifdef __OBJC__
#endif
四、xx duplicate symbols for architecture x86_64
duplicate symbol _iToastDuration in:
/Users/xiaoqiao/Library/Developer/Xcode/DerivedData/Test-ajyktytlwodjezavhnljrtuuxcgx/Build/Intermediates/Test.build/Debug-iphonesimulator/Test.build/Objects-normal/i386/HomeViewController.o
/Users/xiaoqiao/Library/Developer/Xcode/DerivedData/Test-ajyktytlwodjezavhnljrtuuxcgx/Build/Intermediates/Test.build/Debug-iphonesimulator/Test.build/Objects-normal/i386/CommentViewController.o
这里说明一下,_iToastDuration
意思是iToastDuration
这个方法或枚举等在HomeViewController
和CommentViewController
重复了,
解决方法
将重复的地方解决掉就行了。
五、有时候Xcode不报错时,但运行工程时会显示buildfailed
解决方法

PS:如需转载请注明iOS小乔http://www.jianshu.com/users/f029d92cedc0/latest_articles
六、svn中的project冲突导致工程打不开
问题:

解决方法:


双击打开

搜索===找到冲突部分

保留最新的 红色为其他人修改的地方,蓝色为自己的
七、xcode卡死打不开文件
xcode强制退出之后 ,再次打开一直转圈。

解决方法
删除错误记录文件 ~/Library/Saved Application State/com.apple.dt.Xcode.savedState/
如果能够帮到你,请你打赏支持我的创作
(请小乔喝杯饮料😁)
©小乔
网友评论