Why is my app running
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.
精彩评论