Linked Questions
14 questions linked to/from Use swift package manager on existing xcode project
1143
votes
17
answers
390k
views
How do I call Objective-C code from Swift?
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
How to delete Swift Package Dependency in Xcode 11?
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
Xcode 11.4 compile error 'Missing package product <package name>'
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
Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler
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
Library? Static? Dynamic? Or Framework? Project inside another project [closed]
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
no umbrella header found for target, module map will not be generated
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 ...
28
votes
4
answers
24k
views
How to modify SWIFT_MODULE_NAME?
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
What does a module mean in swift?
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 ...
19
votes
2
answers
15k
views
What is a target dependency?
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
CocoaPods and Carthage
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
How to Incorporate Swift Package Manager to an Existing Xcode Project?
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
What is build object file extension in iOS?
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
...
1
vote
2
answers
2k
views
Adding minimal GRDB to an Xcode project using Swift Package Manager, Cocoa Pods, or other
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
How to use explicit package.swift in root of project (Xcode doesn't know about it)
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 ...