missing package product

45,754 results found

Post

Replies

Boosts

Views

Activity

Xcode 13.2 - Internal error : Missing Package Description Module
Hi guys, just updated Xcode to 13.2 via Mac App Store. I installed the additional components, and my project won't compile anymore : Xcode just tells me Internal error: missingPackageDescriptionModule - Resolving Package Graph Failed when attempting to build. None of the Swift packages used within my app seems to build, because Package resolution errors must be fixed before building. Already attempted to clean derived data, reset Swift package caches and update package versions to no avail. Guess I'll try re-installing Xcode but... does anyone else have the same issue ? Using an M1 Mac and just updated to Monterey 12.1 if that's relevant. Thank you !
122
0
60k
Dec ’21
In-App purchases products missing when testing in Testflight
We have a problem using StoreKit. In development, using the Simulator, everything runs fine using the xcode environment, but when we archive the app to be distributed using Testflight, the app starts and requests the available products, but it finds none. How is that possible? In the development build we are setting a StoreKit configuration file and it is syncronised with the configuration and products set in the Appstore connect panel. Maybe we have to remove the file when building the archived version for Testflight? This is our getProducts function: func getProducts(withHandler productsReceiveHandler: @escaping (_ result: Result<[SKProduct], IAPManagerError>) -> Void) { onReceiveProductsHandler = productsReceiveHandler guard let productIDs = getProductIDs() else { productsReceiveHandler(.failure(.noProductIDsFound)) return } print(productIDs count: +String(describing: productIDs.count)); let request = SKProductsRequest(productIdentifiers: Set(productIDs)) request.delegate = self
2
0
548
May ’23
Approved payment packages not working on production app ? Throwing an error
I submitted my app for approval which got approved but forgot to submit the new payment packages for approval. So the app was live without approved packages and was giving the following error : A problem occurred, please try again. Also, try restarting the appEven after submitting the packages for approval and getting them approved, I get the same error. The IAP in the app are monthly and yearly subscription packages. Whats the process to fix this ?
0
0
595
Nov ’18
Package dependency in own package
Hi All, I create a Swift Package (Xcode 14.3) and add a package dependency (https://github.com/stephencelis/SQLite.swift) by copying the autogenerated dependency clause into my Package.swift file. The package.resolved file is created, all good. Somehow I cannot use the package (SQLite) from my code because the import SQLite is not found. This happens from an empty package as well. How can I use the dependent package in my own package? Sorry for the seemingly simple question but despite a lot of googleing and fiddling with targets/products, I don't get this to work. UI options in Xcode to add targets etc. exist only for apps, not for packages. Any hints what I am doing wrong here greatly appreciated. Cheers Florian
0
0
453
Apr ’23
Reply to SwiftUI Preview - Undefined symbols for architecture arm64
Hi, thanks for providing an example project. This is a known issue. For now you can try the following workaround. If you set the product type in your package to dynamic then previews should work for you. In the example you provided you would do this as follows: products: [ // Products define the executables and libraries a package produces, making them visible to other packages. .library( name: MyLibrary, type: .dynamic, targets: [MyLibrary]), ],
May ’24
Reply to Are Swift Packages supported by String Catalogs?
Here is the package manifest: // swift-tools-version: 5.9 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: FakeModule, defaultLocalization: en, platforms: [ .iOS(.v16) ], products: [ // Products define the executables and libraries a package produces, making them visible to other packages. .library( name: FakeModule, targets: [FakeModule]), ], targets: [ // Targets are the basic building blocks of a package, defining a module or a test suite. // Targets can depend on other targets in this package and products from dependencies. .target( name: FakeModule, dependencies: [], path: Sources ), .testTarget( name: FakeModuleTests, dependencies: [FakeModule]), ] )
Sep ’23
Create installer package .pkg
Hi,I need to create an instaler package .pkg.I have read cerfuly the post Signing a Mac Product For Distribution, however i miss some pices:On Build an Installer Package section you say depending on your distribution channel” what are the options and do that influent the needed certificate?Currently I see that the only available certificate is 3rd Party Mac Developer Installer:” do we need to create Developer ID Installer:” (in all documentations that I have read all are talking on the Developer ID Installer:”, what is the deference?When using productbuild command with —sign we do not need to use productsign command?Using the codesign command with the flags --timestamp --options=runtime, in that case do we still ned entitlements attached for the timestamp and for the hardening?I there any totorial / example of how to create .pkg (this packege is to hold and use a .kext kernal extension) using xcode 11.x commandline tools that will load on macOS Catalina?Thanks a lo
1
0
6k
Apr ’20
Reply to How can I keep Installer from relocating packages?
I don't think we have the .plist file. We use pkgbuild --identifier org.${PRODUCT}.${VERSION} --version ${VERSION} --scripts ${TARGET_DIRECTORY}/darwin/scripts --root ${TARGET_DIRECTORY}/darwinpkg ${TARGET_DIRECTORY}/package/${PRODUCT}.pkg > /dev/null 2>&1 productbuild --distribution ${TARGET_DIRECTORY}/darwin/Distribution --resources ${TARGET_DIRECTORY}/darwin/Resources --package-path ${TARGET_DIRECTORY}/package ${TARGET_DIRECTORY}/pkg/$1 > /dev/null 2>&1
Jan ’24
Reply to UI Testing doesn't launch app
Good question. I tried running on the device but I received a code signing error:/Users/kiel.gillard/Library/Developer/Xcode/DerivedData/Alfred-adlymjyjtksujwbgrfamofhzhuck/Build/Products/Debug-iphoneos/AFRUITests-Runner.app/PlugIns/AFRUITests.xctest: No such file or directory Command /usr/bin/codesign failed with exit code 1The file indeed does not exist. Rather, an AFRUITests.app package exists in the directory instead and that app package merely contains an Info.plist file (it's missing an executable).Kiel
Sep ’15
how to expand a .pkg fiile in a pkg
hello, I want to see the payload of a pkg file, after i expand it using pkgutil --expand-full file.pkg [path], i see it is converted into a directory. however, there are still two .pkg files in this directory. and again i use pkgutil --expand-full, this time it fails, the error is Could not open product archive: ./Delinea.ConnectionManager.pkg thanks
1
0
569
Mar ’24
Adding a transaction for a in-app purchase gives a "Missing Product Id" popup
Hi, I have followed all instructions in https://developer.apple.com/documentation/storekit/in-app_purchase/original_api_for_in-app_purchase/testing_in-app_purchases_in_xcode. My app is not on the Apple Store but is ready to submit. I have created an in-app purchase in applestoreconnect that is also ready to submit. When I try to add a transaction in the Transaction Manager, I get Missing Product Id with no further info about the problem. I can't seem to get any information about this online. What could be the problem?
1
0
278
Sep ’23
Reply to How to use Apple server to host IPA content
If Apple is hosting the content they will only download a particular package for a particular IAP product that is purchased. Therefore you will need 100 products and the user will pick the product and buy a productIdentifier. If you host the content you can let the user buy a consumable IAP and then swap that IAP for a particular package to download.
Feb ’17
Reply to No such module 'FrameworkName' when archive
I was able to fix it by separating the xcframework to its own Swift Package let package = Package( name: TheLibrary, products: [ .library(name: TheLibrary, targets: [TheLibrary]), ], dependencies: [], targets: [ .binaryTarget(name: TheLibrary, path: Sources/TheLibrary.xcframework) ] ) and then including as a dependency in main project. let package = Package( name: MainProject, platforms: [.iOS(.v11), .macOS(.v10_15)], products: [ .library(name: MainProject, targets: [MainProject]) ], dependencies: [ .package(url: ../TheLibrary, from: 1.0.0) ], targets: [ .target( name: MainProject, dependencies: [ TheLibrary ] ) ] ) I hope it helps!
Jan ’21