Xcode8 : Failed to remove keychain items - xcode8

When I run the app on my phone it works all right, but when I run it on the simulator I get this error:
I don't know what can I do for this. What is wrong?

You need to go to the simulator and long press the icon of the app you are trying to run. Then press the small x on the top right of the app to delete it.
Run the app again and you are fine!

Related

iOS 8 beta 5 Today view extension (widget) stuck at Waiting to Attach

I want to debug a today view extension (widget) in iOS 8, so I select the widget under "Scheme" in Xcode, and select my iPhone as the device and hit run. It says "running today-view on iPhone" and on the side bar on the left it says "Waiting to attach". It gets tuck at the "waiting to attach" phase forever and never shows me any debugging info on my iPhone. However this works fine if I select the simulator as my device. After a few seconds of "waiting to attach" in the simulator, the widget comes alive and debugging info is displayed.
Has anybody come across why an extension won't show debugging info on an iPhone but will in the simulator?
Do not stop & start the debugger while notification windows is open in the simulator. Close the notification window. Stop the debugger. Start it again. Debugging widget in iOS8 is very delicate. You need to do everything in a slow non-agressive way (for now).
Edit the extension scheme and make sure that under Run, the Executable option is set to Ask on Launch.
Run the extension scheme.
From the list, select the Today executable.
It should launch the Today app and your extension should be attached to the debugger now.
Close the notification window. It should start working.
I've been able to debug my Today view extensions in this way.
1) Make sure the notification center is dismissed.
2) Stop every process in Xcode with the stop button.
3) Run the extension scheme
4) Pull down the notification center and should hear the usual "app launched" sound from Xcode
5) Debugger will be attached automatically and you'll be able to debug the extension.
Let me know if this works for you.
This happened to me .... Looks like you were doing everything right .... try all the above.
The problem went away when I unplugged and re-plugged in my Phone.
Sometimes click on the widget will fire the running of extension.
Delete the app from your phone
Run the today widget scheme
It worked for me.

changing a png image from project

I want to change a png image in my project, I deleted the first one, and add the new one, but the last one is shown.
I deleted the second one from project, and the original image is still shown. I look for the image in the project, and it is not there.
How can I delete the first one? I tried to clean the project, but the image continues there.
Did you try:
Removing the app from device / simulator?
Closing Xcode?
Rebooting your computer?
Rebooting your device?
Resetting the simulator?
Try Product -> Clean; then Run the app once again.
If it isn't working, then close the Xcode and open again and Run.
Even the problem exists, then just reset your simulator(ResetContentsAndSettings) and Restarts the Mac.
Delete that build from your simulator first.
Then clean and build the project again.
It should work.

changed product name in build settings, now app won't launch in simulator

I wanted a different title to be displayed in the sub-title under my iPad app's icon and changed the Product Name for my app under Build Settings.
This worked but has had a strange side effect. Whilst the app continued to work perfectly on a connected iPad, on the emulator it now behaves in a similar way to that described in [this question].1
Namely, it says it has finished running <my app> on iPad 6.0 Simulator
I tried changing the Product Name back but the problem persists.
I also tried some of the suggestions on the other question (e.g. removing armv7 frfom Required Device Capabilities) but nothing worked.
This isn't a showstopper at the moment as I have a real iPad to test on but I'd still like to understand what is going on, if anyone knows.
Sounds like time for a reboot of the Mac. Restarting Xcode might suffice. One other thing to try is to delete the app from the simulator.
I have seen this on iPhone simulator 6. Many a times, when you click "Run" again - it runs without problem.
However if that doesn't work, you may try one of the following:
Project->Command+Alt+Shift+K - a choice will appear saying something like clean folders. Do it.
In organizer, go to derived data folder (finder) using tiny arrow just at the right of your project. Try deleting your project from finder. If it doesnt delete at once, try it often.
Try resetting iPhone or iPad simulator.
Exit XCode and reopen project. Do the same with iPhone / iPad simulator.
If you are wondering why this is happening, no one really knows! It's just some flags gone bad, restored once you re-do everything for it to work, that's it.
Have you tried switching off the Debugger?
So Edit Schemes -> Debugger -> None
Also restarting the Simulator and Xcode and cleaning the project may help
Use another way: click on the azure icon of your project, keep the trackpad pressed until you see it allows to edit the name. Choose the name that you want, then a sheet like this will appear:
Click "rename" and you're done with it.

Xcode: Can't create snapshot - This file does not exist in the index

I am trying to create a snapshot in Xcode 4, and I keep on getting the error "This file does not exist in the index." and it says it can't create a snapshot. When I press ok, it has the progress bar for creating a snapshot and doesn't do anything else.
I am guessing this is happening when using the simulator. This happened to me a while back. Use this program:
http://www.curioustimes.de/iphonesimulatorcropper/
IOS-Simulator cropper is a great tool to take screenshots of the simulator. It will let you save the file anywhere and also gives you the option to save only the screen image or with the iphone border. It is byfar the best screen shot program for the iphone simulator I have found. If your not using the simulator, just press the sleep button and the home button at the same time and the picture will be saved to your camera app

Symbian textshell mode border problem

I edited epoc.ini
added textshell in the first line.
When I run from the emulator:
NO window border is shown when I run.
It prints directly to the screen, so I can't interact with it
and the console window is isolated from the emulator window
I'm runninbg Windows 7 with Screen Resolution 1280*780
Instead of running textshell and get all this headache , just run the normal emulator and run the eshell from it, and type the name of your console application to run it.