尝试在Xcode中构建我的iOS应用时,收到以下错误消息。
Undefined symbols for architecture i386: "OBJC_CLASS$UIPresentationController", referenced from: _OBJC_CLASS$SSSidebarPresentationController in libtools.a(SSSidebarPresentationController.o) "_OBJC_METACLASS$UIPresentationController", referenced from: _OBJC_METACLASS$_SSSidebarPresentationController in libtools.a(SSSidebarPresentationController.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
我有最新版本的Xcode。我试过清理和删除派生数据,但这没有帮助。我注意到互联网上很多其他人都有类似的错误信息,但解决方案对我没有帮助。
答案 0 :(得分:0)
将AVFoundation和CoreLocation框架添加到目标。执行此操作后,删除派生数据,清理并再次构建。
此外,请在构建设置下检查您的体系结构,并确保在有效体系结构下列出了armv7和armv7。如果上述答案无法解决您的问题,请尝试添加或删除arm64。