问题
I am trying to add linphone lib to my existing iOS app, but it fails to build
My process:
- Added all the required frame works in my existing project.
- Copied all lib from linphone-iphone/liblinphone-sdk/apple-darwin/lib/ to myproject/lib
- Copied linphone-iphone/Resources to myproject/Resources
- Then I added LinphoneManager.h & .m with there related files.
- Then I started build the app, I am getting file not found #include "ortp/ortp.h" in Linphonecore (but file is available).
What I understand from the error is, I need to modify the build setting to search the file. I have done that but I still get the same error.
回答1:
See the Header Search Paths in your Build Settings. And copy paste them from the Linphone sample app.

回答2:
I wrote an answer here. It's a bit long but I sincerely hope it is clear enough and will help you (and the others in the future) to build and integrate Linphone!
Best,
回答3:
For "ortp/ortp.h" File Not Found Error!
- Check your "linphone-sdk" fold, if added to the project
- If added, check the libOrtp.a in linphone-sdk/apple-darwin/lib/
- If exist, check the "Build Phases" -> "link binary with libraries", if "libOrtp.a" included
- After all above are done, check the "Build settings" -> "header search paths", and add "$(SRCROOT)/liblinphone-sdk/apple-darwin/include"
Problem solved!
来源:https://stackoverflow.com/questions/15739270/integrate-linphone-into-ios