Xcode 8 :function types cannot have argument label breaking my build

The Swift designers decided to prohibit argument labels for function types. The reasoning is explained here: https://github.com/apple/swift-evolution/blob/master/proposals/0111-remove-arg-label-type-significance.md This is a frustrating and questionable choice, as prohibiting argument labels makes it much easier to incorrectly invoke closures, which seems more important than simplifying the language’s type system. Usability > ideology.

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

Xcode 8 build crash on iOS 9.2 and below

See the accepted answer https://forums.developer.apple.com/thread/60919 You can save 16-bit assets as 8-bit ones with Preview.app How to resolve “ERROR ITMS-90682: Invalid Bundle – The asset catalog at ‘Payload/XXXXX/Assets.car’ can’t contain 16-bit or P3 assets if the app supports iOS 8 or earlier.” With Xcode 8 GM, this error will occur if you include 16-bit or … Read more

Xcode 8 generates broken NSManagedObject subclasses for iOS 10

I finally got mine to work. Here is what I did. (Flights is one of my entities) I setup the xcdatamodeld as follows And then the entity as Then I used Editor -> Create NSManagedObject Subclass This creates two files for my flights entity Flights+CoreDataProperties.swift Flights+CoreDataClass.swift I renamed Flights+CoreDataClass.swift to Flights.swift Flights.swift is just import … Read more

SecItemAdd always returns error -34018 in Xcode 8 in iOS 10 simulator

I was able to work around this in my app by adding Keychain Access Groups to the Entitlements file. I turned on the Keychain Sharing switch in the Capabilities section in your test app, and it is working for me as well. Item to add to entitlements: <key>keychain-access-groups</key> <array> <string>$(AppIdentifierPrefix)com.evgenii.KeychainBugDemo</string> </array> I have only tried … Read more

Xcode 8 – IB Designables – Failed to render and update auto layout status, The agent crashed

You can try one of the following to figure out the cause: look for the IBDesignablesAgentCocoaTouch logs in this directory: ~/Library/Logs/DiagnosticReports and see the cause. Note: for user with Catalina: look for IBDesignablesAgent-iOS_<DATE>-<MAC_NAME>.crash Go to the Editor -> Debug Selected View while selecting your @IBDesignable UIView in your storyboard, and see the stack trace. Delete … Read more

What is ‘Vary for Traits’ in Xcode 8?

This is just an extension as to how to use “Vary Traits” quickly in your project for adding different layouts for iPad and iPhones. Please read this for understanding more on the Size classes. https://developer.apple.com/reference/uikit/uitraitcollection If you are skipping the example which follows below, do read the Summary in the end. OBJECTIVE : You need … Read more