iPod touch debugging: Error on install/run only if app exists on device already? - iphone

I am using an iPod to test an app. The device is all set up with the right provisioning profiles, etc-- that's not really the issue.
But every time I start the app from Xcode on the device, I get the "A signed resource has been added, modified, or deleted." error from the Organizer window.
Wait, I know, you think it's a provisioning profile problem.
But here's the kicker: if I just delete the app from the iPod (using the main screen) and try again, it works fine. I only get this error when the app is already installed. The other kicker is that this behavior doesn't happen on an iPhone that I have for occasional testing-- on that device, I can start/restart/restart indefinitely. But using the iPod, my compile-run-test cycle is annoyingly slow since I have to manually delete the app each time.
Any ideas?
I'm using Xcode 3.2.2 (prerelease) FWIW. The iPod has stock OS 3.1.2 on it.
Thanks!

I had a similar problem with the original 3.2 beta 1 and my iPhone running 3.1.3. However, I did not need to delete my app to workaround it. I was able to get around it by using the clean all targets. It seems you've done that though. :(
That said, with the 3.2.2 beta 2: IDE 1643, Core 1644, ToolSupport 1631 - my problem went away.
From the release notes Beta 2:
FIXED: In iPhone SDK 3.2 beta 1, some users saw the message "A signed resource has been added, modified or deleted…" when rebuilding their projects. This has been fixed for beta 2.
Are you sure you're running Beta 2? Perhaps a re-install of xcode might help? I assume you've tried power cycling the iPod Touch?

The only thing I can tell you is file a bug with apple here and hope they fix it

I had the same ussue a couple of days ago. My problem was I had created a distribution build and installed it on my iPod through iTunes. After removing the app from iTunes and syncing the iPod Xcode stopped complaining when making new builds.
Otherwise you could try "Clean all targets" under "Project" in Xcode.

Also had this problem, try turning off the passcode lock: http://bencollier.net/2010/03/debugging-on-iphone-requires-app-deletion/

Related

iPhone has stopped working

Good morning(day/evening/night),
A while ago I installed iOS 6.0 beta on my iPhone. Since then I've been updating to the most recent version of iOS whenever it came out(iOS 6.0 Beta 4 being the last one). But this morning something weird happened.
When I woke up and tried to turn off the alarm, I was shocked by the fact that I had a Wi-Fi choosing screen. After clicking Next at the right side of the navigation bar, it went to a new screen and said "It may take a few minutes to activate your iPhone". After that it told me that iPhone couldn't be activated.
After connecting my iPhone to the Mac, I tried updating iOS, but iTunes said "The software on the iPhone has expired and must be updated to a newer version". But when I try to update from iTunes, it says that iPhone has the most recent version(6.0).
Starting Xcode and organizer showed me that iOS installed is 6.0 (10A5376e), which is iOS 6.0 Beta 4(now it's obvious that it's expired and should be updated). The question is: How can I update to iOS 6.0 from iOS 6.0 Beta 4?
Thanks,
Any help would be appreciated
You must download the iOS6 release version and restore from iTunes with the alt+restore trick.
Note that you will lose all your data if you don't have a backup.
There is a way to do this though, without the need to restore and data will be preserved. This is by clicking the alt+check for updates instead of alt+restore. This is not what Apple recommends so I won't either, but if you don't have a backup and you don't want to loose your data seems like the only choice right now.

Xcode 4 -- "no provisioned iOS device is connected" with iPod touch 2

I have two iPod touches. One is 2nd generation running iOS 4.2.1, and the other is 4th generation, running iOS 4.3. I have the same provisioning profile installed on both of them.
My app runs just fine on the 4th generation device.
With the 2nd generation one, when I look at my device in the organizer, everything looks fine, there is a green dot next to the device, and it shows that the profile is installed. But when I try to run the app, I get the above error.
The deployment target for my app is iOS 4.0.
As of a week ago, I was using Xcode 3, and everything worked fine. Over the past week, I upgraded to Xcode 4, and also had to update the profile, as the old one expired. I did install the new profile on both devices -- and the above situation ensued.
Incidentally, if you are a new developer and you arrived at this question, I suspect your problem is different from mine. This question has been answered in the generic form many times before; several of them are linked from here.
I've tried reinstalling the profile and also restarting both my device and computer. No luck.
What I had to do was change the settings of the scheme. I had it set to "iOS device". This worked fine for my newer iPod. But for the older one, I had to change it to the device name of my older iPod. It was of the form "William Jockusch's iPod (4.2.1, overriding to Base SDK 4.2)".
Annoyingly, Xcode appears to reset this setting every time the device is changed. So I have to set it again every time I swap devices.
Try delete profiles (not just reinstall) in the Organizer and reinstall it, delete profiles in the device (not through Organizer) then reassign profiles in Build settings for all iOS SDK and Debug mode.
It might do the work.
yeah renaming the scheme worked for me too. this is pretty helpful! I was able to duplicate the scheme and add a new one, so it saves it when I close and open xcode again.

