Weird behaviour of Xcode 11 Debugger – Showing values as nil when there’s a value

This is a known bug, affecting LLDB (the Xcode debugger) as well as the REPL. It’s purely a matter of display: https://github.com/apple/llvm-project/issues/4477 https://github.com/apple/llvm-project/issues/4479 And see: Instantiated optional variable shows as nil in Xcode debugger An easy workaround for now is to pass thru the bridged Objective C type. The bug is only with the Swift … Read more

Xcode 10 (iOS 12) does not contain libstdc++6.0.9

libstdc++ was deprecated 5 years ago. Apple’s more recent platforms (tvOS and watchOS) don’t support it. Support was removed from the iOS 12.0 Simulator runtime, but it remains in the iOS 12.0 (device) runtime for binary compatibility with shipping apps. You should update your project to use libc++ rather than libstdc++ by setting the CLANG_CXX_LIBRARY … Read more

Cannot invoke initializer for type ‘Range’ with an argument list of type ‘(Range)’

Some background: In Swift 3, additional range types were introduced, making a total of four (see for example Ole Begemann: Ranges in Swift 3): Range, ClosedRange, CountableRange, CountableClosedRange With the implementation of SE-0143 Conditional conformances in Swift 4.2, the “countable” variants are not separate types anymore, but (constrained) type aliases, for example public typealias CountableRange<Bound: … Read more

Xcode 10: unable to attach DB error

Okay, seems like I managed to solve it. I was having /bin/sh script in Build Phases that was trying to build fat static library. In the script, I had OBJROOT path set like this: OBJROOT=”${OBJROOT}” Seems like Xcode 10 and new build system changed some paths on the way and this line was the source … Read more

Model is running iOS 10.2 (14C92), which may not be supported by this version of Xcode

If somebody facing similar issue with Xcode 9.1 Open directory: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport Create new folder “11.2 (15C107)” (or “10.3 (14E269)” for older versions, depends on what exactly are you missing) Paste files from provided google drive folder 11.2 (15C107) (or 10.3 (14E269) if you need older files) Restart Xcode For other iOS versions you may check … Read more