missing package product

42,933 results found

Post

Replies

Boosts

Views

Activity

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
Reply to Issue with UserDefaults Data Loss after App Transfer and TestFlight Installation
You keep writing “this issue”, which suggests that you think that this is a well-known limitation or bug. That’s not the case. I’m not aware of any systematic problems that would cause an app to lose all user defaults after an app transfer. Now, it’s possible that there is such a problem and I’ve just missed the memo. However, that seems unlikely given that I’ve not seen other reports like this here on DevForums, or as part of a DTS case. My best guess is that this is a bug in your code, and I’ve suggested ways that you might investigate that possibility. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
1w
Reply to Unarchiving an object with custom classes
Silly me... I would have been more productive if I have taken a closer look at the topic that I have accepted as an answer here. Nonetheless, I still don't get it. I have done many variations like the following. if let dict = try? NSKeyedUnarchiver.unarchivedObject(ofClasses: [NSDictionary.self, NSArray.self, NSString.self, CodeReadModel.self, CodeDataModel.self, NSString.self], from: data) { print(**** (dict)) } else { print(What!?) } They all go to the second print.
1w
Xcode-beta 16 - Can't start app. "Loading a plug-in failed"
When I download and install Xcode-beta 16 I get the following error with the app not opening. Xcode v15.4 opens fine on an Apple M2 Max running Sonoma 14.5. Loading a plug-in failed. The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled.. Anyone know how to resolve? I am trying to experience Timelines in Reality Composer Pro and need 16 beta+ to try it.
4
0
5.5k
2w
How to add breakpoints to local override JS web inspector
I'm on Safari 14.0.2 (16610.3.7.1.9) (with the latest Safari Technology Preview Release 118) and have just started using the web inspector to debug JS on my website. I have locally overridden mywebsite JS file with a locally edited version. I have run my global code with breakpoints. However I am struggling to work out how to put breakpoints on the local version as well as getting the local code to be executed. It seems there must be a switch (or a step) from the global to the local version which I have missed. Could anyone guide me as to how to get my local code engaged firstly & secondly, with break points?
3
0
2.6k
Jan ’21
appStoreReceiptURL length
Hello, I have a question to consult. My app includes app purchase, and I will receive the receipt after the purchase. During the testing process, it was found that with the increase of orders without Finish (simulating the situation of a user's order loss), the length of receipt would also increase. At present, our test account contains a maximum of 10 orders that are not finished, and the length of receipt is increased from the first voucher length: [12812 characters] [9609 bytes] to the tenth voucher length: [17220 characters] [12913 bytes], currently we are testing in a sandbox environment. My question is whether there is a maximum length limit for the field receipt in a formal environment, and if so, what is the maximum length?
1
0
117
1w
[StoreKit2] Purchase completion is displayed even if it has not been completed.
StoreKit2 is being tested in a Sandbox environment for the purchase of consumable items. The code being implemented is below. let result = try? await product.purchase() switch result { case let .success(verification): switch verification { case let .verified(transaction): let jws = verification.jwsRepresentation let success = await purchaseItem(of: itemId, with: jws) if success { await transaction.finish() return (success: true, error: nil) } else { return (success: false, error: .serverError) } case .unverified: return (success: false, error: .unverified) } Assume that the verification was successful, but a server error occurred. in let success = await purchaseItem(of: itemId, with: jws), success = false When tested in Sandbox and local environment, the first alert of purchase completion is displayed. After that, a purchase failure alert is displayed. (The purchase failure alert is displayed by the result of return (success: false, error: .serverError)) Is it proper behavior to display purchase completion on
1
0
215
3w
Not a valid path to an executable file.
Hello team can you please help me to resolve this issue Executable Path is a Directory Domain: DVTMachOErrorDomain Code: 5 Recovery Suggestion: /Users/macdevelopername/Library/Developer/Xcode/DerivedData/gopapp-aidgtlievbwsjgdfdydbgdajgjgw/Build/Products/Debug-iphonesimulator/gopapp.app is not a valid path to an executable file. User Info: { DVTErrorCreationDateKey = 2022-11-09 06:23:30 +0000; } -- System Information macOS Version 12.5 (Build 21G72) Xcode 14.1 (21534.1) (Build 14B47b) Timestamp: 2022-11-09T11:53:30+05:30
8
0
4.2k
Nov ’22
Different TransactionId But the same appAccountToken returned
Hello, Apple Developer Team, Recently, we have encountered some rather tricky issues regarding different transactionIds but the same appAccountToken appearing in the JSON data returned when calling the Apple API /inApps/v1/transactions/. The situation is as follows: We obtained the order numbers from the payment receipts provided by the customer. The customer gave us two different order numbers. The payment date is July 9, 2024. By checking our server, we can see two different transactionIds. However, when calling /inApps/v1/transactions/, the JSON data we receive contains the same appAccountToken. The purchase dates for these two orders are very close to each other: transactionId1: July 9, 2024, 21:37:06 transactionId2: July 9, 2024, 21:37:00 Additional Information: 1)The server is using App Store Server API V2. 2)The client is using StoreKit V1. 3)Environment: Production. 4)type: Consumable This issue is not an isolated case. It occurs almost every month. We kindly request assistance from the Apple
1
0
135
2w
SwiftData - Context missing for optional
I have encountered an issue that when using a ModelActor to sync data in the background, the app will crash if one of the operations is to remove a PersistentModel from the context. This is running on the latest beta of Xcode 16 with visionOS 1.2 as target and in Swift 6 language mode. The code is being executed in a ModelActor. The error is first thrown by: #5 0x00000001c3223280 in PersistentModel.getValue<τ_0_0>(forKey:) () Thread 1: Fatal error: Context is missing for Optional(SwiftData.PersistentIdentifier(id: SwiftData.PersistentIdentifier.ID(url: x-coredata://97AA86BC-475D-4509-9004-D1182ABA1922/Reminder/p303), implementation: SwiftData.PersistentIdentifierImplementation)) func globalSync() async { await fetchAndSyncFolders() let result = await fetchReminders() switch result { case .success(let ekReminders): var localReminders = (try? await fetch(FetchDescriptor())) ?? [] // Handle local reminders with nil ekReminderID by creating new EKReminders for them for reminder in localReminders {
2
0
362
Jun ’24
Xcode 15: Multiple Commands Produce Duplicate Info.plist Error
I am encountering a persistent issue in Xcode 15 where multiple commands produce a duplicate Info.plist error. The specific error message is: M u ltiple commands produce '/Users/josephnicholas/Library/Developer/Xcode/DerivedData/Restaurant_Build-bapndkzqxdjxxbacjwattbpeqof/Build/Products/Debug-iphoneos/Restaurant Build.app/Info.plist': Target 'Restaurant Build' (project 'Restaurant Build') has copy command from '/Users/josephnicholas/Desktop/backups/Restaurant Build/Supporting Files/Info.plist' to '/Users/josephnicholas/Library/Developer/Xcode/DerivedData/Restaurant_Build-bapndkzqxdjxxbacjwattbpeqof/Build/Products/Debug-iphoneos/Restaurant Build.app/Info.plist' Target 'Restaurant Build' (project 'Restaurant Build') has process command with output '/Users/josephnicholas/Library/Developer/Xcode/DerivedData/Restaurant_Build-bapndkzqxdjxxbacjwattbpeqof/Build/Products/Debug-iphoneos/Restaurant Build.app/Info.plist' Despite following numerous troubleshooting steps, including deleting the
5
0
376
Jun ’24
pointOfInterestCategory missing on mapkit js placeLookup
const lookup = new mapkit.PlaceLookup() lookup.getPlace(input?.id, (error, place) => { console.log(place, place) ... gives me for example { id: I65A54A72CE9E45D6, alternateIds: [ IB86C41DA005E0D9B ], muid: 7324342225941186006, _styleAttributes: 4:226,6:16,10:0,82:12,85:12,89:1,164:1,193:1, name: The Museum of Modern Art, region: { center: { latitude: 40.7612829, longitude: -73.9768677 }, span: { latitudeDelta: 0.008983199999995861, longitudeDelta: 0.01186000000001286 } }, coordinate: { latitude: 40.7617238, longitude: -73.9777654 }, formattedAddress: 11 W 53rd St, New York, NY 10019, United States, countryCode: US, telephone: +12127089400, urls: [ http://www.moma.org ], country: United States, administrativeArea: New York, administrativeAreaCode: NY, locality: New York, postCode: 10019, subLocality: Manhattan, thoroughfare: W 53rd St, subThoroughfare: 11, fullThoroughfare: 11 W 53rd St, areasOfInterest: [ Manhattan ], dependentLocalities: [ Midtown Center, Midtown East, Midtown Manhattan, Midtown, North Hu
1
0
198
2w