Questions tagged [xcode11.4]
109 questions
1
vote
1 answer
XCode 11.4 XCTest - Mock object does not see convenience initializer from the real object class
I'm trying to understand if there is something within XCTest framework that prevents my test class from seeing convenience initializer defined in a class for the module I'm testing? I'm using @testable import to override and subclass non-open…

Alex Stone
- 46,408
- 55
- 231
- 407
1
vote
3 answers
Swift: How to implement an enum of array of Strings
I'm trying to implement enum of array of strings like this
import UIKit
enum EstimateItemStatus: Int, [String] {
case Pending
case OnHold
case Done
var description: [String] {
switch self {
case .Pending:
…

user2924482
- 8,380
- 23
- 89
- 173
1
vote
1 answer
Conversion errors from Swift 3.0 to Swift 4.2 at SQLitt.Swift unregonized token
My current code is written with Swift 3 ,I tried to change Swift 4.2 via Xcode10.1. SQLite is crashing on changes version and working correct on old code.
I'm trying to retrieve a count of records in a table using SQLite.swift and Swift in a Cocoa…

Sabai Phoo
- 358
- 1
- 4
- 20
1
vote
0 answers
No such table error in Sqlite Database swift 4.2 after change from swift 3
I'm trying to retrieve a count of records in a table using SQLite.swift and Swift in a Cocoa macOS application.
All tables can try to get data from SQLite data only two tables is showing
no such table tablename (code:1)
My query for create table…

Chen Yin
- 23
- 5
1
vote
1 answer
SQLite.swift: Can't retrieve table count due unrecognized token: ":" (code: 1)
My current code is written with Swift 3 ,I tried to change Swift 4.2 via Xcode10.1.
SQLite is crashing on changes version and working correct on old code.
I'm trying to retrieve a count of records in a table using SQLite.swift and Swift in a Cocoa…

Chen Yin
- 23
- 5
1
vote
1 answer
Swift use Small Caps
How can I use small caps in Swift 5 (Storyboard) / Xcode 11?
Here's what I'm trying to accomplish.
I figured out how to do it in SwiftUI:
Text("Typography")
.font(Font.system(.body).smallCaps())
But don’t now how to do it within a…

Daniel
- 568
- 3
- 15
1
vote
2 answers
How can change Swift 3 to 4 in Xcode 11.4
Current I am using Xcode11.4. I need to use Xcode 11.4 for iOS 13 frameworks but I cant build my old project in Xcode 11 Here is the error message
This workplace has projects that contain source code developed with Swift 3.x.This version of Xcode…

Sabai Phoo
- 358
- 1
- 4
- 20
1
vote
1 answer
Mapbox framework not found error in XCode
I'm working with an API called Mapbox. I'm not sure if this is the right place to even post this so if it's not, I apologize. Working in XCode, I've added Mapbox.framework.dSYM and Mapbox.framework to the Frameworks folder in the project. I followed…

nickcoding
- 305
- 8
- 35
1
vote
1 answer
How to export/get xxx.framework by using Xcode 11.4?
Before Xcode 11.4 I built project and I also could found xxx.framework in the path of xxx/Build/Products/Debug-iphoneos.
After using Xcode 11.4, I can't found any xxx.framework in that path.
I have seen the link, How to archive/export Framework in…

Jim Tsai
- 111
- 7
1
vote
1 answer
Xcode 11.4.0 stalling running Unit Tests
After upgrading from Xcode 11.3.1 to Xcode 11.4.0, unit tests are no longer running in the Xcode IDE, however they do run when executing via xcodebuild in terminal (which is pretty annoying for incremental development and testing).
I've already…

John
- 51
- 7
1
vote
0 answers
Xcode 11.4 Cast from 'Bool.Type' to unrelated type 'AnyClass' (aka 'AnyObject.Type') always fails
Since Xcode 11.4, the following code:
override public class func transformedValueClass() -> AnyClass { // What do I transform
return Bool.self as! AnyClass
}
gives a warning: Cast from 'Bool.Type' to unrelated type 'AnyClass' (aka…

vomi
- 993
- 8
- 18
1
vote
1 answer
Firebase Dynamic Links not working when the application is not launched
It's working fine when the app is running and in the background. But when the app is installed, but not launched at that time, it's simply opening the app but not redirecting to the respective screen. Please help me to get out of this situation iOS…

tapashR
- 11
- 3
1
vote
1 answer
How to install Xcode 11.3 on macOS High Sierra 10.13.6?
Currently I am using Xcode 10.1 on macOS High Sierra 10.13.6, on a Early 2011 MacBook Pro with 4GB RAM.
Problem is that I am unable to upgrade to macOS Catalina. Is it possible to install Xcode 11.3 in the macOS High Sierra? Or is there any other…

Faiz Fareed
- 1,498
- 1
- 14
- 31
1
vote
0 answers
Testing ios push notifications with Xcode 11.4 - link in apns is not working
I'm trying to test push notifications in ios simulator with a new Xcode 11.4 feature.
My app has both NotificationService and NotificationContent extensions to change the message before showing it to the user.
To send a notification to the simulator…

Alex K
- 11
- 1
1
vote
1 answer
PromiseKit compilation errors
I'm new to PromiseKit however I can't get something very basic to work. Consider this:
func test1() -> Promise {
return Promise.value(true)
}
func test2() -> Promise {
return Promise { seal in
…

strangetimes
- 4,953
- 1
- 34
- 62