Search results for

missing package product

51,818 results found

Post

Replies

Boosts

Views

Activity

SKTestSession.buyProduct(identifier: options:) doesn't work in swift package
We are doing a Swift Package to manage our iap with storekit 2. This packages also contains the unit tests for the code. (as well as all the required files .storekit, certificate, ...) when calling SKTestSession.buyProduct(identifier: options:) we catch an error : Error Domain=SKErrorDomain Code=0 (null) Note when trying exactly the same code but in a project instead of a package that works perfectly. Any idea what could it be? The code is really simple : var testSession: SKTestSession! override func setUpWithError() throws { testSession = try SKTestSession(configurationFileNamed: Products) } func testExample() async throws { do { let productID = nonConsumable.crystal.tier1 try await testSession.buyProduct(identifier: productID) } catch { XCTFail(An error occured during purchase : (error)) } } }
0
0
701
Jan ’24
"Package.resolved" Error with local packages
Let's say you're creating two packages on a local drive, package 'A' and package 'B'. Is it possible, in A's Package.swift file to read (from a JSON or XML file) the path to B, and then add it as a Package.Dependency? I've written my Package.swift script to do so (actually I'm resolving an alias file instead of getting the path from JSON). The problem is: although A's script definitely can read the correct relative path to B (I've logged it to the console and it's fine), no matter what I do, the build always errors out: the Package.resolved file is most likely severely out-of-date and is preventing correct resolution; delete the resolved file and try again This happens so reliably that I assume it's either the (1) script timing out, or (2) some kind of sand-boxing. Either way, the message is pretty useless. I've checked .swiftpm and I see no trace of any Package.resolved file. Deleting .swiftpm doesn't fix the issue. Can anyone shed some light? I'm out of ideas.
2
0
1.3k
Jun ’20
Product ID from SKPaymentTransaction?
Hi,I'm surprised that the SKPaymentTransaction object doesn't include the productIdentifier of the product that was being purchased.I need this information in my transaction observer so I can record which product was purchased and configure my app accordingly.I guess I could keep track of this by recording the last product a user tried to purchase, but that seems error-prone; it doesn't account for restoring transactions on a new device, or the possibility that the transaction observer might be called at a time later than expected, or that two purchases might overlap.Is there a way to obtain the productIdentifier from the transaction?Thanks,Frank
2
0
2.1k
Jul ’17
Swift test with CoreData in a Package
I'm getting an error running unit tests with swift test that succeed when I run them from Xcode. The units and my CoreData model are in a Swift Package. I'm loading the model using Bundle.module like so: Bundle.module.url(forResource: PersistenceController.modelName, withExtension: momd) The unit tests are able to load the CoreData model when run from Xcode and also using the xcodebuild test command line. When I run the tests with swift test I get the following error: error: cannot find type 'MyEntity' in scope Is there something more to be done to enable running CoreData unit tests from a Package using swift tests?
2
0
2k
May ’21
About Playgrounds, Swift packages and Workspaces
So, here's the thing: I'm trying to use Lottie (a very nice Swift package) to render animations within my Swift Student Challenge submission playground. I'm not really sure if we're supposed to be turning our playgrounds into Xcode Workspaces, but I presume we aren't. Right? Another question is: would there be any way of adding an importable package to a playground? Adding the files to the project itself makes the folder structure very messy (and Xcode's compiler goes crazy, since the package doesn't really build itself), so that doesn't really work... Thanks in advance for helping me! ♥️
0
0
644
Apr ’21
Reply to How to Create code sign certificate in Mac
Is Developer ID installer certificate and Code signing certificate is same? No. The code signing identity will have a name Developer ID Application: TTT, where TTT identifies your team, whereas the installer signing identity will be called Developer ID Installer: TTT. How to create a Code signing certificate for the pkg? You use the developer web site for this. See Create Developer ID certificates - https://help.apple.com/developer-account/#/dev04fd06d56 in the account help. How to verify that the code signing certificate is used in the pkg correctly? pkgutil has a --check-signature option. However, you also need to make sure that your product is correctly notarised. See Testing a Notarised Product - https://developer.apple.com/forums/thread/130560 for my advice on this topic. Finally, I recommend that you read Signing a Mac Product For Distribution - https://forums.developer.apple.com/thread/128166, which addresses many other concerns like this. Share and Enjoy —
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’20
Lost files
Recently, some of my files went lost. Particularly those that had been recently created or recently opened. Only the files are lost, the folder are still there, empty. When I open Word, I can see the name of the missing files in 'recents', but I am unable to open them (I get a message saying the file is deleted or I don't have access to it). I have tried searching for them on Finder with no result. I have also already tried: Unticking the Finder thing in my iCloud Checking my iCloud (empty). I didn't really use it before, but it was worth trying. Doing the command + shift to unhide documents Right clicking on the document in recent I also tried recovering deleted files using Disk drill and nothing.
0
0
367
Mar ’21
Reply to Could not cast value of type 'SKSpriteNode' to CustomClass from .sks
UPDATE --- 100% working solution for me:I'm not sure if the Product Module Name was the key here or if the Product Name or Project Name matters, too. At first I just changed the Product Name fields for both targets and it changed the Product Module Name at the same time. I also removed the Module Name values from the buttons in .sks files. Before these steps the type casting to ButtonNode worked for iOS 9, but failed in the OS X target. Now it was opposite. I tried to debug this and I had a feeling that maybe the problem could be related to the Project Name or Product Name, because they were written like Mad Scientist, but the Product Module Name was Mad_Scientist.Finally I decided to played safe and camelize all the Mad Scientists, so the Project Name, Product Name, Product Module Name and directories and everything had equal format. So everything was MadScientist. And guess what...? It works on all targets now!I'm sure that the project
Topic: Graphics & Games SubTopic: SpriteKit Tags:
Dec ’15
Reply to Generic Xcode Archive issue
While “Customizing the notarization workflow” will be useful, it relies on you having a notarisation-ready product. To get that, follow the process in: Creating distribution-signed code for macOS Packaging Mac software for distribution Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: Notarization Tags:
Apr ’24
distribute my products
hello, I work at the Ministry of Defense in France and I develop specific applications to smartphones, currently I am exporting to Android but not yet to IOS.I can not distribute to the app store, because my applications are sensitive and undistributable to the general public.I am researching the feasibility of distributing my products to IOS for the benefit of the 2000 students in my training school. Can you enlighten me on the technical and commercial approach?Do I need to create a virtual distribution server?What is the price per year?how many licenses? Thank you
2
0
467
Feb ’18