For questions about the 10.2 version of Xcode. Use this tag in combination with the general [xcode] tag. If your question applies to Xcode more generally, use only the [xcode] tag.
Questions tagged [xcode10.2]
151 questions
0
votes
0 answers
Xcode 10.2 how to enable dark mode for Xcode only, not entire macOS?
I like the Dark Mode for Xcode, but not for all the windows in MacOS - too much change at once.
Is there a way/hack to enable dark mode for Xcode windows only? While keeping the rest of MacOS in "Light Mode".

Alex Stone
- 46,408
- 55
- 231
- 407
0
votes
1 answer
Add additional preview devices to storyboard Xcode 10+
Is there a way to add additional preview devices to a storyboard?
In this case, my preview device display does not contain iPhone 7+ and iPhone 6 - iPhone 6s+.

Native_Mobile_Arch_Dev
- 777
- 6
- 20
0
votes
1 answer
Cannot reference classes and methods of a Swift universal framework from Objective-C universal framework
I have an Objective-C framework called "Box" that uses a Swift framework called "Utils". Both have a standard target which I use during development, plus a custom target which I use when the development is done and I need to build a universal…

DSoldo
- 959
- 10
- 19
0
votes
0 answers
Xcode 10.2.1 Simulator Not Loading Settings or Other Built-In Apps
When I open the Simulator "Settings" on the Home Screen they open and then crash before loading. The same thing happens when I open other built-in apps like Safari. Otherwise, the simulator behaves normally and I am able to run test apps I've…

Ben
- 3,346
- 6
- 32
- 51
0
votes
0 answers
Can't get icon image to display in menubar for popover application
I am trying to build a simple menubar popover app (and have done so) but I cannot get any icon to properly display in menubar. I have attached a photo for what is happening but essentially, a white square appears that is clickable/functioning but is…
0
votes
0 answers
Undefined symbol: _OBJC_CLASS_$_XBarChart
I use the Daniel Gindi Charts library in my project. It works fine when I run in in the Simulator, but when I run it on a real device I am getting the following error:

Shweta Prashnani
- 21
- 5
0
votes
0 answers
Cocoa Swift: How to ensure WKWebView will load url request
I'm implementing an WKWebView but when there is an issue with the network such slow network connection the WKWebView loads blank page. Here is my implementation:
func loadWebView() {
if let url = URL(string: self.urlLbl.stringValue){
let…

user2924482
- 8,380
- 23
- 89
- 173
0
votes
1 answer
Developing CocoaPods - requires cleaning (CMD+K) to see the changes
I develop a library distributed with CocoaPods.
The library has an example project which I also use to develop and test new features.
The workflow is as follows:
Edit the source file
Run the project
See the changes
The problem is that I cannot see…

Richard Topchii
- 7,075
- 8
- 48
- 115
0
votes
2 answers
How to make user defined runtime attribute functioned in xcode 10.2.1 and ios 12.2
I'm converting the codes to Swift 5 since Xcode 10.2.1 will no longer support Swift 3.
I have an user-defined runtime variables in storyboard. It was worked in Swift 3 but not in Swift 5.
Key Path | Type | Value
type | String | A
class Mains:…

Chu Man Ki Morris
- 25
- 4
0
votes
1 answer
How can I get a Copy Files Build Phase to follow the DSTROOT build setting?
I have a project that builds a library. The Xcode setting DSTROOT is set to the default /tmp/$(PROJECT_NAME).dst and Xcode puts the library there. I have a copy phase to add man pages. It has Destination set to "Absolute Path" and Path set to…

msc
- 1,549
- 2
- 12
- 19
0
votes
1 answer
Xcode editor copy command (command + c) doesn't work sometimes?
It happens sometime while writing code I copied text and tried to paste it using command + c and command + v but it paste nothing.

Inder Kumar Rathore
- 39,458
- 17
- 135
- 184
0
votes
2 answers
How can I include URLs in a Table Struct (Array) and call them in didSelectRowAt?
I am working in xCode 10.2 with swift. I have created global variables in my first view controller for 6 tableviews. In storyboard, I have 6 tableViewControllers. In a separate swift file, I have created a table struct to hold an array and display…
user8540450
0
votes
1 answer
Cocoa Swift: WKWebView is not showing when is add it as subview
I'm trying to add a WKWebView as subview:
func loadWebView() {
let userAgentStr = self.getUserAgent()
if let url = URL(string: videoURL.stringValue){
let request = URLRequest.init(url: url)
let config =…

user2924482
- 8,380
- 23
- 89
- 173
0
votes
0 answers
Cocoa Swift: Open new instance of the same window
I'm trying to open a new instance of the same window but I have found a way to do it (Xcode X/Cocoa)
This is what I have. I have an NSButton link to IBAction to open a new instance of the same window:
Any of you knows how can implement something…

user2924482
- 8,380
- 23
- 89
- 173
0
votes
2 answers
Visual Studio could not communicate with Xcode
Problem :
I'm trying to open an xib with Xcode through Visual Studio and give me this error. It started to appear since I did update in Visual Studio for Mac and in Xcode.
Visual Studio for Mac Version 8.0.1 (build 1)
Xcode Version 10.2
This is the…

Rafael Santos
- 25
- 10