更新时间:2023-10-14 11:16:58
好像此问题已在Xcode 8.0(测试版4)中得到解决..因此,您无需尝试遵循以下内容.
Looks like this issue has been fixed in Xcode 8.0 (beta 4).. So you don't need to try following stuff.
当构建同时包含swift和objc标头时,Xcode似乎与Toolchain目录路径混淆了.
Issue seems to be with Xcode was getting confused with Toolchain directory path, when build includes both swift and objc headers.
一种解决方法是
CC =/usr/bin/clang
CC=/usr/bin/clang
CFLAGS = -fsigned-char -g -ObjC -fobjc-exceptions \-Wall -Wundeclared选择器-Wreturn类型-Wnested-externs \-多余的决定\-不良功能播报\-Wchar下标\-Winline -Wswitch -Wshadow \-I/var/include \-I/var/include/gcc/darwin/4.0 \-D_CTYPE_H_ \-D_BSD_ARM_SETJMP_H \-D_UNISTD_H _
CFLAGS=-fsigned-char -g -ObjC -fobjc-exceptions \ -Wall -Wundeclared-selector -Wreturn-type -Wnested-externs \ -Wredundant-decls \ -Wbad-function-cast \ -Wchar-subscripts \ -Winline -Wswitch -Wshadow \ -I/var/include \ -I/var/include/gcc/darwin/4.0 \ -D_CTYPE_H_ \ -D_BSD_ARM_SETJMP_H \ -D_UNISTD_H_
CPPFLAGS =
CPPFLAGS=
LD = $(CC)
LD=$(CC)
LDFLAGS = -lobjc \-F/系统/库/框架\框架CoreFoundation \-框架基金会\-framework UIKit \框架CoreGraphics \-L/usr/lib -lc/usr/lib/libgcc_s.1.dylib \-bind_at_load \-multiply_defined抑制
LDFLAGS=-lobjc \ -F/System/Library/Frameworks \ -framework CoreFoundation \ -framework Foundation \ -framework UIKit \ -framework CoreGraphics \ -L/usr/lib -lc /usr/lib/libgcc_s.1.dylib \ -bind_at_load \ -multiply_defined suppress