Have any other iPhone developers experienced this phenomenon? I can see his contributions in xCode - I see for example my colleague has wrapped a navigation controller around one of my view controllers and added it to my tab bar. Great! That view really did call for a navigation controller and this is a welcome addition to the project.
有没有其他iPhone开发者经历过这种现象?我可以在xCode中看到他的贡献 - 例如,我看到我的同事在我的一个视图控制器周围包裹了一个导航控制器并将其添加到我的标签栏。大!该视图确实需要一个导航控制器,这是该项目的一个受欢迎的补充。
So, I up my code and compile - no navigation controller. I do build -> clean all targets, thinking maybe some pre-compiled code is mucking me up and compile again. Same result. I was eventually able to get his changes to compile by deleting the whole directory and checking it out from the repository, but I really don't want to do that every time my colleague checks in code.
所以,我编写代码并编译 - 没有导航控制器。我确实构建了 - >清理所有目标,想一想预编译的代码可能会让我失望并再次编译。结果相同。我最终能够通过删除整个目录并从存储库中检出来进行编译更改,但我真的不希望每次我的同事检查代码时都这样做。
Is there some kind of box I need to check or something? What could be causing this behavior?
我需要检查某种盒子还是什么?什么可能导致这种行为?
Thanks in advance.
提前致谢。
3 个解决方案
#1
Here are a number of possible fixes:
以下是一些可能的修复:
1) Delete the current version of your app off the simulator and/or device. This especially becomes necessary when using Default.png or app icons. There are a lot of shortcuts that the compiler takes for apps that are already "installed".
1)从模拟器和/或设备上删除当前版本的应用程序。使用Default.png或app图标时尤其需要这样做。编译器为已经“安装”的应用程序提供了许多快捷方式。
2) Make sure that there are NEVER any build folders or user specific files (pbuser.USERNAME I think). These files wrecked havoc on a few projects and we basically had to delete and start over.
2)确保没有任何构建文件夹或用户特定文件(我认为是pbuser.USERNAME)。这些文件破坏了一些项目,我们基本上不得不删除并重新开始。
3) Make sure that all files are svn added to the project before each commit (although this wouldn't matter for your current problem.
3)确保在每次提交之前将所有文件都添加到项目中(尽管这对您当前的问题无关紧要)。
4) Find the changed code and set breakpoints for the debugger to catch. I believe that breakpoints that turn YELLOW while running signify that there is a difference between run and code.
4)找到更改的代码并设置要捕获的调试器的断点。我相信在运行时转为黄色的断点表示运行和代码之间存在差异。
I would tend to believe that it would be a problem with the .proj file also, but it sounds like that's not it.
我倾向于认为这也是.proj文件的问题,但听起来不是这样。
#2
Some things to check (but maybe you already did it):
要检查的一些事情(但也许你已经做过了):
- is the new code added to the correct target? You will still see it in the project tree, but it won't be compiled
- if you are using a SVN (or CVS) client that is not XCode, you have to remember to commit (and update) the .xcodeproject file too.
添加到正确目标的新代码是什么?您仍会在项目树中看到它,但不会编译它
如果您使用的是非XCode的SVN(或CVS)客户端,则必须记住提交(和更新).xcodeproject文件。
#3
Your question isn't entirely clear to me, so forgive these follow-up questions:
您的问题对我来说并不完全清楚,请原谅这些后续问题:
- Where in Xcode did you see the changes? In the repository browser, or in the file browser part of Xcode?
- What do you mean by "up your code"? (I'm assuming you mean that you chose the "Update source from repository" option or whatever it is called - I'm away from my mac right now - but I thought I'd check.)
你在Xcode中看到了哪些变化?在存储库浏览器中,还是在Xcode的文件浏览器中?
“你的代码”是什么意思? (我假设你的意思是你选择了“从存储库更新源代码”选项或其他任何名称 - 我现在离开了我的Mac - 但我想我会检查一下。)
#1
Here are a number of possible fixes:
以下是一些可能的修复:
1) Delete the current version of your app off the simulator and/or device. This especially becomes necessary when using Default.png or app icons. There are a lot of shortcuts that the compiler takes for apps that are already "installed".
1)从模拟器和/或设备上删除当前版本的应用程序。使用Default.png或app图标时尤其需要这样做。编译器为已经“安装”的应用程序提供了许多快捷方式。
2) Make sure that there are NEVER any build folders or user specific files (pbuser.USERNAME I think). These files wrecked havoc on a few projects and we basically had to delete and start over.
2)确保没有任何构建文件夹或用户特定文件(我认为是pbuser.USERNAME)。这些文件破坏了一些项目,我们基本上不得不删除并重新开始。
3) Make sure that all files are svn added to the project before each commit (although this wouldn't matter for your current problem.
3)确保在每次提交之前将所有文件都添加到项目中(尽管这对您当前的问题无关紧要)。
4) Find the changed code and set breakpoints for the debugger to catch. I believe that breakpoints that turn YELLOW while running signify that there is a difference between run and code.
4)找到更改的代码并设置要捕获的调试器的断点。我相信在运行时转为黄色的断点表示运行和代码之间存在差异。
I would tend to believe that it would be a problem with the .proj file also, but it sounds like that's not it.
我倾向于认为这也是.proj文件的问题,但听起来不是这样。
#2
Some things to check (but maybe you already did it):
要检查的一些事情(但也许你已经做过了):
- is the new code added to the correct target? You will still see it in the project tree, but it won't be compiled
- if you are using a SVN (or CVS) client that is not XCode, you have to remember to commit (and update) the .xcodeproject file too.
添加到正确目标的新代码是什么?您仍会在项目树中看到它,但不会编译它
如果您使用的是非XCode的SVN(或CVS)客户端,则必须记住提交(和更新).xcodeproject文件。
#3
Your question isn't entirely clear to me, so forgive these follow-up questions:
您的问题对我来说并不完全清楚,请原谅这些后续问题:
- Where in Xcode did you see the changes? In the repository browser, or in the file browser part of Xcode?
- What do you mean by "up your code"? (I'm assuming you mean that you chose the "Update source from repository" option or whatever it is called - I'm away from my mac right now - but I thought I'd check.)
你在Xcode中看到了哪些变化?在存储库浏览器中,还是在Xcode的文件浏览器中?
“你的代码”是什么意思? (我假设你的意思是你选择了“从存储库更新源代码”选项或其他任何名称 - 我现在离开了我的Mac - 但我想我会检查一下。)