missing package product

42,931 results found

Post

Replies

Boosts

Views

Activity

Testing presence of Purchased App in XCode
Plenty of info on test IAPs in xCode. I need to test whether the user has previously purchased the product in order to adjust my business model from a paid app to an in-app-purchased subscription. I have implemented the code from What's New in StoreKit found at https://developer.apple.com/wwdc22/10007?time=527 and this works. but I don't know how to create a mock purchase that I can use to validate a previous purchase. This means I have no way of testing if the code actually works with a previous purchase in place. My question is specifically: How do I create a mock/test purchased product that I can use in testing this functionality? For clarity, I have successfully test IAP IAW: https://developer.apple.com/documentation/xcode/setting-up-storekit-testing-in-xcode/ Thanks
2
0
160
1w
SwiftData History Tombstone Data is Unusable
After watching the WWDC video on the new history tracking in SwiftData, I started to update my app with this functionality. Unfortunately it seems that the current API in the first beta of Xcode 16 is rather useless in regards to tombstone data. The docs state that it would be possible to get the data from the tombstone by using a keyPath, there is no API for this however. The only thing I can do is iterate over the values (of type any) without any key information, so I do not know which data is what. Am I missing something or did we get a half finished implementation? There also does not seem to be any info on this in the release notes.
2
0
245
Jun ’24
Reply to SwiftData History Tombstone Data is Unusable
The docs state that it would be possible to get the data from the tombstone by using a keyPath, there is no API for this however. The only thing I can do is iterate over the values (of type any) without any key information, so I do not know which data is what. Am I missing something or did we get a half finished implementation? This is a known bug. If you have not filed a bug report for this issue, I encourage you to do so via Feedback Assistant. By filing a bug report, you’ll be able to track the issue and get notified of problem resolution.
1w
Unable to load CloudKit CoreData Store
I have a CoreData model, in a Swift Package with tests. I can successfully run the tests, when I load the model using NSPersistentContainer, however attempting this with NSPersistentCloudKitContainer always fails in the call to loadPersistentStores(completionHandler block: @escaping (NSPersistentStoreDescription, Error?) -> Void) The error is : [CK] BUG IN CLIENT OF CLOUDKIT: Not entitled to listen to push notifications. Please add the 'aps-connection-initiate' entitlement. This issue is described on StackOverflow however, the accepted solution does not appear to work in my case. I have tried adding the aps-connection-initiate key to my App Info.plist, the Test Info.plist and the SPM bundle. No change. (NB. adding this to the entitlements file just breaks auto signing). I have enabled App entitlements for App Groups, Remote Notifications background mode, Push Notifications and iCloud CloudKit with a store identifier. I have checked my model. All relationships have inverses. No unique constraints,
4
0
1.5k
Dec ’22
Cannot create new release page on "Apple Developer Program License Agreement" has been updated
Hi, When trying to create a new release for my app on App Store Connect, I am getting the error: -- Agreement Update The Apple Developer Program License Agreement has been updated and needs to be reviewed. In order to update your existing apps and submit new apps, the Account Holder must review and accept the updated agreement by signing in to their account on the Apple Developer website. -- However, when looking under Agreements in the Account page, it shows that the latest agreement was accepted on July 1, 2024: -- Agreements Apple Developer Program License Agreement Issued June 10, 2024. Accepted July 1, 2024. Apple Developer Agreement Issued June 7, 2015. Accepted March 25, 2020. -- What am I missing?
4
0
479
1w
Intermittent App Package Installation failure.
I work on a macOS application that functions as a daemon. To test it, I: Compile executables. Use pkgbuild and productbuild to build an application bundle. Use codesign and notarytool to sign and notarize the app. Install the app with /usr/sbin/installer -target LocalSystem -pkg .... This often overwrites the previous version of the app. Sometimes, the installation fails at the postinstall stage, when it can not find the application's install directory. We explicitly check for this error in our script: if ! [ -d $APP_INSTALL_DIR/Contents ]; then echo directory ${APP_INSTALL_DIR}/Contents is missing exit 1 fi This is unexpected! Even worse, some of our customers have occasionally seen the same issue! We use a postinstall script in order to install files into the /Library/LaunchDaemons and /Library/ LaunchAgents directories, and start the agent with launchctl bootstrap. Our preinstall script makes sure that the previous version of our application is fully uninstalled (so there is no confusion)
1
0
125
2w
XCode does not recognize my iPhone
I'm trying to run my app on my iPhone and XCode is unable to detect it. Versions (as of time of writing, these are all the latest versions) XCode: 15.0.1 iOS: 17.1.2 macOS: Sonoma 14.1.2 What I've tried Updating all hardware to the latest versions. Restarting all hardware. Clearing cache/derived data. Using different USBC ports/cables. Using the XCode 15.1-Beta 3 (the latest beta) Clearing trusted computers and re-trusting Disabling Multipath Networking (solution for someone else on the dev forums) Creating a brand new xcode project. Disabling all wifi/bluetooth and reconnecting Using different wifi networks Calling mac support (they directed me back here) Scouring forums What happens I start by disconnecting my phone from my computer, clear trusted computers, restart xcode, and start (basically) from a completely blank slate. First I open XCode to my project. Then I connect my iPhone via USBC. I see that XCode says iPhone not eligible while pairing in progress (or something like that). I see on my phone that
10
0
5.8k
Dec ’23
Reply to How to use libssh2 in a SwiftUI app?
Swift can, in general, call C APIs directly. However, there are numerous challenges: If the C library doesn’t already have a module map, you have to create one. You have to build the C code into some sort of library. This is especially tricky if you’re targeting, say, iOS, where you have to convince the C code’s build system, running on the Mac, to output a library for a different platform. Indeed, if you’re targeting a non-Mac platform you have to build the C code multiple times, once for the target platform and once for the simulator. You then have to package everything up so that Xcode can use that library. There are lots of different ways to achieve this. And, as the best approach very much depends on the library you’re trying to use, there are lots of different discussions about this from lots of different folks. For example, I was having a similar conversation to this with someone last week. If all this sounds like too much, I recommend that you search for an existing Swift package tha
1w
Carrier File MCC MNC
We are Telecom company and we are already registered in GSMA We have started testing our product environment and everything has been working smoothly with Android handsets. However, we are facing some challenges with iPhone handsets. We only use IPV6 for UE addresses allocation and we are seeking your support and guidance on how to register our MVNO MCC and MNC in the iPhone carrier file. Your assistance in this matter would be greatly appreciated.
1
0
185
1w
Reply to Issues with LaunchAgent and LaunchDaemon
[quote='759833021, gamakaze, /thread/759833, /profile/gamakaze'] All three processes must not restart if the user quits them [/quote] It’s impossible to achieve this goal for a launchd agent. That’s because: A launchd agent must necessarily be running on the user associated with its session, otherwise it won’t be able to do agent-y things. If it is, the user can kill it. The only solution here is to structure your product so that: The core functionality lives in the daemon, which the user can’t kill [1]. The user doesn’t gain anything by killing your agent. [quote='759833021, gamakaze, /thread/759833, /profile/gamakaze'] I end up with two Agents, one owned by the user (the one I expect) and one owned by root. [/quote] It’s not clear how that comes about. One obvious way this can happen is if your agent loads into the pre-login session. However, you haven’t listed LoginWindow in your LimitLoadToSessionType. However^2, you earlier said that “They need to run during the login window”, which suggests tha
1w
com.apple.developer.usernotifications.filtering
Nous souhaitons activer l'entitlement com.apple.developer.usernotifications.filtering pour notre extension MsgNotificationService. Pourriez-vous nous fournir des instructions supplémentaires ou activer cet entitlement pour notre App ID ? Si des informations supplémentaires sont nécessaires ou des étapes spécifiques doivent être suivies. actuellement cela n'a pas d'impact sur le build mais sur le product->archive. impossible upload le build Une idée, un conseil ? Merci,
2
0
133
1w
Swift Package with Demo project with Xcode 16
My current workflow to have a Swift Package with a Demo is like this: PackageFolder > DemoFolder I have a package, with a Demo folder inside. I can open the Demo project and Drag&Drop the local PackageFolder to override the remote dependency with the local one. This allows to edit the package while inside the demo project. With Xcode 16 this does no longer work because Xcode does not allow to drop an ancestor of the file path where the project is located. Xcode does not tell this while you drop, it just does not allow it. But it tells you thats the reason, when you try to add the local package as a dependency to the project: The selected package cannot be a direct ancestor of the project.. (Dropping other local packages still works, see: https://forums.developer.apple.com/forums/thread/756824) What is the expected way to handle a package with a demo project with Xcode 16?
2
0
317
Jun ’24
Auto-renewing Subscription Updates not Arriving
This is a copy of a reply to this post. https://developer.apple.com/forums/thread/722222?page=1 I'm posting as new in the hope someone might have more up-to-date information, as I'm pulling out what little hair I have left. I'm using Storekit 2, testing in Xcode with a local Storekit config file. I have created a very minimal system to investigate this issue. I have a SwiftUI-based window using SubscriptionStoreView, and my app set up with the usual listener. I have four types of auto renewing subscription, configured in the local Storekit config file. With my app running, I subscribe to the lowest-level subscription I offer, via the SubscriptionStoreView. Notification of the inital purchase arrives, but subsequent auto-renewals do not trigger any action in my listener for Transaction.updates. They arrive as expected in the Transaction Manager. Radio silence in my listener. If I upgrade one subscription (via my SubscriptionStoreView) I see this reflected in the UI immediately, and also in the Transaction Mana
7
0
426
Jun ’24