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. 用xtrabackup实现mysql的主从复制 阿里云rds到自己创建mysql

    来源 http://blog.51cto.com/825536458/1803968参考https://segmentfault.com/a/1190000003063874 如果我们用传统的mysq ...

  2. Linux基础学习-基本命令

    基本命令 date命令 参数 作用 %t 跳格 %H 小时(00-23) %I 小时(00-12) %M 分钟(00-59) %S 秒(00-59) %j 今年中的第几天 [root@qdlinux ...

  3. Vue.js—单元测试

    Vue.js--测试 这里采用的是Vue官方工具(Vue-CLI)搭建出来的项目,在这个搭建工具中推荐的两种测试分别是 端到端的测试 E2E 单元测试 Unit Test 端到端的测试(E2E) E2 ...

  4. (转)UITextField

    //初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, ...

  5. Django框架简介及模板Template,filter

    Django框架简介 MVC框架和MTV框架 MVC,全名是Model View Controller,是软件工程中的一种软件架构模式,把软件系统分为三个基本部分:模型(Model).视图(View) ...

  6. python 四——线程、进程、协程

    内容概要 1.进程与线程优.缺点的比较 2.适用情况 3.线程 线程的创建 setDaemon join event RLock 队列 4.进程 创建进程 setDaemon join 线程与进程,数 ...

  7. vm下-kali-linux-xfce-2018.1的简略安装

    1.选择版本为 debian 系统,因为是kali是基于debian的linux发行版 2.在安装首页选择 Graphical install,图形化安装,之后会让选择语言,选择简体中文,中国等,这些 ...

  8. appium+python自动化-adb shell按键操作(input keyevent)

    前言 接着上篇介绍input里面的按键操作keyevent事件,发送手机上常用的一些按键操作 keyevent 1.keyevent事件有一张对应的表,可以直接发送对应的数字,也可以方式字符串,如下两 ...

  9. 检测SQLserver数据库链接是否正常

    select * From [数据库链接名].master.dbo.sysdatabases where name='数据库名' and status<>512

  10. 彻底解决python cgi 编程出现的编码问题

    Answering this for late-comers because I don't think that the posted answers get to the root of the ...