开发者

Why is my app running

开发者 https://www.devze.com 2022-12-28 06:18 出处:网络
I have compiled my iPhone app with setting (Device, Release). I install it on the test machine and it runs with no problem.

I have compiled my iPhone app with setting (Device, Release).

I install it on the test machine and it runs with no problem.

He开发者_如何学Cre's the problem. The app is linked to a C++ library. The compilation on the simulator has no errors. However the device compilation produces 568 errors, mostly about different visibilities w.r.t AppDelegate.o.

They all look like:

QL::Error::~Error()has different visibility (default) in /QL/build/Release-iphoneos/libQLLibrary.a(abcd.o) and (hidden) in /Programming/ObjC/Second/build/Second.build/Release-iphoneos/FG.build/Objects-normal/armv6/AppDelegate.o

Why is this, and how can I stop the errors anyway?


You can force visibility with: -fvisibility=hidden


I finally found the answer. XCode treats ld warnings as errors.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号