Xcode 10.2 is not showing autocompletion - xcode

Recently I have downloaded Xcode 10.2 from the App Store. I started using it. And I observe that my Xcode is not showing autosuggestion or autocompletion when I am writing code.
Anyone have any idea about it ? Is I missed anything ? Should it required any extra settings like enable/disable or anything ?
I tried severaI havel differnent things:
Clear derived data
Restart Mac
Restart XCode
Rebuild
I'm using macOS 10.14.4

Related

Xcode Simulator 14.0 not deleting/ removing app

I have recently updated 14.0 version of Xcode and simulator. I am facing a strange issue that app is not removing from the simulator. Before this update it's working perfect but after updated its showing this behaviour. Have a look a below, I have tried with both Remove app and Edit Home screen option. Both of them did't work for me. I have also tried to delete app from App library it also did't work.
So, I just ran into this weird issue as well, but I found that it wasn't consistent. Sometimes I could actually delete the app and sometimes I couldn't.
I think I figured out how to delete it every time:
When the app is running, go into Xcode and press "Stop" (CMD + .)
Now delete the app from the simulator
It's a work-around, but it doesn't look like Apple wants to fix this issue or maybe it was never reported to them, I don't know, but this seems to be working for me at least.
I'm running macOS Ventura 13.1, Xcode 14.2 and an iPhone 14 (iOS 16.2) simulator, so basically the newest versions and it's still present.

iOS project changed to macOS and unable to compile code

Buildi info : https://imgur.com/a/VIAf4kt
The base SDK is set to iOS. But unlike before, I am unable to select iOS version instead it forces macOS on me. I think this is the reason I am unable to compile and get the following error: https://imgur.com/wJzCbKp
Attempted: Restart XCode. Switch to macOS and back to iOS.
EDIT: looks like all my other projects are set for macOS now. All of them have iOS as selected build settings and deployment target. Don't know why it is not syncing up.
Looks like it was an XCode update that prevents the APIs from linking up. I guess is Apple's way of blocking outdated xcode versions. I had to force quit xcode and all other projects running on Xcode. Then re-open xcode and the update for v.12.3 prompts and now everything is back to normal.
If you get the error, chances are your xCode is out of date because apple released a new version very recently. Try everything to find/ get it to update.

How to assign dynamic text styles in Xcode 11?

Edit: Probable Bug. Seeking fix or workaround…
How can I get the system’s text styles to be available in the interface builder when using Xcode 11?
I just started using Xcode 11 this week. In the interface builder (storyboard mode), when I go to assign a dynamic type text style to a Label or Button, using the Font -> Style pop-up, all the text styles are missing from the popup menu.
I do have the Dynamic Type “Automatically Adjusts Font” checkbox checked, as well.
I’m not sure if this is a bug, an intentional change I can’t find documentation for, or something else.
The expected behaviour is described in Apple’s developer documentation “Scaling Fonts Automatically”. Specifically, in the “Configuring Text Styles Using Interface Builder” section.
Further exploration: I’ve tried it with new projects, old projects (from Xcode 10), projects targeting iOS 12.2 and 13.1. All had the same problem of no text styles in the popup menu.
I experience the same problem when upgrading from Xcode 11.0 to Xcode 11.1 or 11.2 beta 2:
Xcode 11.0:
Xcode 11.1:
I also filed a bug report (FB7415999) with Apple and also opened an issue with them.
**My curren solution at the moment is a downgrade to Xcode 11.0 for UI development and a parallel install of Xcode 11.2 beta for on device runs **
This is probably a bug in Xcode 11.1. I ran into the same thing and filed a bug with Apple (FB7368959). A colleague running Xcode 11.1 on Catalina did not have the same problem, nor did another running Xcode 11.1 on Mojave.
Here is a workaround that got me back on track: I opened the problematic project in both Xcode 10.3 and 11.2 beta. In both, the dynamic type styles were available in IB. I didn't change anything, but reverted to Xcode 11.1, and now the styles are there, too. Hopefully this works for Grant and anyone else that runs into this annoyance.
Edit Mar. 17, 2020: This problem has reoccurred for me on Xcode 11.3.1. It seemed to happen with a specific project, and the problem spread to a second machine as soon as I opened that project. My workaround didn't help when I opened the project in 11.4 beta 3.

Xcode 10.1 How to fix User Interface Inspector "Capturing User Interface" not working continuously loads

I updated to Xcode 10.1 today, and noticed that when trying to utilize the User Interface Inspector that it continuously loads. I utilize this feature a lot to check how constraints are behaving. Was wondering if anyone else had the same issue?
Steps that I have taken to try and resolve it:
Reset all simulator data
Cleared all derived data
Cleaned build
Tried multiple simulators with the same issue
Just had the same issue. Creating a new simulator on the latest iOS that came with Xcode fixed it for me.

Message from debugger: unable to attach error for osx app

I have been building mac app on my mac mini and it always worked well but today i faced this error, searched a lot but no luck.
Message from debugger: unable to attach
What i tried:
Clear derived data
Quit Xcode
Restart machine
installation directory set to blank and also to /Applications
Tried Skip Install No / Yes
Using developer Signing certs
M using only Developer certificates and not provisioning profile to sign my cocoa app
Xcode 8.2
OSX 10.12.1
Please help :)
This is what fixed it for me, perhaps it will help others but I do realize the question was for 8.2. I had it set to Xcode 9 "New Build System" disabling this and switching to "Standard Build System" in the Project Settings under the File Menu. I had tried all the other things like killing DerivedData, clean build, restarting Xcode. I also verified that my dependent libraries were set correctly. The only thing that worked was disabling new "New Build System"
I just had this problem today. I have little demo code in a mac project(created with Xcode 9.4). This error just started to occur after I upgraded system to macOS Mojave 10.14. However, in Xcode 10 this project runs no problem(without changing anything). If you can use Xcode 10 it will probably be fixed.
Unfortunately, the above solutions didn't work for me (although I am sure they work for some people).
Here is what worked for me, in case this helps anyone else:
Close Xcode
Open Xcode and Create a new Xcode project
In the iOS template, select Single View App then click Next
yes, I know you are trying to get a macOS app attaching to the debugger :).
Give the iOS app any product name and organization identifier you would like and click Next
Create the new project anywhere you would like (I saved it to my desktop)
Build and run (cmd + r) the iOS app on a simulator like the iPhone 8 (starting a simulator and running the iOS app will take a little time, so have patients)
After the iOS app runs in the simulator, click to stop it from running (the stop button is next to the run button)
Open your macOS app that you are having trouble connecting a debugger to, and build and run it (cmd + r)
This, for some reason, allowed me to connect to the debugger with my macOS app...
Xcode version: 10.1, macOS Mojave version: 10.14.2

Resources