Xcode 12 IPHONEOS_DEPLOYMENT_TARGET warning for SPM dependencies
You can try: @available(iOS, deprecated: 9.0) or this: #pragma clang diagnostic push #pragma clang diagnostic ignored “-Wdeprecated-declarations”
You can try: @available(iOS, deprecated: 9.0) or this: #pragma clang diagnostic push #pragma clang diagnostic ignored “-Wdeprecated-declarations”
I just tried CocoaPods with SPM on my iOS project and it works fine. I’m adding Firebase and other Google libs using CocoaPods and the rest using Swift Package Manager. When adding SPM dependency, put checkmark on your project(s) and not on the Pods project. Xcode 11.5, CocoaPods 1.9.3.
I managed to successfully build and test your package by doing the following modifications: renamed the package name to VnkSwift, for some reasons the build tool doesn’t like dashes in package name, nor it works when you have underscores in the generated package name (so renaming the package to vnk_swift to make sure the import … Read more
The package manager does not yet have any definition for how resources will be bundled with targets. We are aware of the need for this, but don’t yet have a concrete proposal for it. I filed https://bugs.swift.org/browse/SR-2866 to ensure we have a bug tracking this. Using Swift 5.3 it’s finally possible to add localized resources … Read more
It was a problem with git config. In .gitconfig file it was set to [url “git@github.com:”] insteadOf = https://github.com/ After removing this section https worked correctly EDIT: as mentioned in comments you can easily access your gitconfig in terminal with command: git config –global –edit
Swift 5.3 See Apple Documentation: “Bundling Resources with a Swift Package” Swift 5.3 includes Package Manager Resources SE-0271 evolution proposal with “Status: Implemented (Swift 5.3)“. Resources aren’t always intended for use by clients of the package; one use of resources might include test fixtures that are only needed by unit tests. Such resources would not … Read more
SPM generates the resource_bundle_accessor only if the corresponding target contains resources as the argument like: .target( name: “ChenzookKit”, dependencies: [“Apollo”], resources: [.process(“Resources”)] // <- `copy` or `process` doesn’t really matter ), Also, note that it should be a valid resource path. AND❗️ The project MUST contains Resources inside the target’s Directory! AND❗️❗️ The Resources MUST … Read more
I just stumbled upon this question and found that the solution to “How to update swift dependencies in Xcode” has probably changed now that Swift Packages have been around for a few years. For me, the solutions was to simply go to File -> Swift Packages -> Update to Latest Package Versions.
You have to change some swiftc options to build the project against proper sdk and target swift build -Xswiftc “-sdk” -Xswiftc “`xcrun –sdk iphonesimulator –show-sdk-path`” -Xswiftc “-target” -Xswiftc “x86_64-apple-ios13.0-simulator”
I faced this problem after I installed Xcode 14.0. Deleting org.swift.swiftpm worked for me: Make sure that anything related to SPM is not running including Xcode. Close them all before you delete anything. Go to directory and delete the entire org.swift.swiftpm directory (Not only collection directory, but the whole org.swift.swiftpm directory) and if there is … Read more