Posts under Developer Tools & Services topic

Post

Replies

Boosts

Views

Activity

xcrun devicectl not work as expected in Apple TV
What I want? I expect to use xcrun devicectl device process launch --device <uuid> <bundle-identifier> --payload-url <URL> to launch my app and pass the specified URL as I usually do in iPhone. What I do? Let's say the app A which I'm developing. I try to use UIApplication.open(:options:completionHandler:) in another app to open the app A with registered schema. And whether app A is cold launch or background resumption, app A can go foreground with receiving URL. If I use xcrun devicectl as above described, app A can still be opened. However, app A can't receive URL which I pass through --payload-url option. That's different from in iOS. BTW: I as well try YouTube with UIApplication.open and xcrun devicectl, the former way work, the latter way not work.
0
0
193
Mar ’25
Unable to start podman, the error is: NSLocalizedFailure = "Internal Virtualization error."
This morning I installed podman on my new Apple laptop. It can be inited successfully but failed to start. The error is: Error: Error Domain=VZErrorDomain Code=1 Description="Internal Virtualization error. The virtual machine failed to start." UserInfo={ NSLocalizedFailure = "Internal Virtualization error."; NSLocalizedFailureReason = "The virtual machine failed to start."; My new Mac laptop with the latest OS version: 15.3.1 and it is Apple M4 chip. I verified that my Virtualization.framework is good by ls -l /System/Library/Frameworks/Virtualization.framework also my MacOS support virtualization because sysctl kern.hv_support returns kern.hv_support: 1. I tried to install it on my old Apple laptop which is intel core, same OS version - everything is good. How to fix this issue?
1
0
486
Mar ’25
Unable to Sign in to Apple ID in Xcode – Credentials Not Recognized
Hi everyone, I am experiencing an issue where I am unable to sign in to my Apple ID within Xcode. Even after updating my password and ensuring that all my credentials are correct, I continue to receive an "Incorrect username or password" error. However, I can successfully log in to Apple Developer Portal, iCloud, and Apple ID settings using the same credentials. Steps I've Taken to Resolve the Issue: Updated Software I have updated macOS Sequoia and Xcode to the latest versions. I have also verified that my Apple Developer certificates are up to date. Tried Resetting Authentication in macOS I removed all related entries for Xcode, Apple ID, and Developer from Keychain Access. Logged out of my Apple ID from System Settings and restarted my Mac. Logged back in and retried signing in to Xcode. Checked Authentication & Security Settings I verified that two-factor authentication (2FA) is enabled. Tried appending the verification code directly to the password when logging into Xcode. Checked Xcode Developer Directory Ran sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer Verified using xcode-select -p, which correctly pointed to the Xcode Developer directory. Tried Resetting Developer Tools Removed and reinstalled Command Line Tools (xcode-select --install). Accepted the Xcode license agreement (sudo xcodebuild -license). Reinstalled Xcode Completely uninstalled Xcode using sudo rm -rf /Applications/Xcode.app and reinstalled it from the Mac App Store. Problem Summary: Xcode does not recognize my Apple ID credentials, despite them being correct. I can successfully log in to Apple’s web services, but not to Xcode. I have already attempted multiple fixes, including resetting keychain entries, reinstalling Xcode, and verifying system configurations. I would appreciate your guidance on resolving this issue, as I need access to my Apple Developer account within Xcode to continue working on my app. Thank you for your support.
1
0
489
Mar ’25
"Reveal in Project Navigator" Shortcut Stopped Working
Today after I apparently fat fingered/misclicked/misdragged something in Xcode, the short cut for "Reveal in Project Navigator" (cmd+shift+J) stopped working for me. I don't have any custom shortcut bindings and the other shortcuts still work, as far as I can tell. I've deleted and re-installed Xcode; I've run defaults delete com.apple.dt.Xcode to no avail. I'd really like this shortcut back as it's probably my second or third most used one :(
1
0
250
Mar ’25
Urgent: Invoice Correction Issue – No Resolution After Multiple Contacts
Hello Apple Developer Team, I have been trying to request a correction to my tax invoice for my Apple Developer Program purchase, but I have been continuously redirected between Apple Developer Support and Apple Store Online, with no resolution to my issue. Issue Details: Tax Invoice No.: 0015056100 Problem: The company name is incorrect, and the Tax ID is missing. Correction Requested: Company Name: Bluebik Vulcan Company Limited (Head Office) Tax ID: 0105565196514 Address: No.199 S-OASIS Building, 11th Floor, Unit no. 1103-1106, Vibhavadi Rangsit Road, Chomphon, Chatuchak, Bangkok, Thailand 10900 What Happened: I initially contacted Apple Developer Support, but they informed me that they do not handle invoice modifications and asked me to contact Apple Store Online. When I contacted Apple Store Online, they redirected me back to Developer Support. This back-and-forth has been going on for days, and no one has taken responsibility for my request. I need urgent assistance to resolve this issue. Could someone from Apple clarify which team is responsible for invoice modifications and escalate this matter? I have a Case ID for my request and can provide additional details if needed. Looking forward to a resolution as soon as possible. Best regards, Pornthep Jaroen-ngam | Non Technical Consultant, Associate Director Bluebik Vulcan Company Limited
1
0
290
Mar ’25
testSession.setSimulatedError(.purchase(.invalidQuantity), forAPI: .purchase)
I am trying to test this simulated Error. The issue is, I can't get this to trigger through the simulatedError function. Error will always end up as an unknown error Example code snippet: @available(iOS 17.0, *) func testPurchase_InvalidQuantity() async throws { // Arrange testSession.clearTransactions() testSession.resetToDefaultState() let productID = "consumable_1" try await testSession.setSimulatedError(.purchase(.invalidQuantity), forAPI: .purchase) guard let product = await fetchProduct(identifier: productID) else { XCTFail("Failed to fetch test product") return } let option = Product.PurchaseOption.quantity(4) let result = await manager.purchase(product: product, options: option) switch result { case .success: XCTFail("Expected failure due to invalid quantity") case .failure(let error): print("Received error: \(error.localizedDescription)") switch error { case .purchaseError(let purchaseError): XCTAssertEqual(purchaseError.code, StoreKitPurchaseError.invalidQuantity.code) default: XCTFail("Unexpected error: \(error)") } } } In the above code snippet, I have an Unexpected Error. But if i remove try await testSession.setSimulatedError(.purchase(.invalidQuantity), forAPI: .purchase) I will receive a XCTFail in the success of my result. So when I set the quantity to a -1, only then can I correctly receive an invalidQuantity. Does anyone know why the try await testSession.setSimulatedError(.purchase(.invalidQuantity), forAPI: .purchase) would fail to work as directed? I have tests for all the generic errors for loadProducts API and the simulatedError works great for them
1
0
400
Mar ’25
Change address and Country for expired developer account
I created a developer account in one country and it was active for few years, now it has expired and I have moved to another country. When I want to change the address under "Membership details > Update your information +" it redirects me to a page and I see the following message Your account can’t access this page. There may be certain requirements to view this content. If you’re a member of a developer program, make sure your Account Holder has agreed the latest license agreement. So I thought may be I should just go and renew the account, but on the payment page there's no option to change country there as well, which is required as I don't have a card from my previous country. It is an individual account. Is there any hope I can resurrect my account?
1
2
448
Mar ’25
xCode 16.2 (16C5032a): dev account cannot be saved
xCode 16.2 deletes the dev account ... Steps: Open the xCode 16.2 (16C5032a) Open xCode -> Settings -> Accounts Make sure there are no accounts added Add some dev account using an AppleID Make sure the added account is presented in the accounts list Exit xCode and re-launch it Open xCode -> Settings -> Accounts Check the list of dev accounts ... Actual results: The list of accounts is empty, and the "No accounts" text is presented. Expected result: The previously added account is in service
2
0
262
Mar ’25
Apple Developer Program Application Stuck in Review (No Response)
I applied for the Apple Developer Program on February 4, 2025, and uploaded the required documents on February 5, 2025. However, as of today (February 26, 2025), I have not received any update or response regarding my application. I have already sent two emails regarding this matter but have not received a reply. I would appreciate an update on my application status and any further actions required on my end to complete the process. How to reach apple support?
3
1
402
Mar ’25
ccache in xcode 16
I have a xcode project generated by unity 6 my mac: my x-code: It's a simple project but the building time lasted over 10 minutes and I found a page https://discussions.unity.com/t/optimizing-ios-and-macos-build-times-using-ccache/809570 I tried to run ccache in my mac and hope to accelerate the building. I installed ccache in my MAC by brew I made two script with +x mode I created a testc folder to verify the script and it did work. Then I opened the xcode and added CC and CXX to the “Build Settings” I triggered the building But it didn’t work, the building used the default compiler. I had repeated to ask AI about it and cleaned building cache many times, but the problem still exists. Even without any probing executing of the ccache-clang script ( I configured the log file position, so if it has been executed once, there will be some logs) Could someone help me check if there’s something wrong?
1
0
385
Mar ’25
XCode 16.2 is randomly removing my account
I am signed into Xcode for automatic signing. Which works for a random amount of builds and then the Account/AppleID dissappears from Xcode. This is a vital part of our CI/CD processes and disrupts the workflow alot. MacOS version: Apple M2 15.3 (24D60) Sequoia related: https://developer.apple.com/forums/thread/724434 https://stackoverflow.com/questions/50252887/account-automatically-removed-from-xcode
1
2
509
Mar ’25
Change app language on Apple Watch simulator
I feel a bit dumb now. I once succeeded to change the language of an app on Watch simulator. So it is possible. And I'm not able to repeat (fool of me I did not took note of how I did it). I just remember it was simply through some language settings selection, may be rebooting the Mac, but not by changing anything in code. Does someone know how to do ?
3
0
519
Mar ’25
Immediate crash of Apple Watch simulator when typing a key
I get a crash in Apple Watch simulator (Series 9 45mm 18.0) as soon as the app launch if I type anything on external keyboard (just hitting command key for instance to capture a screenshot). Same crash on series 7 (45mm, OS 18.1) But app works normally when I use mouse to interact with the app on simulator. App does not crash on real device (Watch 4 OS 10.4.1). Nor does it crash on Series 6 simulator (44 mm OS 17.4). Here are the log I could collect (apparently, they contain sensitive language !!! so I attach as a file.: Attached logs
2
0
441
Mar ’25
Gaps in Xcode build timeline
Reposting (after a while) from the Swift forums - the build timeline for our project has a lot of weird gaps in the beginning - almost 15 seconds in total, which is quite a big chunk of the total build time. Is there any way to determine why they exist or how I could fix them? I hope it's just something hidden and not the build system literally doing nothing... This is on Xcode 15.4.
1
0
463
Mar ’25