Search results for

missing package product

51,078 results found

Post

Replies

Boosts

Views

Activity

Dyld Symbol not found on Local Swift Package
I work on iOS App project in workspace. I splitted feature in a Local Swift Package. Workspace contains both iOS App Project and Swift Package. https://i.stack.imgur.com/LhL5j.jpg Swift package platform is iOS 14 and deployment target of project is iOS 13. I put optional link on my Swift Package to avoid crash on iOS 13 https://i.stack.imgur.com/Y1HYb.png Application run well on iOS 14 but still crash on iOS 13 : dyld: Symbol not found: _$s7SwiftUI4ViewP14_viewListCount6inputsSiSgAA01_ceF6InputsV_tFZTq Just for example, I would like to use Swift Package like this : Swift #if canImport(Classifier) @available(iOS 14.0, *) struct ActionClassifier: View { var body: some View { Text(Hello, World!) } } #endif Did I miss something on the way of link my Swift Package Binary to my project ?
1
0
1.4k
Apr ’21
Reply to When will ONE_TIME_CHARGE notify type be available in a production environment?
Emails were sent to developers announcing the release of ONE_TIME_CHARGE notification in production scheduled for May 27th. Our services often miss orders because of the absence of this notification. Do you have more information why your app is missing purchases in-app? At time of purchase an unfinished transaction will be available to your app in order to validate and deliver services.
Topic: Community SubTopic: Apple Developers Tags:
May ’25
Binary Swift Package Chicken and Egg Situation
So, I've been following along the video on Distribute binary frameworks as Swift packages - https://developer.apple.com/videos/play/wwdc2020/10147/, but now I'm sort of stuck. I have my Swift Package that works fine when used as a source package, which I want to ship as a binary now. The video says, I'm supposed to add a target: swift import PackageDescription let package = Package( name: Test, defaultLocalization: de, platforms: [ .iOS(.v13) ], products: [ .library( name: Test, targets: [Test] ), ], dependencies: [ ], targets: [ // .target(name: Test) .binaryTarget( name: Test, url: https://static.looc.io/Test/Test-1.0.0.xcframework.zip, checksum: 9848327892347324789432478923478 ) ] ) but, the xcframework is what I am trying to build, don't have an xcframework yet? With the above, if I run: bash [konrad@iMac-2 Source]$ xcodebuild archive -workspace Test -scheme Test archivePath tmp/iOS destination generic/platform=iOS SKIP_INSTALL=NO BUILD_LIBRARY_FOR_D
3
0
2.3k
Feb ’21
Active Compilation Conditions in Packages
The flags like #if DEBUG ... endif are dependent on the Active Compilation Conditions. So if they say DEBUG the enclosed code block will be executed, otherwise not. Now I have the phenomenon that a #DEBUG block in a Package does not evaluate these conditions. It rather depends on the name of the configuration used to build. So if I build my app with Active Compilation Condition set to DEBUG, but the configuration name is something like App-Release, the DEBUG block in my Package is not added/executed. The ones which are directly in the project are added. Vice versa if the Compilation Condition say RELEASE but the configuration is called App-Debug the blocks in the Package are added to the compilation, but the ones in the project itself are not It suffices that the config name contains the word Debug for this to happen. E.g. the configuration App-Release-Debug (I know that this would be stupid, but it is for demonstrating purposes) will cause the Packages to include the DEBUG
0
0
97
Mar ’25
Testing a Notarised Product
To ship a product outside of the Mac App Store, you must notarise it. The notary service issues a notarised ticket, and the ultimate consumer of that ticket is Gatekeeper. However, Gatekeeper does not just check the ticket; it also applies a variety of other checks, and it’s possible for those checks to fail even if your notarised ticket is just fine. To avoid such problems showing up in the field, test your product’s compatibility with Gatekeeper before shipping it. To do this: Set up a fresh machine, one that’s never seen your product before. If your product supports macOS 10.15.x, x < 4, the best OS version to test with is 10.15.3 [1]. Download your product in a way that quarantines it (for example, using Safari). Disconnect the machine from the network. It might make sense to skip this step. See the discussion below. Install and use your product as your users would. If the product is signed, notarised, and stapled correctly, everything shou
0
0
6.6k
Mar ’20
Testing of swift packages containing bluetooth access impossible?
Hi, I tried to create a swift package using xCode's „Swift Package“ template and tried to write some tests. Unfortunately because my package is all about Bluetooth, the test binary fails with the following message; xctest[9145:288236] [access] This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSBluetoothAlwaysUsageDescription key with a string value explaining to the user how the app uses this data. But how to add this key in a Swift Package? Is it really impossible to write and run test cases for a Swift Package containing Bluetooth? I must miss something...
0
0
1.3k
Feb ’22
PKG Stapling fails post successful notarization
Hi AllI am trying to Notarize and Staple a pkg installer of our app, I am facing issues with staplingMy PKG is product signed with a valid developer certificateFollowing is how i verify itspctl -a -v --type install test.pkg test.pkg: acceptedsource=Notarized Developer IDpkgutil --check-signature test.pkgPackage test.pkg: Status: signed by a certificate trusted by macOSIt was successfully Notarized and status of the request shows success.But when i try Staple the same app it fails with following errorstapler staple --verbose test.pkgProcessing: /Users/admin/Downloads/test.pkgProperties are { NSURLIsDirectoryKey = 0; NSURLIsPackageKey = 0; NSURLIsSymbolicLinkKey = 0; NSURLLocalizedTypeDescriptionKey = Installer package; NSURLTypeIdentifierKey = com.apple.installer-package-archive; _NSURLIsApplicationKey = 0;}Sig Type is RSA. Length is 3Could not find an appropriate code signature in the test.pkg installer package.Cannot download ticket. CDHash must be set.Please let
0
0
806
Nov ’19
Accessing Resources of other package targets or dependencies using Swift Package Manager
Good day I am developing XRKit framework, which contains the pipeline logic for rendering using Metal, in manifest it has two targets - framework itself in Swift and XRKitDefenitions in C++ and MSL (since Apple forbids us multilingualism in one package). Both targets have Resources folders open in their manifest. When I try to access the test files hello01.txt (Resources for XRKit) and hello2.txt (Resources for XRKitDefenitions) via Bundle.module, I only see hello01.txt and it doesn't read hello2.txt because it's in a different target. How do I properly organize my code with SPM to access the Resources of XRKitDefenitions target? PS When trying to organize XRKitDefenitions as a remote package on GitHub and defining it as a dependency, situation does not change. I understand now that Bundle.module only refers to its Resources. Is there a way to refer to resources that provided other targets or dependencies in the same package?
1
0
2.3k
May ’22
Xcode Hangs on Updating {package-name}
Hey everyone, I recently installed macOS Ventura and when I went to update a package in Xcode, it hangs at Update Package {package-name} every time. Interestingly, the package it hangs on is different each time, but without fail it hangs. I'm no longer able to develop since our project depends on packages, and have been blocked by this for a few hours. Any ideas what the error might be or why it would hang like this? Things I've tried Clearing derived data resetting package cache from file -> packages
0
0
639
Oct ’22
Importing a custom programmed swift package
I have made a custom swift package that contains the encoding and decoding functions for my app String Conversion Tool. It is uploaded to GitHub: (https://github.com/Casual3306/ConverterExtra). I do a request for the package (in my apps main project) and the package imports just fine, it is present in the Frameworks, Libraries, and Embedded Content and it is present in Package Dependencies, I have also run: Reset Package Caches and Resolve Package Versions. The package also imports into the designated module as a module but when I try to access any of that modules files like > ConverterExtras > Encoders it is giving me an error saying that This class may not be available in this context. All of the files are in the module package but Xcode isn't finding them for some reason: Xcode version: 13 System: MacOS (Big Sur 11.6)
2
0
3.4k
Oct ’21
Get all Products for in a subscription group
If I use SubscriptionStoreView.init(groupID), it seems to be able to look up all the Products that have that subscription group ID. But I don't see any public method for doing that myself. Am I missing something, or is SubscriptionStoreView using a private method to do this lookup? I know that historically it has always been necessary to know the product IDs of all the products you want to sell; you have never been able to ask Store Kit to give you a list. SubscriptionStoreView doesn't seem to have this limitation, which is a bit surprising.
0
0
701
Feb ’24
Swift Package Manager MongoDB
I've been trying for hours just wanted some direction. I am trying to set up an app that uses a local mongo database. I've set up the IP address and everything, I'll be port forwarding for usage outside my local network. But I've been having some trouble importing mongbodb for my swift app. I keep getting this error with the package manager. If you have some tips please send them my way. So here is the code I'm supposed to use got this from the GitHub page: https://github.com/mongodb/mongo-swift-driver // swift-tools-version:5.1 import PackageDescription let package = Package( ttname: MyPackage, ttdependencies: [ tttt.package(url: https://github.com/mongodb/mongo-swift-driver.git, from: VERSION.STRING.HERE), tt], tttargets: [ tttt// Async module tttt.target(name: MyAsyncTarget, dependencies: [MongoSwift]), tttt// Sync module tttt.target(name: MySyncTarget, dependencies: [MongoSwiftSync]) tt] ) So all I did was add the version I needed and I put the latest. // swift-tools-version:5.3
1
0
1.2k
Jan ’21
Notarizing and Stapling a PKG File
Hi,I couldn't find a clear answer on this:The official links of notarizing you MacOS app, found below, only discuss notarizing and stapling an APP file, not a PKG file:https://developer.apple.com/documentation/xcode/notarizing_your_app_before_distributionhttps://developer.apple.com/documentation/xcode/notarizing_your_app_before_distribution/customizing_the_notarization_workflowHow do I this for the PKG installation file?Thanks,Yaron
1
0
1.1k
Nov ’19