0

I have integrated CometChat Ready UI SDK in my iOS App. But when I try to build the code at that time I am getting following linker error ld: framework not found CometChatSDK enter image description here

Following things I have added in my project

1) Framework search path is set to $(PROJECT_DIR) -> recursive enter image description here

2) I have added -all_load , -ObjC , -lc++ in Other Linker Flag enter image description here

3) Cometchat SDK is also showing in the Project -> Build Phases -> Link Binaries with Libraries enter image description here

2 Answers2

0

As you can see in beginner's guide of cometchat: https://support.cometchat.com/documentation/php/ios-chat-sdk/custom-ui/initial-setup/

Put the following in your Build Phases -> Link binary with libraries:

  • SystemConfigurarion.framework
  • MobileCoreServices.framework
  • CoreGraphics.framework
  • CFNetwork.framework
  • libxml2.dylib
  • libz.dylib

Next, Click on Targets → Your app name → and then the ‘Build Settings’ tab. Scroll down to the ‘Linking’ section, and double-click to the right of where it says ‘Other Linker Flags’. Click on the “+” button to add the following:

  • ObjC
  • all_load

Try semantic import if everything fail.

Glenn Posadas
  • 12,555
  • 6
  • 54
  • 95
0

I have found following solution form the cometChat support team.

1) Change CometChatSDK.framework name to MessageSDKFramework.framework

2) Change your Import Statement #import<CometChatSDK/MessageSDK.h> to #import<MessageSDKFramework/MessageSDK.h>

Thank You