xcode iPhone 项目有“我的 Mac 64 位”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7086593/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
iPhone project has "My Mac 64-bit"
提问by Christian Schlensker
I'm working on an iPhone project and somehow the schema has "My Mac 64-bit" and "My Mac 32-bit" in addition to the normal "Simulator 4.3" and "IOS Device".
我正在处理一个 iPhone 项目,不知何故,除了正常的“模拟器 4.3”和“IOS 设备”之外,模式还有“我的 Mac 64 位”和“我的 Mac 32 位”。
Is there anyway to remove the "My Mac..." options? It always wants to switch to these when I switch git branches and I end up building without realizing it and get an error. More of an annoyance than anything.
无论如何要删除“我的Mac...”选项?当我切换 git 分支时,它总是想切换到这些分支,而我最终在没有意识到的情况下进行构建并出现错误。比什么都烦。
采纳答案by Steve
This happens to me every time files get modified outside of Xcode, and Xcode needs to reload the project file. Closing the project and re-opening it always fixes the issue for me.
每次在 Xcode 之外修改文件时都会发生这种情况,并且 Xcode 需要重新加载项目文件。关闭项目并重新打开它总能解决我的问题。
回答by jsherk
Could possibly be something with your xcuserdata folder.
可能与您的 xcuserdata 文件夹有关。
Right-click on the xcodeproj file and select "show package contents."
右键单击 xcodeproj 文件并选择“显示包内容”。
Make a backup copy of the xcuserdata folder.
制作 xcuserdata 文件夹的备份副本。
Now delete everything inside the xcuserdata folder, and restart xcode.
现在删除 xcuserdata 文件夹中的所有内容,然后重新启动 xcode。
If causes a problem, then put backup folder back in.
如果导致问题,则将备份文件夹放回原处。
回答by Arvind Singh
If you are porting your Xcode project from one mac to other then this issue happens most often. You can Try These two resolutions: First one only worked for me:
如果您将 Xcode 项目从一台 Mac 移植到另一台 Mac,那么此问题最常发生。您可以尝试这两个解决方案:第一个只对我有用:
Resolution:1Open Your project folder > Right Click on Xcode and Select “Show Package Content” Inside there we will get one folder “XcuserData”.> Open the Xcuserdata folder and delete all its content. >Now Launch the Xcode project again, the problem should be fixed now.
解决方案:1打开您的项目文件夹 > 右键单击 Xcode 并选择“显示包内容” 在那里我们将获得一个文件夹“XcuserData”。> 打开 Xcuserdata 文件夹并删除其所有内容。> 现在再次启动 Xcode 项目,问题应该已经解决了。
if the above resolution is not working then try this one:
如果上述解决方案不起作用,请尝试以下解决方案:
Resolution:2open Xcode > clicked on Manage Schemes and then Autocreate Schemes Now > Then select the new scheme in Xcode.
解决方案:2打开 Xcode > 单击 Manage Schemes,然后单击 Autocreate Schemes Now > 然后在 Xcode 中选择新方案。
Hope either resolution should work for you.
希望任何一种解决方案都适合您。
回答by Alok
Step 1:Right Click on Xcode project > Show Package contents > xcuserdata > Delete All content Step 2:Open project > select target > (Project name)Tests > Host Application > select application > allow testing application APIs
步骤 1:右键单击 Xcode 项目 > 显示包内容 > xcuserdata > 删除所有内容 步骤 2:打开项目 > 选择目标 > (项目名称)测试 > 宿主应用程序 > 选择应用程序 > 允许测试应用程序 API
Resolved :) Enjoy your Code
已解决 :) 享受您的代码
回答by johnw188
This is a bug in the beta builds for Xcode 4.2, with regards to their handling of Git repos (confirmed at WWDC with Xcode devs). According to a friend of mine it's been fixed in Xcode 4.2 beta 5, but there are a bunch of issues with that build and you might want to hold off until beta 6.
这是 Xcode 4.2 测试版中的一个错误,关于它们处理 Git 存储库(在 WWDC 上与 Xcode 开发人员确认)。据我的一个朋友说,它已在 Xcode 4.2 beta 5 中修复,但该构建存在很多问题,您可能希望推迟到 beta 6。
回答by Gary Davies
I always open my projects from within Finder to get around this problem. Browse to your project directory, eg /apps/iOS/iPhone/SingleViewApp. Double clicking the .xcodeproj file launches the project within Xcode. I see "Checking DDI Symbols" msg and soon after iPhone device name appears.
我总是从 Finder 中打开我的项目来解决这个问题。浏览到您的项目目录,例如 /apps/iOS/iPhone/SingleViewApp。双击 .xcodeproj 文件在 Xcode 中启动项目。我看到“正在检查 DDI 符号”消息,并且在 iPhone 设备名称出现后不久。