SQLCipher won't build in XCode for distribution (iphoneos)

This is for a phonegap/cordova project. The SQLCipher library (libsqlcipher.a) will build for the simulator but not for distribution to the app store. Is there a switch somewhere to turn this on? My errors are below:

Ld Build/Intermediates/REDCap.build/Debug-iphoneos/REDCap.build/Objects-normal/armv7/REDCap normal armv7
    cd /Users/josephbeard/Desktop/collector.rebuild14/platforms/ios
    export IPHONEOS_DEPLOYMENT_TARGET=6.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -L/Users/josephbeard/Desktop/collector.rebuild14/platforms/ios/Build/Products/Debug-iphoneos -F/Users/josephbeard/Desktop/collector.rebuild14/platforms/ios/Build/Products/Debug-iphoneos -filelist /Users/josephbeard/Desktop/collector.rebuild14/platforms/ios/Build/Intermediates/REDCap.build/Debug-iphoneos/REDCap.build/Objects-normal/armv7/REDCap.LinkFileList -dead_strip -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -ObjC -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.0 /Users/josephbeard/Desktop/collector.rebuild14/platforms/ios/Build/Products/Debug-iphoneos/libsqlcipher.a -framework AudioToolbox -framework AssetsLibrary /Users/josephbeard/Desktop/collector.rebuild14/platforms/ios/Build/Products/Debug-iphoneos/libCordova.a -framework CoreGraphics -framework MobileCoreServices -weak_framework SystemConfiguration -weak_framework ImageIO -framework CoreLocation -weak_framework MessageUI -framework Security -liconv -framework AVFoundation -framework CoreVideo -framework QuartzCore -Xlinker -dependency_info -Xlinker /Users/josephbeard/Desktop/collector.rebuild14/platforms/ios/Build/Intermediates/REDCap.build/Debug-iphoneos/REDCap.build/Objects-normal/armv7/REDCap_dependency_info.dat -o /Users/josephbeard/Desktop/collector.rebuild14/platforms/ios/Build/Intermediates/REDCap.build/Debug-iphoneos/REDCap.build/Objects-normal/armv7/REDCap

clang: error: no such file or directory: '/Users/josephbeard/Desktop/collector.rebuild14/platforms/ios/Build/Products/Debug-iphoneos/libsqlcipher.a'