xcode 编译问题集

1.Attaching to ....: 

1.去除所有的警告

2.选中项目中的plist文件,把Target Membership中的勾去掉(View->Utilities->Show Utilities)

3.确认项目的Build Settings 中的Product Name 是否与Attaching to 后面的名称相同

4.将Edit Scheme中的Debugger从LLDB改为GDB

5.关闭模拟器

6.删除User/Library/Developer/Xcode/UserData/Behaviors下的所有文件

7.重启机器


2.

clang: error: linker command failed with exit code 1 (use -v to see invocation)

看看在包含其它文件时,是否有将#import "xxx.h" 写成#import "xxx.m"




原文地址:https://www.cnblogs.com/iapp/p/3631790.html