# Even a basic iOS app generates a huge number of errors in Xcode

(written by lawrence krubner, however indented passages are often quotes). You can contact lawrence at: lawrence@krubner.com, or follow me on Twitter.

I’ve decided I should learn how to build native iOS apps. So I am following a basic tutorial for Xcode and iOS.

As soon as I’ve created the project, I try to run it. It does compile and run, but the log is full of hundreds of errors. I’m putting a small sampling below.

Does Apple realize how confusing this is for someone who is just beginning?

I learned how to program back in 1999, writing PHP scripts. One great thing about PHP is that the error messages were clear. That is very important when you are just learning. All errors were real things that I had to worry about, and I was always told which line of code was causing the problem.

Likewise, I’ve recently done a great deal of Java and Clojure programming. I don’t expect to see errors, unless there is something that I actually have to worry about.

But in this case, there were hundreds of errors, but apparently I can safely ignore all of them.

That leaves me wondering, when I run into a real problem, how will I diagnose it? How will I find the real error when the logs are full of garbage?

Here is a small sample:



SpringBoard[28470]: |GAXGeneral|info| whitelistedApps and appSelfLockIDs both nil.  No need to enable GAX (Single App Mode)

SpringBoard[28470]: Installed apps did change.

"com.apple.PassbookUIService",
"com.apple.SharedWebCredentialViewService",
"com.apple.mobilesafari",
"com.apple.share",
"com.apple.SafariViewService",
"com.apple.appleaccount.AACredentialRecoveryDialog",
"com.chernetwork.cher.cher-ios-native",
"com.apple.CloudKit.ShareBear",
"com.apple.Preferences",
"com.apple.WebContentFilter.remoteUI.WebContentAnalysisUI",
"com.apple.iCloudDriveApp",
"com.apple.mobileslideshow",
"com.apple.mobilesms.compose",
"com.apple.CoreAuthUI",
"com.apple.MailCompositionService",
"com.apple.Passbook",
"com.apple.WatchKitSettings",
"com.apple.MusicUIService",
"com.apple.TencentWeiboAccountMigrationDialog",
"com.apple.WebViewService",
"com.apple.TrustMe",
"com.apple.AccountAuthenticationDialog",
"com.apple.social.SLYahooAuth",
"com.apple.Maps",
"com.apple.PhotosViewService",
"com.launchdeck.peeroapp",
"com.apple.quicklook.quicklookd",
"com.apple.Health",
"com.apple.DataActivation",
"com.apple.Home.HomeUIService",
"com.apple.ServerDocuments",
"com.apple.HealthPrivacyService",
"com.apple.WebSheet",
"com.apple.camera",
"com.apple.mobilecal",
"com.apple.news",
"com.apple.ios.StoreKitUIService",
"com.apple.gamecenter.GameCenterUIService",
"com.apple.reminders",
"com.apple.PrintKit.Print-Center",
"com.apple.webapp",
"com.apple.webapp1",
"com.apple.gamecenter"
)}

itunesstored[29232]: (Error) MC: MobileContainerManager gave us a path we weren't expecting; file a radar against them

Expected: /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles

Actual: /Users/lkrubner/Library/Developer/CoreSimulator/Devices/7E725FBD-23F1-4759-BC45-FFC84DC93861/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles

Overriding MCM with the one true path

SpringBoard[28470]: *** error reading settings archive file:

SpringBoard[28470]: *** error reading settings archive file:

assertiond[28474]: assertion failed: 15G19009 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1

Mar 22 17:29:01 --- last message repeated 3 times ---

fileproviderd[28458]: plugin com.apple.ServerDocuments.ServerFileProvider invalidated

ServerFileProvider[29231]: host connection  connection from pid 28458 invalidated

SpringBoard[28470]: Cannot get managed lost mode file on watch or simulator: -[FMDFMIPManager(Private) getManagedLostModeFileURL]

SpringBoard[28470]: Normal message received by listener connection. Ignoring.

Mar 22 17:29:06 --- last message repeated 2 times ---

SpringBoard[28470]: could not find icon for representation -> com.apple.MobileSMS

SpringBoard[28470]: throwing out icon because it isn't visible in the model : node= com.apple.camera

SpringBoard[28470]: could not find icon for representation -> com.apple.weather
SpringBoard[28470]: could not find icon for representation -> com.apple.mobiletimer
SpringBoard[28470]: could not find icon for representation -> com.apple.videos
SpringBoard[28470]: could not find icon for representation -> com.apple.mobilenotes
SpringBoard[28470]: could not find icon for representation -> com.apple.stocks
SpringBoard[28470]: could not find icon for representation -> com.apple.MobileStore
SpringBoard[28470]: could not find icon for representation -> com.apple.AppStore
SpringBoard[28470]: could not find icon for representation -> com.apple.iBooks
SpringBoard[28470]: could not find icon for representation -> com.apple.facetime
SpringBoard[28470]: could not find icon for representation -> com.apple.calculator
SpringBoard[28470]: could not find icon for representation -> com.apple.podcasts
SpringBoard[28470]: could not find icon for representation -> com.apple.Bridge
SpringBoard[28470]: could not find icon for representation -> com.apple.compass
SpringBoard[28470]: could not find icon for representation -> com.apple.tips
SpringBoard[28470]: could not find icon for representation -> com.apple.VoiceMemos
SpringBoard[28470]: could not find icon for representation -> com.apple.mobileme.fmf1
SpringBoard[28470]: could not find icon for representation -> com.apple.mobileme.fmip1
SpringBoard[28470]: could not find icon for representation -> com.apple.mobilephone
SpringBoard[28470]: could not find icon for representation -> com.apple.mobilemail
SpringBoard[28470]: could not find icon for representation -> com.apple.Music

