What does "cacheParamsComputed" mean in Swift 4? - xcode

I just upgraded one of my macOS app written in Swift 3 to Swift 4, and got the following warnings:
'cacheParamsComptued' is depreacated
'keepCacheWindow' is deprecated
However, even if I tapped on the triangle icon nothing changed in Xcode.
What does this warning mean and how can I fix it?

I encountered this. Simply cleaning the project (Shift-Command-K) and rebuilding (Command-B) made it go away.

Related

Xcode storyboard showing osX object library. I want IOS object library

I develop mainly IOS apps but, recently, I worked on an OSX app. Both are possible with Xcode (I use 8, with swift).
Unfortunately, when I switched back to my already-existing IOS project (after restarting Xcode), the storyboard selection menu for the object library shows only OSX objects, not IOS (e.g. UIImageView).
I have googled without success and tried restarting Xcode, also without success. Can anyone help me fix this?
I did a lot more searching and came up with:
Xcode is loading in OS X objects instead of iOS objects
There there are other solutions proposed but the one that worked for me was to close the assistant editor and then, in the file list ( leftmost window in Xcode 8), I double clicked on the storyboard file. Problem solved. I am surprised that this bug still exists in this latest version...it is very troublesome.

Xcode Changes Contraints Of Layout By Itself After Reopening The Project

I set the constraints of layout properly and also tested it on every device. But the next time I open the project, Xcode just ruined the constraints totally.
How did this happen?
May be the project has a problem and for some reason it is not saving the changes. I have indeed put this solution on my troubleshooting book about Xcode from Apress (shameless advertising... 😃). I have seen this before.
Backup your project and try this:
Quit Xcode
Using finder, right click on the .xcodeproj file of your project and select Show Package Contents.
delete everything from that except the file project.pbxproj.
open the project again fix the constraints and see if the changes are saved the next time you open Xcode.
You did not specify you Xcode version, but my own experiences with code, that is developed using Xcode 8 Beta 1 to Beta 6: The problem may be caused by bug in XCode.
The explanation, if you use Xcode 8 Beta, could be:
New Xcode offers new storyboard-display logic, that shows different difficulties still in Beta 6
After fixing both constraints and frames automatically / manually, warnings come back again after reopening project
This problem moves from Xcode Beta 2 to Beta 6 after my own researches
Let's give Apple a little more time to fix the issues and let's wait until Apple releases GM Seed. It's only beta though

Auto layout Failed to Render

I have been getting this error only on occasion when I work on my storyboard:
Failed to render and update auto layout status for Category
ViewController: IBAppleTVSimulatorAgent.app failed to launch
I usually just close and reopen my xcode and the warning goes away, but could someone please tell me as to why this is happening and how I can have a more permanent solution rather than just restarting my xcode?
Thaaaanks!
It's a glitch in Xcode 7.1 beta 2 when laying out tvOS storyboards. It's just something to put up with until they fix it, hopefully in beta 3.
I was also facing the same issue while developing TV app.
I deleted the Xcode 7.1 beta 2 and
I reinstall the Xcode 7.1 beta 2
this fixed my problem.

Converting to latest swift syntax broke app

When I opened XCode it asked me to convert to latest swift syntax and I pressed "Convert". I suddenly had 70+ errors while the app used to work perfectly.. I already tried the clean option but the errors still show up. How can I fix this? Is there a way to restore it?

Workaround for adding localization to new file in Beta Xcode 6.3

does anyone know of a work around for this issue?
When trying to localize the 'Localizable.strings' file after choosing for which language the file should be set, nothing happens :(.
I tried it a few times with no success.
But when I close my project, reopen it in Xcode 6.2 and do the same action in there... Xcode adds the localization for the selected languages without any problem.
I know it is a bug for the Beta release of Xcode, but I would appreciate a working workaround for this.
thx
Seems to be fixed in version 6.3 of Xcode

Resources