iOS Build a Simple iPhone App with Swift View Controllers and Views Using IBAction to Execute Methods

Deysha Rivera
Deysha Rivera
5,088 Points

Error on Xcode 10 building Fun Facts App

In my output section I am seeing this error pop up. I am following instructions and running the simulator as iPhone 6s; however, it is not an option for "view as." It is being viewed as iPhone 8. I still get the error if I run the simulator as iPhone 8. There are a lot of differences with Xcode 10 and it's been slowing me down a lot when following the videos.

2018-12-17 15:18:35.831752-0500 FunFacts[21835:13828952] libMobileGestalt MobileGestalt.c:890: MGIsDeviceOneOfType is not supported on this platform.

Any thoughts?

Clark Reilly
Clark Reilly
6,204 Points

Oh dear, the libMobileGestalt error... I'd like to know what causes that, too. All I can say is it happened to me once, then I just fudged around a bit and it went away. No idea what I did or why. I think it had something to do with the interaction between the viewController and IB, but I'm not sure.

Deysha Rivera
Deysha Rivera
5,088 Points

I should clarify this error shows in the debug console. If I change the simulation to iPhone XR, the error goes away. I don't think Xcode wants to play with iPhone 6s anymore (what's instructed in the video).

3 Answers

Matt Brody
Matt Brody
2,041 Points

Did anyone ever get an answer for this? I'm getting this error even if I switch to iPhone Xr

Deysha Rivera
Deysha Rivera
5,088 Points

I have just been running simulations in iPhone XR. You might try copying your code, deleting and pasting back in to see if it refreshes its atttude.

Matt Brody
Matt Brody
2,041 Points

Thanks for responding Deysha. I was able to solve it by uninstalling and installing a earlier version of Swift 9