Did you clean the build folder by pressing command while the cursor is on the clean option? Are you sure you don't have two instances of the app installed? Try turning your iPhone off and on.. Sounds dumb but has worked for me in the past

Lion is known to have this issues with Xcode. I solved this by installing the newest beta available. If you don't have access to the newest beta try uninstalling and reinstalling. To uniinstall:

sudo /Developer/Library/uninstall-devtools --mode=all

After upgrading to Lion, Xcode 4.1 is no longer building my iOS apps with the latest changes incorporated (i.e code, bundle name, icon changes).

Before the upgrade, when I was using Snow Leopard, no matter what the change, or even if I replaced a file outside of Xcode with Finder or used an external text editor, Xcode would always build a fresh copy with all of the changes incorporated, without having to do any extra steps.

Now, Xcode seems to insist on using a previous version, and the only way I can be sure that it will build with all of the changes incorporated is do a Product > Clean from the main menu and then restart Xcode.

What's going on here? Is there a simple setting that I am missing? I never had to anything except click Run when I was on Snow Leopard, and all changes were always incorporated without a glitch. If I can't fix this I am going to revert to Snow Leopard.

asked Sep 21 '11 at 0:27
 
   
Try restarting Xcode. You could also write
a macro that does a clean and a build operation at once. –  Aurum Aquila Sep 21 '11 at
0:34
   
I have this problem too sometimes, I've
found it most often occurs when I change some sort of resource file (i.e. image,
xib, etc). Usually Command-Shift-K followed by Command-B works just fine without
the need to restart. Uninstalling the App on the device itself is another way
I've been able to ensure I get the latest copy on the device. –  Thuggish Nuggets Sep 21 '11 at
0:47

add comment

5 Answers

Lion is known to have this issues with Xcode. I solved this by installing the
newest beta available. If you don't have access to the newest beta try
uninstalling and reinstalling. To uniinstall:

sudo /Developer/Library/uninstall-devtools --mode=all

answered Sep 21 '11 at 0:35
El
Developer

2,4941724
 
   
Does uninstalling and reinstalling fix
this? I don't think installing a beta is the answer since I thought you couldn't
post an app to the App Store that was built with a beta version of Xcode or can
you? –  Thuggish Nuggets Sep 21 '11 at
0:45

add comment

Delete the "Build" folder in your app's folder on your computer and try running the app again. That should fix it.

answered Sep 21 '11 at 0:36
Prajoth
3041517
 
   

add comment

I've experienced plenty of issues with taking "old" projects into newer
versions of Xcode. If it's not TOO painful, I'd make a new project and just add
all your classes and resources to it to make sure it's fresh for Xcode. This
isn't trivial in some cases, but it's more likely to fix your issue.

answered Sep 21 '11 at 0:37
LucasTizma
4,87112549
 
   

add comment

Had a similar effect where every change appeared to be ignored, Xcode said it
compiled but the simulator showed a previous version. Even when I did a clean
and rebuild. The problem was in the simulator, I noticed 2 icons of the same
project. I uninstalled them both in the emulator and run it again, this time
correctly with all my changes. Guess the problem appeared because of changes in
the name of the project bundle, this must have confused the simulator. so
deleting the apps in the simulator did the trick.

answered Feb 13 at 14:12
 
   

add comment

Go the folder

/Users/%yourusername%/Library/Developer/Xcode/DerivedData/%yourworkplacename%/Build/Intermediates/

delete the projects that you want them to rebuild.

It works for me to make the modified file take in effect after I run
it.

