I have this issue in Xcode 15.3
Post
Replies
Boosts
Views
Activity
Hey hey π
same as @spoxies, we use CTCarrier to detect the SIM's country code to preselect the correct country code for our phone numebr entry:
https://github.com/Blackjacx/Columbus/blob/dd328d6a66686e067da4990ab472fa14cf681eaa/Source/Classes/CountryPickerViewController.swift#L268-L281
I wonder how all the apps, that use phone numebr login, should do that from now on... I mean yes we could use the Locale information but that is not really accurate, right?
Any suggestions?
Thanks in advance!
Same iissue here. Big Sur Xcooode 12.5.1
Is there a suggested workaround of how to do this automatically on a CI using fastlanes download_dsyms with a user that has 2FA enabled? Any ideas?
To build an iOS package from command line you can use this command uses the iOS 14 SDK:
swift build -Xswiftc "-sdk" -Xswiftc "\`xcrun --sdk iphonesimulator --show-sdk-path\`" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios14.0-simulator"
Okay I also found a solution, so Swift actually generates the Bundle.module file π
The documentation - https://developer.apple.com/documentation/swift_packages/resource explicitly states that you have to put your Resources under the folder <project_root>/Sources/<MyTarget>/ since SPM scopes resources by target. The target definition looks then like this for my repo SHSearchBar - https://github.com/Blackjacx/SHSearchBar/blob/swift53/Package.swift (compare file structure on Github):
// swift-tools-version:5.3
import PackageDescription
		targets: [
				.target(
						name: "SHSearchBar",
						resources: [.copy("Resources")]
				)
		]
Target Folder: <project_root>/Sources/SHSearchBar
Resource Folder: <project_root>/Sources/SHSearchBar/Resources
To make my little post here complete I also want to mention that a package using the Bundle.module approach can be integrated in apps that run on iOS <14 too since the generated extension does not contain any new API π
Nice! With this in mind though I still need the same functionality for devs integrating my framework using e.g. Carthage and there I still use Bundle(for: Self.self). My Question now is how to detect if I am integrated using SPM or not, i.e. if I have to use Bundle.module or the old cousin above?