iOS project fails to compile under xcodebuild for deployment target 7.0, but is fine for 6.0. Compiles for both under Xcode -
i have ios project has ios 6.0 deployment target. builds fine both under xcode , xcodebuilder (necessary ci). client wants project available users have ios7+ installed.
no problem, i'll increase deployment target number right? wrong!
under xcode project continues compile fine. under xcodebuild however, project fails compile lots of errors this:
undefined symbols architecture armv7:
"std::string::_rep::_s_empty_rep_storage", referenced from: in drmnativeinterface
it's using adobe primetime
, drmnativeinterface
part of that.
to isolate problem i've created brand new, single-screen project , performed following changes:
added
drmnativeinterface
framework , 2 apple-supplied dependencies required project build in xcode,mediaplayer
,avfoundation
"link binary libraries"
. primetime documentation lists other dependencies makes no difference if add - these 2 needed successful build under xcode.replaced valid archs
"arm64 armv7 armv7s"
"armv6 armv7 armv7s"
(even though drmnativeinterface apparently contains i386, x86_64, armv7s , arm64 slices, xcode won't compile project unless switch arm64 armv6).set
"build active architecture only"
no both configurations.and finally, added
"-lstdc++ -objc -all_load"
"other linker flags"
.
other few steps above, project stock single-screen: no code has been added.
xcode compile xcodebuild not. xcodebuild compile have switch deployment target 6.0 defeats client's request.
the ci xcodebuild command contains few params here's minimised command i'm using test project:
xcodebuild -project
"myproject.xcodeproj"
-scheme"myproject"
i've tried adding framework_search_paths
, header_search_paths
, always_search_user_paths
params in case xcodebuild unable use paths contained within project file made no difference.
if remove drmnativeinterface
framework project - leaving 2 apple-based dependencies alone - project compiles fine both xcode , xcodebuild. isn't solution because need framework!
does have idea causing or how fix it?
**nb: **
there lot of questions on projects build in xcode , not in xcodebuilder, couldn't find project build in xcodebuilder fine 1 deployment target , not another.
thanks in advance.
linking libstdc++ library (in case, libstdc++6.dylib exact) fixed problem.
Comments
Post a Comment