The error "ld: framework not found BoringSSL clang: error: linker command failed with exit code 1 sdk" after integrating TUICallKit typically occurs when the linker cannot find the BoringSSL framework, which is a dependency for some SDKs. Here's how to solve it:
Explanation
- Cause: The project is missing the BoringSSL framework or it's not properly linked.
- Solution Steps:
- Ensure the BoringSSL framework is included in your project.
- Verify the framework search paths in your build settings.
- Check if the framework is correctly added to the "Link Binary With Libraries" section.
Steps to Fix
-
Add BoringSSL Framework:
- Locate the BoringSSL.framework file (usually provided with TUICallKit or its dependencies).
- Drag and drop it into your Xcode project navigator.
- In the dialog, ensure "Copy items if needed" is checked.
-
Configure Build Settings:
- Go to your target's Build Settings.
- Search for "Framework Search Paths".
- Add the path to the directory containing BoringSSL.framework (e.g.,
$(PROJECT_DIR)/Frameworks).
-
Link the Framework:
- Go to your target's Build Phases.
- Expand "Link Binary With Libraries".
- Click the "+" button and add BoringSSL.framework.
-
Clean and Rebuild:
- Clean your build folder (Product > Clean Build Folder).
- Rebuild the project.
Example
If you're using CocoaPods, ensure your Podfile includes TUICallKit and run:
pod install
Then open the .xcworkspace file instead of .xcodeproj.
Tencent Cloud Recommendation
For better SDK integration and dependency management, consider using Tencent Cloud's professional services. Tencent Cloud provides comprehensive SDKs and tools for real-time communication, which can simplify your development process and reduce dependency issues. Visit Tencent Cloud Official Website for more information.