missing package product

42,925 results found

Post

Replies

Boosts

Views

Activity

App freezes on purchase: StoreKit and fullScreenCover
My SwiftUI app freezes when completing a purchase in StoreKit if I have .fullScreenCover modifier applied anywhere in the View hierarchy. It doesn't matter where I put the .fullScreenCover modifier in the view hierarchy. Even if I place it somewhere else in the hierarchy and don't trigger it, the app will still freeze on completed purchase. As soon as I remove .fullScreenCover modifier everything works great. Anyone else had this issue? Is this a known issue? Is there a fix for this? struct ShopView: View { @EnvironmentObject var store: Store @State var isFullScreenCoverPresented: Bool = false @State var purchasedTip: Tip? = nil var body: some View { VStack { VStack { ForEach(store.products.sorted(by: { $0.price < $1.price })) { product in ProductView(product) { Image(productImage) } } } } .onInAppPurchaseCompletion { product, result in if case .success(.success(.verified(let transaction))) = result { await store.process(transaction) // make sure there's a Tip corresponding to th
1
0
44
3d
Reply to XcodeCloud fails while Resolving Dependencies
After some more investigation I think I found a workaround. In our case he problem is definitely related to SPM packages that contain .swift in the URL. I tried url encoding the dot (.) to %2e and it seems to fix the problem. So https://github.com/auth0/JWTDecode.swift.git becomes https://github.com/auth0/JWTDecode%2eswift.git Now the packages are resolved successfully both on Xcode Cloud and locally using Xcode 16 beta. Could someone please verify this?
3d
APP Store Server Notifications Unrelated transactions info for auto-renewable subscription
Greetings for App Store Server Notifications especially sandbox (I have not tried production) it seems that that is no way to associate two transactions to their orignal subscription instance the docs indicate webLineItemOrderId id but they are different from each subscription the originalTransactionId is the same among all subscription instances and customers, theres originalPurchaseDate but that is not reliable becuase 2 transactions can occur on the same date what can be done here. I even tried to use it but its like the sandbox is broken with the originalPurchaseDate of one instance being the same as another. is it a bug or will things get in line once I go to production?
1
0
47
3d
Iphone 14 Pro Max- IOS 18 Beta 3 Torch issue
Throughout the IOS 18 update feature, my iPhone has been working extraordinary well and there seems to be no issues with the update for the latest gen iPhones/apple products. The only issue I’ve experienced these few months include the torch feature. after the IOS 18 Beta Version 3 dropped, my iPhone seems to have problems when it comes to turning the torch on. It mostly bugs out, like when i turn the torch on, it turns on for a split second and immediatly turns off again. It seems as though now my IPhone 14 Pro Max is unable to run the torch feature. Even after the Version 4 of Beta IOS 18, my iPhone is still unable to run the flashlight and it does the same thing since the last version for now.
1
0
189
4d
ASWebAuthenticationSession does not work for some reason for an OAuth Authorization Code grant
Hi there, I'm having some trouble with getting a OAuth Authorization Code redirect with a custom scheme to work with ASWebAuthenticationSession. I am trying to build an app that integrates with an authentication provider, in which I have configured like this: Callback URL: myapp://auth In my iOS app, I have define this as a custom scheme in my info.plist file. CFBundleURLTypes CFBundleTypeRole Editor CFBundleURLName com.abc.def CFBundleURLSchemes myapp Excuse the messy-ish code below, but I just want to see this work. import SwiftUI @main struct MyApp: App { var body: some Scene { WindowGroup { AContentView() .onOpenURL { url in print(Received URL in onOpenURL: (url)) Self.handleURL(url) } } } static func handleURL(_ url: URL) { print(Handled URL: (url)) } } import AuthenticationServices struct AContentView: View { @Bindable var viewModel = SomeViewModel() @State private var authSession: ASWebAuthenticationSession? @State private var presentationContextProvider = PresentationContextProvider() var bod
1
0
124
4d
Reply to How to control continuous movement by long pressing on the GameController
@xuhengfei, Based off the limited code snippet you provided I'm not sure what is occurring. Is it possible that you are losing reference to either the gc or extendedGamepad? The System's update(context:) method should be firing every frame as documented in RealityKit Systems. You will want to use context.deltaTime to determine how far you want the entity to move. The Happy Beam sample code contains a robust example of using controllers in visionOS. Additionally, my colleague provided an example on how to accomplish this in this forum post. Hope this help! Michael
4d
Missing Header File Issue in React Native iOS Project when building with EAS
Hello, I am currently working on a React Native project, which I am encountering an issue with during the iOS build process. Project Overview My app is a cross-platform mobile application built using React Native. The project is structured to include both iOS and Android platforms, with the main application code residing at the root level of the project directory. The iOS-specific files are located in the ios directory, while the Android-specific files are in the android directory. Project Structure The project structure is as follows: app ├── android ├── ios ├── app.json ├── App.tsx ├── assets ├── babel.config.js ├── eas.json ├── env.d.ts ├── index.js ├── metro.config.js ├── modules │ └── esl │ ├── android │ ├── ios │ │ ├── Esl.podspec │ │ ├── EslModule.swift │ │ └── Frameworks │ │ └── MTESLTagV3Kit.framework │ │ ├── Headers │ │ │ ├── MTBroadcastHandler.h │ │ │ ├── MTBrushManager.h │ │ │ ├── MTCentralManager.h │ │ │ └── (other headers...) ├── node_modules └── package.json Native Module: ESL The ESL module is
1
0
96
4d
In-app purchases products for marketplace items
We are programming a marketplace for digital artwork, which shall use in-app purchases. Are we allowed/supposed to create only one storekit product, which we can call item-x and assign a fix price of i. e. 5,00$, assuming all items are sold for 5,00$, and use this product for all items? Or shall we create one product for each item which is selled on or platform, which could be 1.000?
0
0
91
4d
Reply to Received termination request from [osservice<com.apple.dasd>:76] on <RBSProcessPredicate <RBSProcessHandlePredicateImpl| app<com.myapp.bundleid() with context <RBSTerminateContext| explanation:BG Kill Demo
The expectation for the app in background is, app may or may not be awake. But when the app is supposed to join a voip call, app receives voip apns notification, which wakes up the app, app connects to our server to fetch audio and play it. Just to clarify here, having the voip background category does NOT mean that your app won't be terminated in the background. What the system promises is that when the system receives a voip push, that voip push will be delivered to your app. If your app is suspended in the background, then it will be woken up. If it isn't running at all, then the system will launch it into the background and deliver the push. Note that PushToTalk operates in EXACTLY the same way. In both cases, the system does NOT guarantee that your app will remain alive in the background. Let me jump back to your original statement here: App getting terminated as the app enters background state. No crash logs are generated. I have collected this log from Console(Mac app)by connecting iPhone and sending m
4d
Sequoia Beta 3 on Mac Studio M1 Ultra - After Enabling FileVault, Only Guest User Login is Possible and Only Safari is Usable
Hello Community and Dear Apple Developer Community, I shouldn’t have done it… I was already using Sequoia Beta 3 on my Mac Studio. Everything was running stable, and I had been able to work productively with it for a while (weeks). Recently, I decided to enable FileVault. Said and done, but unfortunately, something went wrong: since then, I can no longer log in with my normal user account (which has admin rights). Instead, only the guest user appears on the login screen (and no other account appears even when hovering over it). When I log in as this guest user, it behaves differently than usual. Only Safari can be started, and the only other things I can do are shut down or restart the system. Something has gone seriously wrong with the beta, I would say. Of course, I know I use a beta at my own risk, but I would still very much like to get back to working properly on my Mac without having to reinstall everything. Who can help? I’ve always managed to solve issues myself so far, but in this case, I’m
0
0
148
4d
Guideline 5.1.2 - Legal - Privacy - Data Use and Sharing
The app privacy information provided in App Store Connect indicates the app collects data in order to track the user, including Precise Location. However, the app does not use App Tracking Transparency to request the user's permission before tracking their activity. Apps need to receive the user’s permission through the AppTrackingTransparency framework before collecting data used to track them. This requirement protects the privacy of users. ---How do I fix this problem? I've submitted my app and in return they provided a screenshot of it clearly asking for permission before the app even loads the map in the background. Even though in the screenshot it's asking them for permission they are telling me it's not prompting the user before it starts tracking. I'm lost, help.
0
0
70
4d
CALayerInvalidGeometry crash in SwiftUI
I have had a suspicious crash in my app for a long time. I'm 95% using SwiftUI and have to use only one UIKit view that I embed into SwiftUI in my app. I don't understand why my app crashes when the CALayer position is set to Nan because I don't reference layers at all, including that UIKit view. Any ideas why it may happen and how can I reproduce it? Fatal Exception: CALayerInvalidGeometry CALayer position contains NaN: [nan nan]. Layer: <CAShapeLayer:0x303cd9600; position = CGPoint (0 0); bounds = CGRect (0 0; 0 0); delegate = _NoAnimationDelegate; allowsGroupOpacity = YES; anchorPoint = CGPoint (0 0); > Fatal Exception: CALayerInvalidGeometry 0 CoreFoundation 0x83f20 __exceptionPreprocess 1 libobjc.A.dylib 0x16018 objc_exception_throw 2 CoreFoundation 0x1826dc -[NSException initWithCoder:] 3 QuartzCore 0x7b28 CA::Layer::set_position(CA::Vec2<double> const&, bool) 4 QuartzCore 0x7a58 -[CALayer setPosition:] 5 SwiftUI 0x1a131d4 objectdestroy.10Tm 6 SwiftUI 0x1a12ab4 objectdestroy.10Tm 7 Swift
1
0
87
4d
Reply to Universal links & redirect not working on certain devices
More logs to explain the intermittent issue. These two calls are between 3 seconds. daramfon@MacBook-Pro-4 MomentsHub % curl -v https://app-site-association.cdn-apple.com/a/v1/yourmomentshub.com * Host app-site-association.cdn-apple.com:443 was resolved. * IPv6: (none) * IPv4: 17.253.27.203, 17.253.13.135, 17.253.7.146, 17.253.97.202, 17.253.7.154, 17.253.13.137, 17.253.97.205, 17.253.27.198 * Trying 17.253.27.203:443... * Connected to app-site-association.cdn-apple.com (17.253.27.203) port 443 * ALPN: curl offers h2,http/1.1 * (304) (OUT), TLS handshake, Client hello (1): * CAfile: /etc/ssl/cert.pem * CApath: none * (304) (IN), TLS handshake, Server hello (2): * (304) (IN), TLS handshake, Unknown (8): * (304) (IN), TLS handshake, Certificate (11): * (304) (IN), TLS handshake, CERT verify (15): * (304) (IN), TLS handshake, Finished (20): * (304) (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / AEAD-CHACHA20-POLY1305-SHA256 / [blank] / UNDEF * ALPN: server accepted http/1.1 * Server certif
4d