ios - Do not Integrate TestFlight SDK in Release Builds using Cocoapods -
i integrated testflight sdk
using cocoapods following podfile
: https://gist.github.com/fabb/8841271
i not want testflight library linked in release
builds (build config, not target).
this article shows way remove libtestflight.a
file release builds using excluded_source_file_names
custom build setting.
is there way can using cocoapods too? remember, cocoapods link libtestflight.a
libpods.a
, setting custom build setting in app target not help.
an alternative idea include testflight sdk
pod testflightrelease
build config - seems not yet supported cocoapods.
there suggested workaround while feature gets implemented:
create new (empty) target of type "static library" named "debugtools" in user project
link application, in debug, adding
-ldebugtools
other_ldflags
build setting debug configuration (don't forget keep$(inherited)
if not present already)then should able configure pods needed in debug adding them in debugtool target only, via podfile, like:
pod 'afnetworking' # build configurations, debug , release target 'debugtools', :exclusive => true pod 'ponydebugger' # debugger needed in debug pod 'ohhttpstubs' # stubs network requests in debug end
the implementation status updated in same thread.
Comments
Post a Comment