anyone know how to fix the below problem which shows up when I running my project :
Could not load IOSurface for time string. Rendering locally instead swift 4
I did not any of update xcode, pod, It all of sudden appeared on the xcode log.
Related
I have recently upgraded both Xcode (to 11.5) and Mac OS to Catalina. Xcode has been working fine for a few days. I clicked on a JSON file in my project and Xcode hung (with SBBOD). I forced quit and rebooted but now Xcode will not load - it starts, but just shows SBBOD again. On startup, it tries to load my last project, I have tried launching from Finder by clicking on a PlayGround project but same issue!
Any suggestions for how I recover this situation?
While the cause is not resolved, I left Xcode running overnight and it is now working. This issue seems to be with displaying a large JSON file (about 1MB). Xcode is taking a few hours before it becomes responsive. I just left it to run.
I am trying to apply a texture image to a ColorSprite node in my GameScene.sks file and everytime I try to do this my xcode crashes instantly..
I have attempted to reload my sprites and restart computer and xcode but nothing is working...
This was working fine a bit ago, but this morning it just stopped working... What could the issue be?
EDIT: Interestingly, I tried completely different png images I downloaded from google and when i put a single image (no #2x/#3x) sks does not quit... however, when I try to put a #2x in the crash happens...
After fiddling with it for a while, it seems that xcode just does NOT like #2x or #3x file names.. I can add a normal named image ("player.png") for example but when I add the #2x.png it freaks out. It seems all I can do isdd one file in the 1x slot of assets folder named (player.png)
This is fixed in the latest version of xcode 10.1 on OSX Mojave
Every time I open my app in Xcode 4.4 it crashes. It never used to do this in Lion and being very close to submission after about 6 months of work, I'm pretty annoyed to say the least!
This is part of the crash report if it helps; I can't make head nor tail of it. If anybody can help me, I'd be forever in your debt.
UNCAUGHT EXCEPTION (NSBadBitmapParametersException): Overflow allocating bitmap backing store. Cannot back bitmap with 1152921504606846976 bytes per row, -9223372036854775808 height, and 1 planes.
Um, have had that issue what I did Is delated xcode and redownloaded it.
Hope that works!
Experiencing such kind of problems, I got the following conclusion: 3 files can be corrupted
Your project file, in that case try using time machine to get the
one which will work
The XCode prefs: /Users/xample/Library/Preferences/com.apple.dt.Xcode.plist
Your project's Derived data ~/Library/Developer/Xcode/DerivedData
If one of those is corrupted, it will corrupt the 2 other one. To recover a project, start trashing the pref and derived data, then try to open your project. Reinstalling XCode did not solved my problem, using the DP4.5 neither in my case.
HOWEVER: Installing the latest "Command Line Tools for Xcode solved it (and this is probably the first thing to try)
Sounds weird but Xcode 4.4 has problem with printing out logs of big strings.
I had the same problem, and I deleted an NSLog which printed a big amount of text, and the crash stopped...
For me, I'm getting this crash when trying to open a particular .storyboard file from the project view. If I open the file directly through finder, it doesn't immediately crash so long as the window is small. If I try to resize it or scroll one of the views into view, it will crash again.
I faced same issue with XCode 4.5.1. It keep crashing whenever i open storyboard and it throws following error:
Application Specific Information:
ProductBuildVersion: 4G1004
UNCAUGHT EXCEPTION (NSBadBitmapParametersException): Overflow allocating bitmap backing store. Cannot back bitmap with 1152921504606846976 bytes per row, -9223372036854775808 height, and 1 planes.
Apple released new developer preview version of XCode 4.5.2 last week, which has fix for all intermediate crashes that we saw in previous versions. This build is available in https://developer.apple.com/devcenter/ios/index.action
You can try this.
This is going to Apple as a bug report I'm afraid; they said from the crash report that it looks like a bug. Thanks to everyone for their help.
I'm using Xcode 4.3.1. Adding launch image is pretty simple -- just drag the image to the Project->Summary->Launch Images window.
So I set a launch image before and it worked. But when I dragged a different image and run the app on my iPhone again, the launch image still remain the same as the old one. Even after I delete the launch image from the Launch Images window, the old image still shows up upon launching.
I've tried clearing the build as well. Didn't work.
Help please. Very much appreciated!
I had the same issue, but with launch storyboard. I had to rename the image I've used as a background.
Deleting from the device didn't help with Xcode 4.5.1. The build process is caching the image. With a hint from Zorayr's answer to related question "Xcode, can't remove “Launch image” from project," I decided to track the cached image down and destroy it, so it wouldn't keep being built and showing up in my test App.
Eventually, I found that Xcode (at least 4.5) builds the images by default in the following path off your home directory:
~/Library/Developer/Xcode/DerivedData/<ProjectName>-<uniqueID>/Build/Products/<Scheme>-iphone{os,simulator}/<ProjectName>.app/
So in addition to removing the old App image from the device (or simulator,) you also need to remove the image file(s) from the build cache. But just doing something like
rm ~/Library/Developer/Xcode/DerivedData/MyProject-fpwnjlbayydgzxcdlyrwxrwntapr/Build/Products/Debug-iphoneos/MyProject.app/Default*.png
won't always solve your problem. Instead, you might get a strange error in a popup window saying something like "Signed product moved or deleted." (I can't reproduce it right now to get the exact text.) It doesn't show up in the log file, and it just hangs the build process (in Xcode 4.5.1.) To get around that, I deleted all of the files under the <ProjectName>.app/ directory tree and the sibling directory tree <ProjectName>.app.dSYM/ containing (seemingly) the symbol tables and signature files for the parallel products. The build process will then re-create everything with no more complaints.
What worked for me on iOS 10.2.1, iPhone 5s hardware test device, Xcode 8.2.1
I think it has nothing to do with Xcode. The test device appears to be caching the LaunchScreen.storyboard image. I needed to reboot my device by holding home + top button. Then I rebuilt, low and behold, the image updated.
You should delete the app from the device, then launch it again.
Quit the simulator and then run the project again.
For device, as mentioned in other answers, delete the app from the device and then run the app again.
Steps that worked for me in 2020 (xCode Version 11.4.1):
Delete derived data
Restart xCode
Delete app on device
Restart device
Clean rebuild and run
Except the last step, I think the order doesn't matter.
It's really annoying though and I'm not even sure if it always works.
Pretty pathetic on apple's side. Good luck guys!
If you were using an asset catalog, it can also help to delete the images from the Images.xcassets file, and then load them manually in General>Launch Images.
This is what worked for me
Put the new image in project folder
Run app on device/simulator
Put image in xcassets under a different name
Run app again and it works
I thought I would create an update for anyone who is XCode 10 (and possibly XCode 9) and experiencing a blank black or white screen after modifying a launch image.
In my case I had to create launch images for the iPhone XR, iPhone X, iPhone XS and iPhone XS Max.
Originally I just had a sample white launch image for testing. After creating my proper image for the XR and replacing the sample the change would simply never show (on the XR device). I would still get a white screen.
I tried all of these in combination and failed:
-deleting the app beforehand.
-deleting xcode derived data and cleaning the build.
-restart Xcode and the device and the computer.
-deleting any existence of the white launch image on the computer.
-manually editing the JSON in a new images asset with the correct file names
The XR device would continuously show a white screen and after meddling with the build setting and migrating back to image packs it turned to black.
Solution:
Ultimately it started working after I also replaced the white 'XS' launch image with a new one as well. Even though the device is an XR. This is an odd solution but solutions like this have helped with launch images throughout the years.
For me, quitting the Simulator and restarting it worked -- I can finally see the updated launch image. The note above from Emil Korngold triggered me to try this.
I have combed through the entire internet looking for this answer , and have found nothing, so I have decided to post.
EQUIPMENT: Mac Mini (2011) , running OSXLion (10.7) , 8gb ram, 500gb hd
XCODE: version 4.2, running IPAD 4.3 and 5.0 simulators
I have developed an Ipad app using the program HYPE (html 5 designer/generator), this program was developed by an APPLE team. I then brought it into Xcode using the PhoneGap template. I had developed this app in a previous version of Xcode (4.0 using MAC osx snow leopard) and was able to transfer everything into Xcode 4.2 (including the phonegap template) successfully.
All was running fine. I launched my app in the app store successfully (Five Element Clinic Book HD - http://itunes.apple.com/us/app/five-element-clinic-book-hd/id495512918?alreadyRedirected=1&ign-mpt=uo%3D2&mt=8)
I noticed some issues I wanted to change (namely the external hosting was not working - my embeded youtube video (iframe) was not working, links to external websites not working and an iframe bringing in a counter script (javascript) also not showing - so I decided to take a look at everything to see if I adding more detailed URLs in the phonegap.plist external hosts area would work.
I didn't even get that far. When I opened Xcode again (after about 2 weeks, so there must have been some kind of API change) - I had a tone of errors that lead me to the information of needing to Convert my files over to Objective C ARC.
So I did this, with no errors or issues. Everything converted seamlessly. All files are showing converted to Objective C ARC.
I CLEANED then reBUILT - with absolutely no errors or warnings - and RAN my app in the IPAD simulator (4.3 and 5.0).
This is what happens. The simulator opens, my app launches, the start up screen shows, the app begins to load the rest of the app and just goes to a WHITE SCREEN. Forever. It goes no where else.
So I have quit the app, restarted the app, deleted the app, tried everything again. Same issue. If I quit the app it just goes to a black screen. I have also restarted Xcode and my computer, ran my disk warriors to fix file permissions, etc.
I still have my old project in my old laptop (Xcode 4.0, MAC OSx Snow Leopard). So I went back there to see if I could just work from the old environment. Nope. Same errors that require me to convert files to Objective C ARC. So I converted with zero issues and zero errors. Cleaned, Built - no errors) and ran the program in the simulators. None of them work, everything loads the start-up screen and goes to a white page.
Does ANYONE know what is going on?
And thank you.
Mine was not a white screen - but a black screen.
In applicationDidFinishLaunching I was using the result of
UIWindow* window = [[UIWindow alloc] initWithFrame:mainBounds];
as a local variable.
Converting to ARC released it.
Instead it needed to be assigned to a property of my app delegate:
#interface MyAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *mainWindow;
}