Linked Questions

1143 votes
17 answers
390k views

In Swift, how does one call Objective-C code? Apple mentioned that they could co-exist in one application, but does this mean that one could technically re-use old classes made in Objective-C whilst ...
366 votes
13 answers
202k views

I have a project in Xcode 11 that I added Swift Package Manager dependencies to. I now realized that I no longer need one of the package dependencies I previously added to my project. As you can see ...
161 votes
34 answers
105k views

When I integrate a local package in my Xcode project everything is fine initially but when i switch branches and want to run the app Xcode gives me the compile error Missing package product <...
192 votes
12 answers
176k views

I have a framework (in this instance it's RxSwift) which I've compiled using Xcode 11.0 into the traditional RxSwift.framework style package This imported fine into Xcode 11.0 and also 11.1 never had ...
244 votes
3 answers
108k views

I have an existing iOS app and want to add a large chunk of code that I've been developing as another project just for ease of testing. The new chunk basically deals with saving an image to various ...
41 votes
5 answers
28k views

When I trying build CKCountdownButton as a framework in Xcode 6.3, it complains with warning: no umbrella header found for target 'CKCountdownButton', module map will not be generated Then when I ...
Quanlong's user avatar
  • 25.8k
28 votes
4 answers
24k views

The title says it all. I've searched in the build settings for SWIFT_MODULE_NAME, and nothing came up. I've also searched online, and there are references to this name, but there is no information on ...
35 votes
2 answers
31k views

For example, I have two files called file1.swift and file2.swift. file1.swift: import UIKit class A: B { } file2.swift: import UIKit class C: A{ } I am reading that public class can not ...
John's user avatar
  • 705
19 votes
2 answers
15k views

I feel so noob asking this question, but what is a target dependency? I see it all the time in Xcode.
19 votes
2 answers
11k views

I had a project with both Carthage and Cocoapods. They both have one common dependency (PureLayout, to be precise). Strange, but project compiles fine without any errors about class redeclaration, etc....
4 votes
4 answers
6k views

I already have a working Xcode project for a MacOS App. However, I would like to add a Swift framework from Github using Swift Package Manager. I ran "swift package init" inside the project folder. ...
jl303's user avatar
  • 1,599
2 votes
3 answers
2k views

When I build java object class in a project, build file will be created with .class extension and human unreadable; What about swift build files? example: car.java --> build --> car.class ...
BatyrCan's user avatar
  • 6,993
1 vote
2 answers
2k views

The demo iOS application from GRDB on github runs great on the phone simulator of my iMac, but it's not clear how to get GRDB building in an iOS application of my own (part 1 of this question), with ...
2 votes
2 answers
2k views

Is there a way I can use package.swift in an Xcode project? I have written a package.swift file which is being read/ understood by swift build, but it looks like Xcode still doesn't know about this ...