Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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