Version 1.0.2 iOS: 138 Dsymutil warnings

338 views
Skip to first unread message

Pascal

unread,
Sep 7, 2014, 10:07:38 AM9/7/14
to mobile-c...@googlegroups.com
I updated the Couchbase framework in our iOS app to version 1.0.2 and now I'm receiving 138 Dsymutil warnings when compiling. They all look like this:

(null): warning: (x86_64) /Users/jenkins/jenkins/workspace/build_cblite_ios_102-enterprise/couchbase-lite-ios/build/CouchbaseLite.build/Release-iphonesimulator/CBL iOS library.build/Objects-normal/x86_64/CBLChangeTracker_Tests.o unable to open object file


Any ideas on how to make them go away?

Jens Alfke

unread,
Sep 8, 2014, 11:17:04 AM9/8/14
to mobile-c...@googlegroups.com

On Sep 7, 2014, at 7:07 AM, Pascal <phase.o...@gmail.com> wrote:

(null): warning: (x86_64) /Users/jenkins/jenkins/workspace/build_cblite_ios_102-enterprise/couchbase-lite-ios/build/CouchbaseLite.build/Release-iphonesimulator/CBL iOS library.build/Objects-normal/x86_64/CBLChangeTracker_Tests.o unable to open object file


A number of people have already reported this here — apparently the fix is to change your app target's debugging symbols build setting.

(I've been meaning to investigate why this happens, but I have to confess that messing with Xcode library build settings becomes so frustrating that I can only approach it in limited doses.)

—Jens

Pascal

unread,
Sep 16, 2014, 11:30:54 AM9/16/14
to mobile-c...@googlegroups.com
I couldn't agree more on Xcode's build-a-library handling. Unfortunately however the suggested fix (turning off dSYM generation) is incompatible with Crashlytics: apps using Crashlytics will refuse to build if dSYM is turned off.

Andrew Tetlaw

unread,
Sep 17, 2014, 2:32:19 AM9/17/14
to mobile-c...@googlegroups.com
We only change it for Debug only and we disable Crashlytics for Debug too

Pascal

unread,
Sep 18, 2014, 11:40:04 AM9/18/14
to mobile-c...@googlegroups.com
That could work for me too, I had Crashlytics on for Debug on device to to get reports when I test on the road and it crashes. It's still quite scary to receive 138 warnings when archiving the app for a submission build.

Phil Mitchell

unread,
Oct 24, 2014, 9:14:20 PM10/24/14
to mobile-c...@googlegroups.com
Jens, It looks like the fix is to set GCC_GENERATE_DEBUGGING_SYMBOLS = NO in Build Settings. In XCode 6, you do this by going to:
   Build Settings (All) => Apple LLVM 6.0 - Code Generation
and setting "Generate Debug Symbols" to NO for your release build.

I don't mean to be a pain, but I don't think it makes sense for consumers of the framework to do this -- we need those symbols. But these warnings are a hassle and it would be great if you guys could turn them off.


Thanks!



Jens Alfke

unread,
Oct 25, 2014, 4:23:01 PM10/25/14
to mobile-c...@googlegroups.com

On Oct 24, 2014, at 6:14 PM, Phil Mitchell <seasp...@gmail.com> wrote:

I don't mean to be a pain, but I don't think it makes sense for consumers of the framework to do this -- we need those symbols. But these warnings are a hassle and it would be great if you guys could turn them off.

There isn't a real fix for this, due to limitations of the linker. The only thing we could do would be to back out the change that made this happen. But the purpose of that change was to hide internal symbols — before, people were having trouble building apps that happen to use some of the same libraries (like yajl) that CBL does, because the linker would complain about duplicate symbols. As it stands, linker warnings are less bad than linker errors :(

—Jens
Reply all
Reply to author
Forward
0 new messages