ios开启-ObjC,真机上编译报错
tanjie0037 opened this issue · 3 comments
tanjie0037 commented
ios开启了linker flag -ObjC,真机(iphone4, iphone5s等)上编译报错:
Undefined symbols for architecture armv7:
"_SDL_main", referenced from:
-[SDLUIKitDelegate postFinishLaunch] in libCrossApp.a(SDL_uikitappdelegate.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
9miao commented
请问你为什么要开启-Objc
tanjie0037 commented
接入了ios第三方sdk,必须开启这个
netbaby commented
如果没有用到SDL,libCrossApp工程移除libSDL2.a引用