Issue with release build on iOS

147 views
Skip to first unread message

Eduardo Scoz

unread,
May 11, 2013, 8:47:31 AM5/11/13
to sqlc...@googlegroups.com
Hi guys,

I'm having an issue with SQLCipher for iOS, which seems to be happening even with the sample application. Everything works ok in debug mode, but once I change to release mode, the build fails with the error below. Reenabling "Enable debugging" on the release build causes it to work (because stripping is disabled, I guess).

/Applications/Xcode.app/Contents/Developer/usr/bin/dsymutil /Users/escoz/Downloads/sqlcipher-for-xamarin-2.1.1.3/samples/sqlcipher-monotouch-demo/sqlcipher-monotouch/bin/iPhone/Release/sqlciphermonotouchdemo.app/demo -o /Users/escoz/Downloads/sqlcipher-for-xamarin-2.1.1.3/samples/sqlcipher-monotouch-demo/sqlcipher-monotouch/bin/iPhone/Release/sqlciphermonotouchdemo.app.dSYM
/usr/bin/mdimport /Users/escoz/Downloads/sqlcipher-for-xamarin-2.1.1.3/samples/sqlcipher-monotouch-demo/sqlcipher-monotouch/bin/iPhone/Release/sqlciphermonotouchdemo.app.dSYM
/Applications/Xcode.app/Contents/Developer/usr/bin/strip -s "/var/folders/nf/11v6cyy151z1m_b_20qsl7jh0000gn/T/tmp5e0343c7.tmp/symbol-file" "/Users/escoz/Downloads/sqlcipher-for-xamarin-2.1.1.3/samples/sqlcipher-monotouch-demo/sqlcipher-monotouch/bin/iPhone/Release/sqlciphermonotouchdemo.app/demo"
Process exited with code 1, command:
/Applications/Xcode.app/Contents/Developer/usr/bin/strip -s "/var/folders/nf/11v6cyy151z1m_b_20qsl7jh0000gn/T/tmp5e0343c7.tmp/symbol-file" "/Users/escoz/Downloads/sqlcipher-for-xamarin-2.1.1.3/samples/sqlcipher-monotouch-demo/sqlcipher-monotouch/bin/iPhone/Release/sqlciphermonotouchdemo.app/demo"
/Applications/Xcode.app/Contents/Developer/usr/bin/strip: symbols names listed in: /var/folders/nf/11v6cyy151z1m_b_20qsl7jh0000gn/T/tmp5e0343c7.tmp/symbol-file not in: /Users/escoz/Downloads/sqlcipher-for-xamarin-2.1.1.3/samples/sqlcipher-monotouch-demo/sqlcipher-monotouch/bin/iPhone/Release/sqlciphermonotouchdemo.app/demo
_sqlite3_win32_set_directory

error MT5204: Failed to strip the final binary. Please review the build log.\



To reproduce: 
- open the sqlciphermonotouchdemo app
- change to the Release configuration
- remove the "additional mtouch arguments" (as the .a library is not distributed anymore)
- Build


Would anybody have any ideas? Is there any way of marking the DLL to not be stripped, maybe?


Thanks,

Eduardo


Stephen Lombardo

unread,
May 13, 2013, 10:30:53 AM5/13/13
to sqlc...@googlegroups.com
Hi Eduardo,

Thank you for reporting this issue. We've identified the problem, which has to do with a win32-only symbol that is not present when sqlcipher is compiled for iOS or Android. I've sent you an email off-list with a package you can use to verify the fix.

Thanks!

Cheers,
Stephen





--
 
---
You received this message because you are subscribed to the Google Groups "SQLCipher Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlcipher+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Eduardo Scoz

unread,
May 13, 2013, 10:55:07 AM5/13/13
to sqlc...@googlegroups.com
Thanks Stephen,

seems like the latest update worked perfectly. 


Eduardo

Holger Benl

unread,
May 22, 2013, 5:12:59 AM5/22/13
to sqlc...@googlegroups.com
I have the exact same problem with SQLCipher for Xamarin 2.1.1.2.
Where do I get a fixed version? At the Xamarin components site I can only re-download the defective 2.1.1.2. version.

Thanks.

Stephen Lombardo

unread,
May 22, 2013, 12:08:37 PM5/22/13
to sqlc...@googlegroups.com
Hello Holger,

I will send you a link to the new version which you can download and use now. We've submitted an update to Xamarin, which is currently under review. We hope it will be available in the component store shortly.

Cheers,
Stephen

Holger Benl

unread,
May 23, 2013, 3:59:42 AM5/23/13
to sqlc...@googlegroups.com
Thanks, that fixed it.
By the way: will I be able to get the new version from the component store (without having to buy SQLCipher a second time)? Or will I only get the version I have originally paid for?

Stephen Lombardo

unread,
May 23, 2013, 8:43:16 AM5/23/13
to sqlc...@googlegroups.com
Hello Holger,

I'm glad to hear that resolved the issue. Updates to the components you have purchased from the Xamarin store are free, so you will be able to download the new version without paying again. 

Thanks!

Cheers,
Stephen
Reply all
Reply to author
Forward
0 new messages