9miao / CrossApp

Cross-Platform Mobile APP Development Engine
MIT License
835 stars 421 forks source link

ios开启-ObjC,真机上编译报错 #78

Closed tanjie0037 closed 1 year ago

tanjie0037 commented 9 years ago

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)

image

9miao commented 9 years ago

请问你为什么要开启-Objc

tanjie0037 commented 9 years ago

接入了ios第三方sdk,必须开启这个

netbaby commented 9 years ago

如果没有用到SDL,libCrossApp工程移除libSDL2.a引用