Xcode not building app with changes incorporated的更多相关文章

  1. [转]使用Xcode 4发布App 实例操作

    使用xcode 4发布app 实例操作是本文介绍的内容,不多说,我们直接进入话题. 1.iOS Provisioning Portal 和iTunes Connect 没有变,下载与安装.mobile ...

  2. Xcode 7提示App Transport Security has blocked a cleartext HTTP (http://) resource load的解决办法

    Xcode 7提示App Transport Security has blocked a cleartext HTTP (http://) resource load的解决办法   今天使用Xcod ...

  3. Xcode使用介绍之一:Xcode简介+创建App应用

    一.Xcode简介 Xcode是苹果官方的集成开发环境IDE,开发者可以使用其开发基于iPhone,iPad,Apple Watch以及Mac平台的应用.Xcode具有如下特点: 一站式开发工具.所有 ...

  4. Xcode 7遇到 App Transport Security has blocked a cleartext HTTP 错误

    今天用Xcode 7 创建新项目用到 URL 发送请求时,报下面的错: “App Transport Security has blocked a cleartext HTTP (http://) r ...

  5. /Users/XX/Library/Developer/Xcode/DerivedData/XX.app/xxsdk.bundle Directory not empty

    今天在升级xcode后真机调试偶然发现这个问题,查了一些资料发现还是不能完全解决 解决方法:参考的(http://blog.csdn.net/alincexiaohao/article/details ...

  6. 使用Xcode Instruments定位APP稳定性问题

    Xcode Instruments提供了各种各样的工具用来定位APP的各种稳定性问题.这里简单总结几个问题: 1. 内存泄漏 Xcode->Open Developer Tools->In ...

  7. Mac xcode 编译产生app的路径

    .../<current User>/Library/Developer/XCode/DerivedData/<Project name>-<other characte ...

  8. 【转】利用xcode生成的app生成可以在iphone和itouch上运行的ipa安装包

    转载地址:http://blog.csdn.net/yohunl/article/details/5971252 在编译好的真机版目录下的.app文件,至于生成真机可以运行的app的方法,有两种方式, ...

  9. 利用xcode生成的app生成可以在iphone和itouch上运行的ipa安装包

    在编译好的真机版目录下的.app文件,至于生成真机可以运行的app的方法,有两种方式,一种是交99美元获得一个证书,另外一种是破解的方式,在此不再详述,本文假设你已经生成了真机上可以运行的app包了( ...

随机推荐

  1. Controller View 模式

    参考:https://blog.andrewray.me/the-reactjs-controller-view-pattern/ Flux参考:http://www.cnblogs.com/hell ...

  2. laravel富文本编辑和图片上传

    ---恢复内容开始--- 首先先找到一个适合的编辑器是胜利的一步,选择wangEditor这个编辑器 地址:http://www.wangeditor.com/ 然后选择下载,我是通过网上学习的,所以 ...

  3. Python面向对象(类之间的关系)(三)

    类与类之间的关系 在我们的世界中事物和事物之间总会有一些联系. 在面向对象中. 类和类之间也可以产生相关的关系 1. 依赖关系 执行某个动作的时候. 需要xxx来帮助你完成这个操作. 此时的关系是最轻 ...

  4. Python文件指针与Python函数

    文件内指针移动:f.seek() 强调:只有t模式下read(n),n代表字符的个数,除此以外都是以字节为单位. """ 文件内容:哈哈哈哈 呵呵呵呵 "&qu ...

  5. 包含min的栈

    #include <iostream> #include <stack> using namespace std; void push(stack<int> &am ...

  6. go 和make的用法 区别

    Doand Make are two verbs which frequently confuse students of English. Learn the Difference between ...

  7. 2017年 湘潭邀请赛(湖南)or 江苏省赛

    这套题是叉姐出的,好难啊,先扫一遍好像没有会做的题了,仔细一想好像D最容易哎 Super Resolution Accepted : 112   Submit : 178 Time Limit : 1 ...

  8. iRule Event Order - HTTPSv7

    v

  9. BZOJ 3295 [Cqoi2011]动态逆序对 ——CDQ分治

    时间.位置.数字为三个属性. 排序时间,CDQ位置,树状数组处理数字即可. #include <cstdio> #include <cstring> #include < ...

  10. POJ 1860: Currency Exchange 【SPFA】

    套汇问题,从源点做SPFA,如果有一个点入队次数大于v次(v表示点的个数)则图中存在负权回路,能够套汇,如果不存在负权回路,则判断下源点到自身的最长路是否大于自身,使用SPFA时松弛操作需要做调整 # ...