I have XCode 14.0.1 installed which is suppose to address 15.7. There is still no 15.7 IOS in the simulator, so I'm using an actual connected device running 15.7 for this test.
I have iPad Mini 4 that has my app that works under 15.6.1. When it's updated to 15.7 it stopped working. It can not be updated further and will not be available for IOS 16 when it comes out, so its imperative that I get this resolved. I can not downgrade either using 3utools or itunes. An iPhone that was updated to 15.7 didn't work either, but the iPhone could be updated to 16 and then the app worked again.
I traced the issue to this line of code:
UIImage *image = [[UIImage alloc] initWithContentsOfFile:filename]
filename is a constructed path to a small bitmap file to where it installs during installing the app.
When I run within Xcode, the image is created correctly and I can see the bitmap (if I click on image) on a connected actual iPad mini 4 using IOS 15.6.1 or IOS 16 on a 5th generation simulator device; but when I use a connected actual iPad mini 4 device running IOS 15.7, the result is image=nil, which kicks out as an error.
Does IOS 15.7 handle bitmaps differently? Any ideas?
The issue according to Apple is that there is a bug in IOS 15.7. The UIImage can not load bitmaps with depths/precision less than 24bits per pixel. They recommend using PNG files instead.
It was not clear when they plan on fixing this if ever.
I changed all my bitmaps to PNGs and the app worked flawlessly.
Related
I have simulator screen problems, after installment of last beta, it's happen randomly, when i build any project, usually on 3-4 time, when i hit play. Have to quit Simulator Application, and start it again.
Anyone have same issue ?
Screenshot:
It seems that Metal is the default renderer for the new simulator and some of the older Apple devices do not support it :
Mac computers that support Metal
For example, I have a mid 2011 Mac-mini and had to switch it to OpenGL to get the simulator working (as suggested by #Jeremy Huddleston Sequoia)
I'm trying to play around with Apple's new ARKit and have downloaded their sample ARKitExample project into Xcode 9 (beta).
Since ARKit doesn't work in the Apple simulator, I'm trying to archive, export and install this ARKitExample app onto my iPhone 7+ so I can actually take ARKit for a test spin as an actual user.
However from that example project's own README:
"ARKit and this sample app require iOS 11 and a device with an A9 (or later) processor. (ARKit is not available in iOS Simulator.)"
Looking at the specs for iPhone 7+, it looks like I cannot upgrade my phone to iOS 11, which makes me think that I cannot deploy and run this ARKitExample app on my phone.
However I see lots of confusing articles about which devices currently support ARKit, like this one, which seems to indicate that my phone does support it.
So I ask: do I need to figure out how to upgrade my iPhone 7+ to iOS11, or will everything work fine as-is, or do I need to find some other device that does run iOS 11? If that last scenario is the case: what devices currently run iOS 11?! I don't think it's even been released yet as it still stands in preview mode...
List of iPhone and iPad Compatible with ARKit in iOS 11:
iPhone SE
iPhone 6s
iPhone 6s Plus
iPhone 7
iPhone 7 Plus
iPad Pro (All three variants and models)
New 9.7-inch iPad (2017)
We are recompiling our SIMit iPad apps in Xcode 6.1. The apps are working correctly on all iPads tested except the iPad Air. The original version compiled in Xcode 5 works correctly. The iPad Air is not displaying images. The app works so it thinks the images are there.
I had the same problem. The bug was related to a UIImageView+Category file that caused the bug with 64-bit processing of UIImageView alpha. When I deleted it, the problem was gone. Images not displaying on iPad AIR, but display on other iPads
I am finding that Xcode 6.0.1 is messing up my code and output on simulator and iphone
Xcode 6 is making my landscape games look like crap on the simulator and phone (iOS 8).
When I run it on simulator for iOS 7 it works fine. Does not run still not on iPhone 5 iOS 8. Runs fine on iOS 7 iPhone 4 iOS 7
Therefore the issue is not the code, but Xcode or IOS or some combination.
Help me, thanks in advance
Here is a image on Xcode 6.0.1 with iOS 8
Here is a image on Xcode 5.1.1 with iOS 7
I had the same problem but then noticed the width and height were swapped around for ios8 so now my initwithframe looks like this
- (id)initWithFrame:(CGRect)frameOrg
{
CGRect frame = frameOrg;
isIOS8= ( frameOrg.size.width > frameOrg.size.height);
if (yes && isIOS8)
{
frame.size.width = frameOrg.size.height;
frame.size.height=frameOrg.size.width;
}
self = [super initWithFrame:frame];
...
...
...
}
I needed to delete the apps from all devices that it was installed on and clean all the projects (including deleting from the simulator) occasionally still runs in rotten apple mode but haven't found a way around that yet. About 95% of time runs in apple goodness mode. Seems to be something to do with the compile as when it switches to rotten apple mode it consistently mucks up everytime I run until I clean and recompile. Likewise everytime I get a good compile I can run that as many times as I like without if mucking up. So I think its an xcode 6 issue myself :( hope this helps.
Ps the game looks Cooool.
Just looked at your screen shots more closely. As well as the above , have you checked your iPad and iPhone settings are both set to landscape AND your not running the iPhone app on the iPad. Im just looking at the change in scale between your background and your icons. It looks a bit like another iOS8 problem I had when I accidentally ran the iPhone version on the iPad sim. UnClick "Universal" and try specifically setting and running the iPad version!
It used to work properly, with 100% as well as 50%. Then I did not use the simulator for some time but only the console, having moved the simulator almost out of site. Now I need it but realize that instead of an iPhone surface just a regular window is shown, like in this thread:
XCode iPhone simulator does not look like an iPhone
I read lots of proposal I found on the web to this problem and followed the advices.
So I changed the size to 100%, tried different iPhone devices. And finally I deleted the Xcode application from the application folder and removed all remaining items by putting in the order
sudo /Library/uninstall-devtools --mode=all
into the terminal.
I downloaded Xcode again.
The problem is still there.
The very strange thing about it: It did work properly when I installed Xcode for the first time, about 6 weeks ago.
As far as I know it depends on the deployment target whether the simulator shows the iPhone frame or not. I think if you set iOS 7 as the target you won't be able to see the iPhone image around your app screen. (For example, I have never seen an iPhone image in the simulator for a 4'' device.)
Try changing the deployment target and play around with different devices under Hardware / Device in the simulator.
Edit:
Here is a more detailed answer.
It's one of the replies to the question that you linked.
You better select your simulator and set Hardware -> Device -> iPhone
Note 1: If you want the simulator should looks like iPhone do not select the retina simulator.
Note 2: You must check the target version of you app in xcode it must be below 7.0
Note 3: Keep the scale of simulator always 100%.
Are you sure the current project you're working on is an iOS and not an OS X project? You can verify this be looking at the project's folder. If the app ist for OS X, there is most likely a .xib file. If it's a iOS project, there should be a storyboard file.
As the OS X apps use windows, like the one you described, this could be a hint.
I have found the solution for the problem I had (and other users as well):
At PREFERENCES / DOWNLOADS older versions of the iOS simulator are available. While at the moment the current version is 7.0 (beginning January 2014), versions 6.0 and 6.1 are being offered for download.
After downloading I could chose more devices than with version 7.0. Now also the non-Retina iPhone is available.
As a result, the iPhone surface is being displayed when set to 100% (at WINDOW - SIZE).
Thanks to everyone helping!