简体   繁体   English

ios-移动框架破坏了项目

[英]ios - moving frameworks broke the project

I recently added the Social.framework and Accounts.framework to my ios project. 我最近在我的ios项目中添加了Social.framework和Accounts.framework。 It was placed on top of the navigator area and I dragged those two into the frameworks folder. 它被放置在导航器区域的顶部,我将二者拖放到frameworks文件夹中。 Then it showed in red color in the Build Phases "Link Binary with Libraries" ....and now the project crashes on startup. 然后,它在构建阶段“使用库链接二进制文件”中以红色显示。现在项目在启动时崩溃。

What did I do so wrong? 我做错了什么? And what is the correct way to fix this? 解决此问题的正确方法是什么?

I get this error: 我收到此错误:

dyld: Library not loaded: /System/Library/Frameworks/Social.framework/Social
  Referenced from: /Users/owner12/Library/Application Support/iPhone Simulator/5.1/Applications/823A0485-7443-4206-B9F5-A84C03DBFB89/BusinessPlan.app/BusinessPlan
  Reason: image not found

You didn't do anything wrong. 你没做错什么 Sometimes Xcode gets confused. 有时Xcode会感到困惑。 I would suggest that you edit the project, scroll down to where it lists the frameworks, and select the Social and Accounts frameworks and click the Minus button. 我建议您编辑该项目,向下滚动到列出框架的位置,然后选择“社交和帐户”框架,然后单击“减号”按钮。

在此处输入图片说明

After that, you might want to quit Xcode and clean out the build folder as described here: 之后,您可能要退出Xcode并按照以下说明清理build文件夹:

How to Empty Caches and Clean All Targets Xcode 4 如何清空缓存并清理所有目标Xcode 4

If that doesn't solve it, you might have to revert to an earlier commit. 如果不能解决问题,则可能必须还原到较早的提交。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM