iOS Cocoapods -pod(MBProgressHUD) installed give error stuck at "Analyzing dependencies" and "Header file missing" -
i have installed 2 pods mbprogesshud
, pephotocropeditor
it's working correctly till got error mbprogresshud.h
file not available. , tried pod update
, again pod install
command still not able solve problem. when fier both command terminal stucked @
analysing dependencies.
and pods looking in red color.
my problem solved following procedure.
1) take backup of project other place.
2) open terminal , , go project directory cd
command.
3) first type command
setup pod:
$ pod repo remove master $ pod setup $ pod install
note
takes time. so, don't panic wait few minuts.
edit :- after completing if find error
mbprogresshud.h file not found ( of pod related header file)
you need follow procedure also.
you need check if pod header files correctly symlinked in pods/headers. (all imagae give correct setting)
wiki or cocoapods troubleshooting gives explaination in brief.
1) if doesn’t seem work, first of ensure not overriding options set pods.xcconfig file in project’s build settings. add values options project’s build settings, prepend value list $(inherited).
2) if xcode can’t find headers of dependencies:
check if pod header files correctly symlinked in pods/headers , not overriding header_search_paths (see #1). make sure project using pods.xcconfig. check select project file, select in second pane again , open info section in third pane. under configurations should select pods.xcconfig each configurations requiring installed pods.
if xcode still can’t find them, last resort can prepend imports, e.g. #import "pods/ssziparchive.h"
don't need include below step if headerfile missing error.
below line , image give reference if 1 can't find proper option.
3) if you're getting errors unrecognized c compiler command line options, e.g. cc1obj: error: unrecognized command line option "-wno-sign-conversion":
make sure project build settings configured use "apple llvm compiler" (clang)
setting cc, cpp or cxx environment variable, e.g. in ~/.profile? may interfere xcode build process. remove environment variable ~/.profile. ~/ .profile location
1)open settings > general 2) scroll bottom , open profiles. if not see "profiles" section, not have configuration profile installed.
in "profiles" section, select profile wish remove.
4) if xcode complains when linking, e.g. library not found -lpods, doesn't detect implicit dependencies:
go product > edit scheme click on build ![edit scheme][6] add pods static library, , make sure it's @ top of list clean , build again. if doesn't work, verify source spec trying include has been pulled github. looking in
/pods/. if empty (it should not be), verify ~/.cocoapods/master//.podspec has correct git hub url in it. if still doesn't work, check xcode build locations settings. go preferences -> locations -> derived data -> advanced , set build location "relative workspace".
xcode build location setting:- if tried submit app app store, , found "product" > "archive" produce nothing in "organizer": in xcode "build settings", find "skip install". set value "release" "no" on application target. build again , should work.
Comments
Post a Comment