missing package product

42,925 results found

Post

Replies

Boosts

Views

Activity

SwiftData custom migration crash
Starting point I have an app that is in production that has a single entity called CDShift. This is the class: @Model final class CDShift { var identifier: UUID = UUID() var date: Date = Date() ... } This is how this model is written in the current version. Where I need to go Now, I'm updating the app and I have to do some modifications, that are: add a new entity, called DayPlan add the relationship between DayPlan and CDShift What I did is this: enum SchemaV1: VersionedSchema { static var versionIdentifier = Schema.Version(1, 0, 0) static var models: [any PersistentModel.Type] { [CDShift.self] } @Model final class CDShift { var identifier: UUID = UUID() var date: Date = Date() } } To encapsulate the current CDShift in a version 1 of the schema. Then I created the version 2: enum SchemaV2: VersionedSchema { static var versionIdentifier = Schema.Version(2, 0, 0) static var models: [any PersistentModel.Type] { [CDShift.self, DayPlan.self] } @Model final class DayPlan { var identifier: UUID = UUID() va
12
0
436
3w
Reply to Testflight doesnt open an App (error 10673)
Thanks for a quick response, i am not sure what command i should use to run the syspolicy_check. After running syspolicy_check distribution /Users/username/Documents/WattAttack-Mac-Shipping.pkg App has failed one or more pre-distribution checks. Codesign Error File: /Users/___username___Documents/WattAttack-Mac-Shipping.pkg Severity: Fatal Full Error: File is not signed at all. Type: Notary Error Notary Ticket Missing File: /Users/username/Documents/WattAttack-Mac-Shipping.pkg Severity: Fatal Full Error: A Notarization ticket is not stapled to this application. Type: Distribution Error Though it is signed with the 3rd Party Mac Developer Installer: certificate...
5d
"account not in this store" error when testing inApp purchase
I've already done my test on development signed app locally, all in-app purchase runs well with sandbox tester Apple ID. Errors happens when make a purchase in distribution app from TestFlight. Detail Info: in Apple Store connect , make app available to China Electron project, packaging by electron builder using distribution sign upload to TestFlight, invite myself to test using my Apple ID(not the sandbox tester) to login and purchase dialog appears and said Account not in this store VPN is off Apple Store shows Chinese language and Chinese apps, not llikely to be u.s. store I'm suspecting that: Maybe shouldn't use my developer Apple ID to run TestFlight test? TestFlight locked app to be in u.s. store ?
3
0
277
3w
Reply to How to preview a custom View that takes bindings as inputs in its initializer?
This was driving me mad as well, because half the examples (including in this state answer 'how do I preview a @Binding' with 'here's a working example using @State' which misses the point by a mile. I've found different workarounds elsewhere that also didn't work for me. What does work, however, is to replace @Binding with @Bindable. And suddenly, the standard #Preview macro works out of the box. #Preview { BindingViewExample_2(value: true) }
6d
How do I do unit tests for code using system objects?
That's probably a bad title, let's try with specifics: we have a network extension, it has some classes / functions of its own, and they, when push comes to build, depend on (for example) NEAppProxyFlow and its subclasses. The code is written in Swift, since it is the language of the future. If I want to do a unit test for my code, I need to provide something that at least looks like NEAppProxyFlow, since I can't otherwise create one. I thought I could provide my own NetworkExtension module for test case, but that... did not work well, and I still don't understand why. On the other hand, I'm really bad at making unit tests, so the odds that I'm missing something fairly obvious to most other people are pretty high.
4
0
127
1w
Reply to swift run on Xcode 16 beta 2 for Swift Package crashes with SIGKILL Guard
Finally got how this crash can be reproduced. This is very specific with Xcode 16 betas, recurring on Apple Silicon mac mini/macbook pro 14'' Sonoma 14.5, with CrowdStrike Falcon Sensor 7.14.18305.0 running. If you run swift run -c release swiftformat ./ with all caches and build artifacts of Swift Package, the shell will crash with SIGKILL and send crash report to you local Console.app. So the solution will be: separating swift build and swift run. After that we never complain of swift run crashes.
6d
swift run on Xcode 16 beta 2 for Swift Package crashes with SIGKILL Guard
With connection of SSH via Jenkins 2.332.1 to the remote Macs, swift-package module crashes and leaves crash report on Console. Absolutely swift command itself fails. Filed https://feedbackassistant.apple.com/feedback/14285692 with the crash report created. Really hard to explain what happens exactly but seems like it is related to Xcode 16 beta (xcrun version 70) because the same problem never occurs on Xcode 15.4 (xcrun version 68).
1
0
162
2w
Usage of IsSIMInserted in iOS 18
I am developing an iOS application where I need to detect if a SIM card is inserted in the device(either physical / eSim). I am targeting iOS 12 and later. I have tried using CTTelephonyNetworkInfo and CTSubscriber, but I am encountering issues with permissions and API availability in iOS 18 beta 3. if #available(iOS 16.0, *) { let subscriber = CTSubscriber() if #available(iOS 18.0, *) { do { if subscriber.isSIMInserted { return SIM card is inserted. } else { return No SIM card detected. } } catch { return Error determining if SIM is inserted: (error.localizedDescription) } } else { return isSIMInserted is only available on iOS 18.0 or newer. } } else { return isSIMInserted is only available on iOS 16.0 or newer. } if let carriers = networkInfo.serviceSubscriberCellularProviders, let carrier = carriers.first?.value, let _ = carrier.mobileNetworkCode { return SIM card is available.nCarrier Name: (carrier.carrierName ?? None) } else { return No SIM card installed } } in iOS 18 it always returning No SIM card de
2
0
144
1w
Lossy option has no effect when exporting PNG to HEIF
Under Sonoma 14.4 the compression option doesn't work with PNG images. It works for JPG/HEIF. Preview can export PNG file to HEIC with compression option. What am I missing? Previously this has worked. I am trying with 0.01 and 0.9 as compression quality and the file size is the same for PNG. Is Preview using some trick to convert the image using ciContext.createCGImage? PS: Compression option of 1.0 was broken under 14.4 RC and Preview created empty file. func heifImageDataUsingDestination(at url: URL, compressionQuality : CGFloat) -> Data? { guard let imageSource = CGImageSourceCreateWithURL(url as CFURL, nil) else { return nil } guard let cgImage = CGImageSourceCreateImageAtIndex(imageSource, 0, nil) else { return nil } var mutableData = NSMutableData() guard let imageDestination = CGImageDestinationCreateWithData(mutableData, public.heic as CFString, 1, nil) else { return nil } let options = [ kCGImageDestinationLossyCompressionQuality: compressionQuality ] as CFDictionary CGImageDestinationAd
5
0
748
Mar ’24
Accept incoming network connections?
Hi, I have a package which is signed and notarized. Still I get the warning message to Allow/Deny the Accept incoming network connections when I launch the application. I could see that the application is present in the firewall exceptions list. Please find the attached screen shots. regards Prema Kumar
5
0
206
Jun ’24
Questions about ConsumptionRequest properties
Hello. platform: Please let me know which platform 'Non-Apple platform' is referring to. For example, Google or Amazon? And is it correct to mean the platform that consumed the products received due to in-app purchases? playTime: Does 'playTime' mean the time when the customer purchased the app and actually accessed the app? Or do you mean the time you accessed after the in-app purchase?
1
0
132
1w
"The application bundle does not contain an icon in ICNS format"
The answer to my question is probably very simple but I've spent twelve hours trying to find it myself and I am at my wit's end. Searching the web shows multiple sufferers from, and multiple answers to, this same problem from at least ten years ago. I've a SwiftUI macOS/iOS app that is not finished but at a stage where I want to get it ready for TestFlight. I set it up on App State Connect and set Xcode Cloud to build it on GitHub commits. The first build revealed some obvious omissions, easily fixed, then I hit this one, for macOS: Missing required icon. The application bundle does not contain an icon in ICNS format, containing both a 512x512 and a 512x512@2x image. [In passing, I'll note the app, passes muster for the iOS platform] I make a 1024x1024 PNG .. convert it to ICNS with GraphicConverter .. convert it again with iconutil to a iconset and add it to my app. I do a regular build in Xcode and, there it is, my .icns file in the app bundle. I commit to fire off another Xcode Cloud build, but ge
2
0
151
6d
Testing SharePlay on Simulator for Vision
Hello, is anyone aware if or how it is possible to test apps that use SharePlay for vision os for each devices perspective that is participating? I tried to make two simulator sessions signed into two different IDs invite each other to a session but that is not working. Im trying to see the Happy Beam demo in action between two devices. Is there something I'm missing? Thanks
3
0
1.1k
Jul ’23