SpringBoard[28470]:  [SBFImageColorSpaceUtilities] failed to create copy with colorSpace= (kCGColorSpaceICCBased; kCGColorSpaceModelMonochrome; Generic Gray Gamma 2.2 Profile) of original CGImage= with colorSpace= (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1)

com.apple.accessibility.AccessibilityUIServer[29237]: (repeated 51 times(s)): |AXIPC|warning| Could not find server for service: com.apple.accessibility.AXSpringBoardServer

com.apple.accessibility.AccessibilityUIServer[29237]: (repeated 51 times(s)): |AXSBServer|error| AX SpringBoardServer: Error: Domain:AXIPC Code:0 Reason:The operation couldn’t be completed. Could not find server for service: com.apple.accessibility.AXSpringBoardServer

com.apple.accessibility.AccessibilityUIServer[29237]: (repeated 22 times(s)): |AXIPC|warning| Could not verify connection. server port was nil

itunesstored[29232]: libMobileGestalt MGBasebandSupport.c:189: No CT mobile equipment info dictionary while fetching kCTMobileEquipmentInfoIMEI

CoreSimulatorBridge[28478]: Requesting launch of com.chernetwork.cher.cher-ios-native with options: {

arguments =     (

);

environment =     {

"DYLD_FRAMEWORK_PATH" = "/Users/lkrubner/Library/Developer/Xcode/DerivedData/cher-ios-native-gvhjhzxuzjttnhckuwczsgfixacb/Build/Products/Debug-iphonesimulator";

"DYLD_INSERT_LIBRARIES" = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib";

"DYLD_LIBRARY_PATH" = "/Users/lkrubner/Library/Developer/Xcode/DerivedData/cher-ios-native-gvhjhzxuzjttnhckuwczsgfixacb/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/system/introspection";

NSUnbufferedIO = YES;

"__XCODE_BUILT_PRODUCTS_DIR_PATHS" = "/Users/lkrubner/Library/Developer/Xcode/DerivedData/cher-ios-native-gvhjhzxuzjttnhckuwczsgfixacb/Build/Products/Debug-iphonesimulator";

"__XPC_DYLD_FRAMEWORK_PATH" = "/Users/lkrubner/Library/Developer/Xcode/DerivedData/cher-ios-native-gvhjhzxuzjttnhckuwczsgfixacb/Build/Products/Debug-iphonesimulator";

"__XPC_DYLD_LIBRARY_PATH" = "/Users/lkrubner/Library/Developer/Xcode/DerivedData/cher-ios-native-gvhjhzxuzjttnhckuwczsgfixacb/Build/Products/Debug-iphonesimulator";

};

stderr = "/dev/ttys006";

stdout = "/dev/ttys006";

"wait_for_debugger" = 1;

}

SpringBoard[28470]: Unable to simultaneously satisfy constraints.

Probably at least one of the constraints in the following list is one you don't want.

Try this:

(1) look at each constraint and try to figure out which you don't expect;

(2) find the code that added the unwanted constraint or constraints and fix it.

(

"",

"",

"",

""

)

Will attempt to recover by breaking constraint

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.

The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in  may also be helpful.

SpringBoard[28470]: Unable to simultaneously satisfy constraints.

Probably at least one of the constraints in the following list is one you don't want.

Try this:

(1) look at each constraint and try to figure out which you don't expect;

(2) find the code that added the unwanted constraint or constraints and fix it.

(

"",

"",

""

)

Will attempt to recover by breaking constraint

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.

The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in  may also be helpful.

backboardd[28471]: Couldn't find the digitizer HID service, this is probably bad

searchd[29258]: tcp_connection_set_tfo 3 TFO is not yet supported on Simulator

searchd[29258]: tcp_connection_set_tfo 4 TFO is not yet supported on Simulator

assertiond[28474]: assertion failed: 15G19009 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1

SpringBoard[28470]: LICreateIconForImage passed NULL CGImageRef image

cher-ios-native[29262]: assertion failed: 15G19009 13E230: libxpc.dylib + 57882 [66C28065-C9DB-3C8E-926F-5A40210A6D1B]: 0x7d

assertiond[28474]: assertion failed: 15G19009 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1

Mar 22 17:29:55 --- last message repeated 1 time ---

SpringBoard[28470]: [MPUSystemMediaControls] Updating supported commands for now playing application.

assertiond[28474]: assertion failed: 15G19009 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1

Mar 22 17:29:55 --- last message repeated 4 times ---

backboardd[28471]: CoreAnimation: updates deferred for too long

searchd[29258]: tcp_connection_tls_session_error_callback_imp 4 __tcp_connection_tls_session_callback_write_block_invoke.434 error 22



### Post external references

1. 1
https://developer.apple.com/library/content/referencelibrary/GettingStarted/DevelopiOSAppsSwift/BuildABasicUI.html
Source