views:

1975

answers:

13

While attempting to debug a build created using the 3.2 SDK on an iPhone device I receive the message "A signed resource has been added, modified, or deleted.".

I can clean, rebuild, then install with no error, but if I try to install without cleaning the error shows.

Anyone have an idea as to what might be causing this?

A: 

I'm getting the same thing, when installing on a iPod Touch. I can't link for the simulator (for other reasons), so can't say whether the problem occurs there.

Yes, rebuilding clean or deleting the app from the device allows me to install again. Neither are desirable, iterative solutions!

The minimal "cleaning" I've come across as a work around is manually deleting the Foo.app in the build/Debug-iphoneos directory.

Bill Shirley
FYI, http://blog.shirl.com/2010/01/29/xcode-3-2-2-beta-issue-install-on-device/password: first 4 digits of Xcode IDE component version for the 3.2.2 beta release
Bill Shirley
A: 

I am having the same problem on the same SDK. It appears only when installing the application on the iPhone. It never happens on the Simulator. By removing the app from the iPhone the compiler continues without issues!

Adriano
A: 

it seems this is a bug in xcode 3.2.2: iphonedevsdk

mbotta
+4  A: 

This is pretty clearly a bug in the 3.2 SDK, but I don't want to downgrade. I've found that doing a Clean by pushing Command+Shift+K, then Return is pretty fast before pushing Command+R to build.

davidcann
I have had this problem every time I build for the Device since updating to the 3.2 SDK. Annoying, but easy enough to work around.
marcc
A: 

I have the same issue, installed snow leopard + sdk 3.2, other solutions found on web (renew profile, delete old, restore ipod, clean build) dont work for me - any1 found anything on that?

Icky
A: 

Same for me, thought it has something to do with multiple targets etc. because I changed a lot there. But it's highly possible that it's a Bug in the 3.2.2 release since I did not test extensively in this sdk version before the massive target changes in my project.

Nils
A: 

Hi again,

solved my issue!!!

I found out by accident that somehow a space " " found it's way into the Product Name of my app so it was called "First Second.app" instead of "FirstSecond.app". After deleting the space the issue was gone!

I changed it here: right click on target Get Info Build Tab Packaging Section Product Name <- The name here will be used for the bundle (.app) name

Hope this helps, let me know!

Cheers, nils

Nils
I double checked my settings and this wasn't the problem, I'm leaning towards thinking that it is, in fact, a bug in the new 3.2 SDK.
jessecurry
A: 

wrong answer removed.

rick
+7  A: 

I found a workaround for the bug.

If you delete the .app file in build/Debug-iphoneos/ before building for the device, the app gets installed without errors. And there is a simple way to do that before every build.

Make sure you have selected "Device" in the dropdown overview menu. In XCode go to Project > New target... Then find "Shell Script target" under MacOSX/Other Name it and add it to the current project

Now, in the left navigation panel, under targets, expand your newly created target and double-click on Run Script. In the window that opens replace "# shell script goes here" with "rm -fr build/Debug-iphoneos/*.app" (without the quotes). Now open your main target preferences and under Direct Dependencies add your newly created target. Build and Go! :)

Jernej Strasner
Sorry, doesn't work here. I wiped the whole build directory and am still getting it.
Derek Clarkson
A: 

Thanks Jernej - I wish Apple would tell developers this instead of having to flop around looking for answers. Did anyone file a Radar on this? That's what I get for trying to see what the iPad is like...

jhhl
A: 

I had the same problem in Xcode 3.2.1 when I put a + in my app name. Specifically the "product name" in the build settings. It is fine to have a + in the bundle name in your Info.plist. The same probably applies to other punctuation characters.

Josh
A: 

(SOLVED) This is a weird one. I tried everything I could find. Eventually I changed the product name from "Unit Tests (device)" to "Device Unit Tests" - removing the brackets. Now everything works. The spaces in it appear to be fine.

Previously on stackoverflow: I've just run into this bug with two static library projects. One builds and tests using the GHUnit test runner on the device without a problem. The other projects will not install and gets this error. That means it's something thats different between these two projects. I've so far tried wiping the build directory, taking spaces out of the executable name, and various clean and builds as suggested here.

Derek Clarkson
A: 

I could solved by changing project name. [project]-[Rename] menu. "phase1 (new)" -> "pahse1"

DaVinciWare