iOS Zoom SDK示例项目x86_64架构缺失导致链接错误求助
I’ve run into this exact architecture issue with the Zoom iOS SDK before, so here are some practical steps to fix that warning and the associated linker errors:
1. Verify the SDK’s supported architectures
First, confirm if your downloaded Zoom SDK actually includes the x86_64 architecture (used for iOS simulators). Some SDK variants might only support arm64 (for physical devices). To check, run this command in Terminal:
lipo -info ../lib/mobileRTC.framework/mobileRTC
If the output doesn’t list x86_64, head to the Zoom Developer Portal and download the full SDK package that includes both simulator and device architectures—make sure you don’t grab a "device-only" build.
2. Adjust your project’s architecture settings
- Open your project’s Build Settings and locate the
Architecturessection. If you’re on Xcode 12+, theValid Architecturesoption might be hidden; you can add it back as a user-defined setting. Ensurex86_64is included in the list. - Check the
Build Active Architecture Onlysetting: For Debug builds, it’s usually set toYES, but if the error persists, try switching it toNOto force Xcode to compile for all supported architectures.
3. Double-check framework embedding
Linking the framework isn’t enough—you need to embed it correctly too:
- Go to your target’s General tab, find
Frameworks, Libraries, and Embedded Content. - Set the
mobileRTC.frameworktoEmbed & Sign. If it was set toDo Not Embedbefore, this could be the root cause. - Also confirm the framework path is correct: The warning points to
../lib/mobileRTC.framework, so make sure this relative path exists and the framework file isn’t corrupted. Re-add the framework if needed to fix path issues.
4. Clean cache and rebuild
Old build cache can sometimes cause mismatched architecture issues:
- Run
Product > Clean Build Folder(use the shortcutShift + Command + K). - Delete your project’s Derived Data: Go to
Xcode > Preferences > Locations, click the arrow next to the Derived Data path, and delete the folder for your project. - Rebuild the project after these steps.
If you’re using CocoaPods to integrate the Zoom SDK, double-check your Podfile for the correct SDK version, run pod deintegrate followed by pod install to refresh the integration.
内容的提问来源于stack exchange,提问作者Ali Barış Uzuner

