Posts under Developer Tools & Services topic

Post

Replies

Boosts

Views

Activity

Problem with simulator (Asked again)
I already asked this, although I want to ask again so it boots and gets more people; When I try to run my project on the simulator, it tells me there is a bug. It is not in the code I wrote, but I believe in the compiler. It would work perfectly, say the build succeeded, but the phone turns white and stops there. I don't know how to debunk it, what to do! Picture of what happens with the phone: Picture of the debugging area: Picture of my code: If I need to add more things, please let me know. Have a great day!
0
0
359
Dec ’24
Inquiry Regarding Refund Process, Developer Commission, and Revenue Payout
Hello Apple Developer Support, I hope this post finds you well. I have several questions regarding the refund process, developer commission, and revenue payout, and I would appreciate your insights on the following: 1/ Refund Process: When a customer cancels an order, when will Apple process the refund for the developer? How long does it typically take for developers to receive the refunded amount? 2/Developer Commission: How does the commission for developers work in the event of a refund? Does Apple adjust the commission or deduct any percentage in case of a refund? 3/Refund Notifications: Is there a notification system that alerts developers when a customer cancels an order and a refund is processed? 4/Revenue Payout: How long does it take developers to receive the revenue from purchases, and is there a specific payout schedule for this? 5/Commission Percentage for Small Earnings: If the developer's total earnings are under 1 million VND, what is the commission rate that applies? Thank you in advance for your assistance. I look forward to your response.
0
0
341
Dec ’24
NSItemProvider make .jpg image to .jpeg
Hi, I'm not sure why but when my fileURL is .jpg file and I drop the file from my app to Finder folders it make the dropped file as .jpeg Is there a way to fix it? [.onDrag { if FileManager.default.fileExists(atPath: file.path) { // Provide the file as an item for dragging let fileURL = URL(fileURLWithPath: file.path) let itemProvider = NSItemProvider(contentsOf: fileURL) // Remove the file extension in the suggestedName let baseNameWithoutExtension = fileURL.deletingPathExtension().lastPathComponent itemProvider?.suggestedName = baseNameWithoutExtension return itemProvider ?? NSItemProvider() } else { // Handle the case where the file no longer exists print("File no longer exists at path: \(file.path)") return NSItemProvider() } })
0
0
358
Dec ’24
VPN causes developer cert in keychain to become untrusted
After not happening to me for a few months, this issue has started hitting me again with currently %100 reproducability. If turn on VPN on my Mac then instantly the developer certificates within the keychain become untrusted. But that's not all, if VPN is then turned off the certificates do not revert to their trusted status but remain untrusted. The consequence of this is that if VPN is turned on and then a build is perform, it fails, and the only way to fix things is to delete the cert(s) from they keychain and re-install them. As a remote worker, having this happen several or even dozens of times a day is incredibly annoying and frustrating. This issue has been occurring for literally years, sometimes it occurs very often, others while its quiet for a while, and has spanned multiple versions of Xcode and Mac OS. So whatever the cause is its endemic. It doesn't just affect myself, but all the members in my development team. I'm currently using Xcode 14.1 RC 2 and Monterey but I've seen this issue occur with many versions of Xcode and Mac. (I'm using Cisco AnyConnect Secure Mobility Client). If the VPN is somehow interfering/affecting the connectivity aspect when an attempt is made by Xcode to validate the certificate, then why does it not rectify itself after turning off VPN? This is so so so so annoying. Can somebody please comment on why this happens and if there's a way to prevent it.
5
1
3.4k
Dec ’24
"Trouble connecting consumable In-App Purchases (IAP) to App Store Connect"
I am developing an app with support for In-App Purchases (IAP) for consumable products using StoreKit. I have defined the products in ProductList.plist and Product.storekit, but I am unable to connect them correctly to App Store Connect. Here are the details: Products defined in ProductList.plist: Bolet Evento Vip: com.cover.boleto.vip Boleto Evento Básico: com.cover.boleto.basico Configuration in Product.storekit: The products have prices and basic configurations, but they do not seem to link properly in App Store Connect. Steps I have taken: Configured IAP simulation in Xcode. Attempted to register the products in App Store Connect. Issues I am facing: The products are not appearing in App Store Connect after configuration. My app cannot seem to fetch consumable products from App Store Connect. Question: What steps should I follow to correctly register consumable products in App Store Connect and connect the app with StoreKit for production? Any advice or guidance would be greatly appreciated. Thank you!
0
1
362
Dec ’24
Use ibeacon technology to activate the wake up app for Bluetooth connection
Dear Apple developer team, we use ibeacon to wake up and activate the app for Bluetooth connection in app development, but there are some problems, the problems are as follows: 1, called CLLocationManager startRangingBeaconsInRegion and startMonitoringForRegion, open after iBeacon area detection and ranging. After completely leave iBeacon radio range, locationManager: didExitRegion: callback is not timely. When the screen is on, wait 1 minute for the callback. When the phone is in the state of the screen, it needs to wait for more than 3 minutes, and occasionally wait for more than 10 minutes without callback; 2. Can the success rate of ibeacon approach 100%? How to improve the success rate of ibeacon live wake app? 3. Using ibeacon technology, in what scenarios will the app be pulled alive to wake up during user use? 4. How long can the app process its business after it is woken up? 5. Can ibeacon technology and Bluetooth saving and recovery mechanism be used to greatly improve the probability of activating the app for Bluetooth connection, and can cover various use scenarios of users' lives to awaken the activating app?
1
0
288
Jan ’25
Instruments "Failed to split user provided arguments: working directory doesn't exist"
Trying to examine performance issues in Xcode Instruments using the Animation Hitches instrument in Xcode 16.0 beta 6 (16A5230g). When connected to my iPhone 15 Pro Max and I try to start a run with my app, it has an error “Failed to split user provided arguments: working directory doesn't exist” with timestamp “(Before Run Started)”. When running the app on an iOS simulator, the instrument runs fine—but I want to profile on a real device.
 Instruments > Settings, Recording Location set to Default and that directory does exist.
5
2
976
Jan ’25
Unable to reset simulators
I'm unable to reset simulators using the menu or the xcrun simctl tool: <output of xcrun simctl list> == Devices == -- iOS 17.5 -- iPhone SE (3rd generation) (5A06623A-173D-4C96-8DD3-3E9FE39A06F1) (Shutdown) iPhone 15 (iOS 17.5) (F4329E8D-29BB-4EA7-8465-C11A98D04ED7) (Shutdown) -- iOS 18.0 -- iPhone SE (3rd generation) (2DDE8F03-F8E1-4C1B-8E28-CD9B208F3FFA) (Shutdown) iPhone 16 Pro (DE788688-8AC6-40A0-B25C-A56AA423798E) (Shutdown) iPhone 16 Pro Max (1405184C-36A9-40F3-B0D0-4EEB88452883) (Shutdown) iPhone 16 (0CBBA7DB-B20E-4F17-BBC5-910F1F6E1A0A) (Shutdown) iPhone 16 Plus (95421C27-11A0-4FCF-A889-DAAE8557B271) (Shutdown) == Device Pairs == ~/Library`` ❯ xcrun simctl erase 0CBBA7DB-B20E-4F17-BBC5-910F1F6E1A0A An error was encountered processing the command (domain=NSCocoaErrorDomain, code=513): “data” couldn’t be moved because you don’t have permission to access “Deleting-8FEDFF47-5B2F-4534-BCA2-036BBE68CE37”. You don’t have permission. To view or change permissions, select the item in the Finder and choose File > Get Info. Underlying error (domain=NSPOSIXErrorDomain, code=1): The operation couldn’t be completed. Operation not permitted Operation not permitted Xcode Version 16.0 (16A242d) MacOS 15.0.1 (24A348)
3
3
1.7k
Jan ’25
Xcode 15.3 Command Line Build of Aggregate Doesn't Respect Derived Data Location
I have an aggregate project that compiles several Xcode projects. All Derived Data locations are set to the default: Xcode > Settings > Locations > Advanced = Unique (the default) Aggregate Project > File > Project Settings... > Derived Data = Default Location Individual Sub Projects > File > Project Settings... > Derived Data = Default Location And yet, when I do a command line build, for each of the sub projects, a "build" folder is created alongside the sub project's xcodeproj file. Note that this project is quite old, going back many Xcode versions. I had previously had Xcode > Settings > Locations > Advanced set to "Legacy", but am shifting these old projects to use the default DerivedData location – this might be part of the problem, given that the Legacy mode always created a "build" folder next to the .xcodeproj file. Can anyone explain this? Best Wishes, Mark
1
0
450
Jan ’25
Error while reading test baseline file
When running Unit tests on my project, I get an error: Error while reading test baseline file: "The file “05ACE933-24F8-449B-9949-77312B3070BC.plist” couldn’t be opened because there is no such file." at path: "/private/var/folders/qy/g9s46vp88xggk_001s62kxb00000gn/X/54A3BAF3-89F8-52E2-8575-47176446C08E/d/Wrapper/MyApp.app/PlugIns/MyAppTests.xctest/xcbaselines/05ACE933-24F8-449B-9949-77312B3070BC.plist" This happened after a rebase / merge, so I must have accidentally deleted a file from the repository. This only seems to happen on the 'My Mac (Designed for iPad) device. When I run the unit tests on my iPhone, all seems to be well. How can I either remove the reference to the missing file, or reset the baselines in the project? Kind regards, Wouter Wessels
2
1
502
Jan ’25
Can't compile asset catalog when including iMessage App Icon asset
I'm trying to add an iMessage extension to my app, and upon adding the iMessage App Icon set, I ran into an issue with one specific icon size: 1024x768px, aka 1x 1024x768pt. When I remove this one icon from the icon set, it compiles and runs fine, however I can't push it to the App Store as I get the error: "Asset validation failed. Missing Image Asset. Your app is missing the Large App Icon asset 'AppIcon' in 'Payload/Runner.app/PlugIns/MessagesExtension.appex'." I'm assuming this refers to 1024x768px, as this size placeholder appears upon adding a New Messages Extension Icon to my assets folder, and 1024x1024 is already included and compiles fine with it. However, when I add the 1024x768 icon, and try to run the app, I get the error: "Command CompileAssetCatalog failed with a nonzero exit code" The app icon's filename is correct, it is exactly 1024x768 px, and my contents.json correctly includes : { "filename" : "AppIcon_1024x768.png", "idiom" : "ios-marketing", "platform" : "ios", "scale" : "1x", "size" : "1024x768" } as is the same format for all of my other icons that work. Why am I running into this issue upon inclusion of this one required size? How do I fix it?
2
0
750
Jan ’25
Preview Start Problem
Hello Apple Developer Community. I have a Problem with Xcode Preview. The Problem is that when I try to start the Preview in Xcode (Not Simulator) It crashes and when I try to click Reopen, it says that I must Update my Mac OS, but my Mac OS is Up-to-Date. Can you help me with this? Thank you :D
2
0
332
Jan ’25