编译报错 & 工程配置错误汇总

xxxx.h file not found (cocoapods导入的第三方库)

切换到Generic iOS Device 编译一次就好了

Undefined symbols for architecture x86_64:

"OBJC_CLASS$_XXXXXXXXX", referenced from:
objc-class-ref in CCCCCCCC.o
ld: symbol(s) not found for architecture x86_64
解决:build phases —> compile sources —> 添加XXXXXXXXX.m文件

diff: /../Podfile.lock: No such file or directory

diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
解决:1、删除文件Podfile.lock;2、删除目录 Pods;3、pod install

frameworks with conflicting names

cocoapods 重名异常:有可能该框架即手动导入了一次,又使用cocoapods导入了一次

invalid mode 'kCFRunLoopCommonModes'

xib或者storyboard 关联的IB 错误

c++ 混编 导致的 nsobjcruntime unnokwn type nsstring

-- 解决方法:.cpp --> .mm

你可能感兴趣的:(编译报错 & 工程配置错误汇总)