iPhone Could Not Support Development

I recently reinstalled OSX. It has been a pain rounding up all of my certificates, etc, but I finally am back. However, when trying to install an app on either of two iPhones 3G's I have, they both say:
Software version: 4.2.1 (8C148) | XCode cannot find the software image to install this version. | Could not support development.
What is going on? Both iPhones list themselves as up to date in iTunes, and iOS developer's center only lists 4.2 as the available SDK.
EDIT: I do have a paid membership, and I have recently had test apps installed on both of these devices.
UPDATE: I removed all 3 ( the 2 included ) of my devices from the provisioning portal, and deleted them from the organizer, closed XCode, detached device, restarted, plugged in device, no luck.
I just got this error with Xcode 4.0.2 and an iPhone 3G running 4.2.1 (the final 4.x allowed on a 3G). I restarted Xcode and it went through the process of collecting debug information, then gave me a green light. Other answers here say that you may also need to quit iTunes for this to work.
Conclusion: Try restarting Xcode. Quit iTunes first if it was open.
Classic ;-)
connect the iphone
Go to Xcode -> Window -> organizer
find your iphone and press "Use for development"
As Jacob said: try adding / removing your device as well
If you still get this error you have an out of date XCode
I had the same problem with IOS 5.0.1 and Xcode 4.2. I restarted Xcode as other suggested. However, I also needed to close iTunes which had started automatically and eject my iPhone from iTunes. Then, restart Xcode and it worked fine.
Just encountered this problem. First, I had both an expired certificate and expired provisioning profile, so had to fix both (and I do this so rarely that it took a good 45 minutes). Then still got the error. Tried phone off/on -- no joy. Shut down Organizer and restarted -- no luck there either. Killed Xcode and restarted, with no luck.
Finally, I turned off the phone, shut down the Mac, turned off the overhead lights, and spun around three times clockwise in my swivel chair, then started everything up again. Then it worked.
(I suspect that iTunes was active and had something to do with the problem.)
This one worked for me just now (power cycle the iOS device)
I just had this happen as well. None of the above solutions seemed to work. In the end, it turned out to be a faulty iPhone charge cable. So check that too if you see this message!
Try freeing up memory by closing down unnecessary open apps. I tried restarting XCode and shutting down iTunes but still had the problem. Then I noticed I was running low on memory on my 4GB MacBook White. I closed down all non-essential apps and when I was done the green light had lit up beside my iPad3 and I could run my app on it.
For me the combination of Google Chrome with lots of tabs open and XCode often is enough to use up all my available RAM; where 4 Gigs used to be plenty of memory for iOS development, with XCode 4.2 it's feeling a bit cramped.
Happened to me when I changed the name of my phone from "mark X's phone" to a more anonymous name. Removed profile, reconnected phone, worked automatically from there.
I just had the same problem.
In my case I had to
open itunes and agree to a new software agreement.
I first agreed to it on the developer portal and then from within
itunes.
I closed itunes, restarted xcode and my Ipad was good to go.
Xcode 5, iPhone 4S, no new name or any other changes that I can think of.
I simply quit iTunes, disconnected the cable, reconnected the cable. Then the organiser gave me the green light.
For me this was caused by a lack of free storage space on the device - after deleting a few videos and app documents, Xcode organiser was able to complete the "symbol copying" etc process. It doesn't appear to need much space for this, so if iTunes doesn't show the storage as being nearly full it's almost certainly not the cause for other people.

My app reboots iPhone on 4.1 iOS

I've upgraded my iOS on iPhone 3G to 4.1 and now I run my app on the device.
Firstly, I couldn't install it becouse Xcode was saying I don't have certification etc. (I have jailbroken iPhone). Finally, I succeeded and installed it.
But know something strange happens....
After I had installed my app on the device I run it.
Then, "cocos2d" image appears on the screen and just a second later device switch off! It simply reboots.
What's more - when the device launchs again and I run my app - it works!
I have no idea what's going on. This app works fine on 3.1.3 iOS (even with the same Xcode - 3.2.5)
What should I do?
Do you think the problem is caused by Xcode or iPhone itself?
Maybe reinstalling Xcode may help?
It could be one of two problems.
It could be a problem with your device. Maybe something got sort of wonky with your jailbreak.
Secondly, it could be a problem with your app. Maybe it's crashing. Have you checked your crash logs?

Xcode "The program being debugged is not being run" error

I saw the other question here with the similar error yet their fixes did not help.
I have a jailbroken iphone 3.1.2, and I just purchased apple's $99 dollar thing and I'm trying to make it so I can debug my apps on the phone. The device installs but will not run when clicked build and go.
If I click on the icon made on the iphone it works.
Any ideas? I already uninstalled and reinstalled my provisioning profile.
This sometimes happens, i usally fix it by unplugging and plugging in my device, or shutting down xcode and bringing it back..
I don't know how to fix it without doing this but I took a gamble and downloaded the latest SDK only available for paying developers and that fixed the issue. Won't let me make the base sdk anything below 4 however.