Posts under Developer Tools & Services topic

Post

Replies

Boosts

Views

Activity

Cannot Create Identifiers – “+” Button Missing on Identifiers Page
I'm currently unable to create new identifiers in the Apple Developer portal at this URL: https://developer.apple.com/account/resources/identifiers/list The “+” button that should appear to create a new identifier is missing entirely from the page. What’s odd is that another team member (with the same access level and role under the same team) can see and use the button without any issues. So this doesn't appear to be a permissions-related problem. I’ve already tried: Logging out and back in Clearing browser cache Using different browsers (Safari, Chrome) Using Incognito/Private mode Still no luck. Has anyone encountered this before or knows how to resolve it? Thanks in advance.
0
0
147
May ’25
Apple developer program membership issue
Hi, I paid to renew my membership and I received an order confirmation email. But when i go to my account it says it is still expired - so what did i pay for then? I've emailed Apple developer support and they just sent me a generic bot/copy and paste email telling me i need to renew my account. Everyone i speak to tells me to click a link and it just leads to an email option, i email them, then i get an unhelpful email, then the cycle repeats. It's like: Me: "Hey Apple, i've just paid to renew my account and you're not giving me what i paid for". Apple: "Just renew your account". Me: "....yeah but that's the issue" Apple: "click this link to send an email and start the infinite useless cycle all over again". I have also called apple multiple times and spoke with three people and they are not able to help. I spoke with one of the people's managers and i explained to him that i've stuck in this infinite loop where nothing gets resolved and he sent me a link which just. lead. to. the. same. email. option! I then explained that this is like a dystopian sci-fi movie where this faceless mega-corp (Apple) has taken my money for a service and not given me that service (false advertising / crime). He said he can't help. Then you know what he said? ................... ........ ..... .. "post on the forum". So Apple takes my money and doesn't give me the service they advertised to me then says they can't help me and that i have to ask in the forum. I said "so basically you're advising me that non-apple employees are better suited to help me than Apple employees, lol". What should i do here?? I have a had a team of developers stop working for weeks and this has brought my app development plan to a halt, costing me money.
0
0
131
May ’25
Xcode cannot find any frameworks
I am new to Xcode and trying to learn how to use Metal for my internship. I am trying to link the binaries of Foundation.framework, Metal.framework, and Quartcore.framework. But whenever I try to build it always fails to find any of them. I have my Header Search Path as $(PROJECT_DIR)/metal-cpp, I tried adding some for the Frameworks but that did not work either. I do have the binaries linked in the Build Phases, so I don't know what else I could be missing.
2
0
124
May ’25
Gnu Fortran and Mac OS Sequoia
I observed the following problem: A scientific code to perform Reverse Monte Carlo simulations (‘rmcxas’) compiled with the most up to date version of gcc/gfortran and Xcode including command line tools on Mac OS Sequoia 15.4 on a Macbook air with M4 processor generates the following problem upon starting it in a terminal: dyld[10154]: dyld cache '(null)' not loaded: syscall to map cache into shared region failed dyld[10154]: Library not loaded: /usr/lib/libSystem.B.dylib Referenced from: <0144F82E-003C-37A9-A544-9AE6336E549B> /Users/markuswinterer/bin/rmcxas Reason: tried: '/usr/lib/libSystem.B.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/libSystem.B.dylib' (no such file), '/usr/lib/libSystem.B.dylib' (no such file, no dyld cache), '/usr/local/lib/libSystem.B.dylib' (no such file) zsh: abort rmcxas This occurs only about every 5th time the code is started. Help would be highly appreciated.
2
0
168
May ’25
Xcode Not Displaying Code Coverage for Main App When Using Test Plan on iOS Simulator
I am encountering an issue where code coverage data is not showing for my main app in Xcode when running tests for the iOS simulator. However, code coverage is being reported correctly for some modules. Enable Code Coverage Support: YES Xcode 16.2 macOS: 15.3.1 Macbook Pro M1 14-inch, 2021 Despite these configurations, Xcode fails to show code coverage for the main app. Can anyone suggest what might be causing this issue and how to ensure code coverage is correctly reported for the main app during simulator builds?
1
0
232
May ’25
Apple Developer Forums post is not published
■Confirmation My post on the Apple Developer Forums is not published even though it have been reviewed. Does any work need to be done at the time of submission or after review in order to be published? ■Background of the question I posted one on the Apple Developer Forums yesterday. Immediately after posting, a message saying "It will be published if it passes the review" was displayed on the screen. This morning, that message disappeared, so I thought the post had been published, but my post was not displayed on the post list screen. I tried searching for the post title, but it doesn't appear for a while.
5
0
1.4k
May ’25
App Clip cannot determine the source of the opening
Our business is to scan the code to open App Clip, but then App Clip will appear in App Library and Siri Suggestions. This can be opened quickly, but the URL of the last scan will be included. This will cause a problem, for example: if the previous scan was code A, but the user does not scan code B when going to place B and directly opens it through App Library or Siri Suggestions, the code I get is still code A, so the result I want is that I want to know where it was opened from, and then if it is opened quickly, I will clear the URL and remind the user to scan the code again. Or if it is opened by quick opening, do not include the URL
0
0
39
May ’25
App transferred but app Bundle Id not transferred
When we initiated the app transfer, we were eligible for app transfer and it was transferred as well. But App's bundle identifiers are not transferred yet which is blocking to push new updates. We contacted various time to apple, but we get similar responses. What may be the exact reason that is blocking to transfer the app bundle identifiers. However, app has already been transferred and active from recipient developer account.
0
0
126
May ’25
cross device locale appname search
Hello Developers, On ios device i recently installed Teams, Instagram and facebook apps.When i change the device language/locale appname remains same i.e in english. All three apps i m able to search with it japanese translation like Teams ->チーム, Instagram->インスタグラム, Facebook ->フェイスブック when device locale in english or japanese.How can i achieve this?.Any suggestion up will be helpful.
0
0
72
May ’25
After an Apple Developer Enterprise Program account expires, can certificates and provisioning profiles still work if they are within their valid period? Do apps continue working for up to 90 days?
After an Apple Developer Enterprise Program account expires, can certificates and provisioning profiles still work if they are within their valid period? Do apps continue working for up to 90 days? How long can it be extended at most after expiration? Others: https://developer.apple.com/forums/thread/706214 https://developer.apple.com/forums/thread/711254
0
1
161
May ’25
Apple Developer Program Renewal Issue
Dear Apple, I had successfully renew my membership with bellow email "Your Apple Developer Program membership has been renewed for another year and your membership details are below. We look forward to the innovative new apps you'll bring to Apple platforms." A few days later, I got another email After several attempts, we're unable to collect payment using the payment method you provided to renew your Apple Developer Program membership. Your access to the Apple Developer Program has been disabled. At https://developer.apple.com/account, It displays a button with "Enroll today" instead of "Renew membership". Clicking it show below error "Your Apple Account is already associated with the Account Holder of a membership." I've tried getting support from https://developer.apple.com/contact/topic/SC1101/subtopic/30007/solution/select, but no reply after a few days. PLEASE HELPPPPP, we need this urgently
1
0
139
May ’25
Background process not working in TestFlight
Hi everyone, I recently built an iOS application that fetches the healthkit data with the BGProcessingTask. It is working as expected in the debug with the physical device connected but its not working in Testflight. I printed out the logs but they don't show that the background process's running. Here is my code snippet. func registerBackgroundTask() { BGTaskScheduler.shared.register(forTaskWithIdentifier: taskIdentifier, using: nil) { task in LogManager.shared.addBackgroundProcessLog("registering the background task...") print("registering the background task...") self.handleBackgroundTask(task: task as! BGProcessingTask) } } func scheduleBackgroundHealthKitSync() { print("scheduling background task...") LogManager.shared.addBackgroundProcessLog("scheduling background task...") let request = BGProcessingTaskRequest(identifier: taskIdentifier) request.earliestBeginDate = Date(timeIntervalSinceNow: 60 * 1) request.requiresNetworkConnectivity = true request.requiresExternalPower = false do { try BGTaskScheduler.shared.submit(request) print("BGProcessingTask scheduled") LogManager.shared.addBackgroundProcessLog("BGProcessingTask scheduled") } catch { print("Failed to schedule task: \(error)") LogManager.shared.addBackgroundProcessLog("Failed to schedule task: \(error)", isError: true) print(LogManager.shared.backgroundProcessLogs) } } func handleBackgroundTask(task: BGProcessingTask) { LogManager.shared.addBackgroundProcessLog("handleBackgroundTask triggered") print("handleBackgroundTask triggered") let dispatchGroup = DispatchGroup() dispatchGroup.enter() // Reschedule the background sync for the next time scheduleBackgroundHealthKitSync() var taskCancelled = false // Handling expiration task.expirationHandler = { taskCancelled = true LogManager.shared.addBackgroundProcessLog("Background task expired", isError: true) print("Background task expired") dispatchGroup.leave() } let healthKitManager = HealthKitManager.shared // Start the background sync operation healthKitManager.fetchAndSendAllTypes() { success in if success { LogManager.shared.addBackgroundProcessLog("HealthKit sync completed successfully") print("HealthKit sync completed successfully") } else { LogManager.shared.addBackgroundProcessLog("HealthKit sync failed", isError: true) print("HealthKit sync failed") } dispatchGroup.leave() } // Notify when all tasks are completed dispatchGroup.notify(queue: .main) { // Check if the task was cancelled using your own flag or state if taskCancelled { task.setTaskCompleted(success: false) // Fail the task if it was cancelled } else { task.setTaskCompleted(success: true) // Complete successfully if not cancelled } LogManager.shared.addBackgroundProcessLog("Background task ended with status: \(taskCancelled == false)") print("Background task completed with success: \(taskCancelled == false)") // Logs success or failure } } Here are the logs from my device. scheduling background task... BGProcessingTask scheduled
1
0
152
May ’25
Upload Symbols Failed when Archiving with Xcode 16
Hello everyone, We are seeing some warnings in Xcode 16 when I archive my iOS app for distribution. During the upload phase (either via Xcode Organizer ), I get an error like: WARNING: Upload Symbols Failed The archive did not include a dSYM for MyFramework.framework with the UUIDs: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX Ensure that the archive’s dSYM folder includes a DWARF file for MyFramework.framework with the expected UUIDs. Question: How can these warnings be fixed? Is this warning safe to ignore if I know the vendor does not supply a dSYM for their framework? If I do need a proper dSYM for full symbolication, how should I request it from the vendor or generate it myself from an XCFramework?
0
3
482
May ’25
Error recording of CPU Profiler in CLI: [Error] Failed to start the recording: Failed to force all hardware CPU counters: 13.
Context I created a short script to CPU profile a program from the command line. I am able to record via the Instruments app, but when I try from the command line I get the following error shown below. This example is just profiling the grep command. Error: % cpu_profile /usr/bin/grep \ --recursive "Brendan Gregg" \ "$(xcode-select --print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" Profiling /usr/bin/grep into /tmp/cpu_profile_grep.trace Starting recording with the CPU Profiler template. Launching process: grep. Ctrl-C to stop the recording Run issues were detected (trace is still ready to be viewed): * [Error] Failed to start the recording: Failed to force all hardware CPU counters: 13. Recording failed with errors. Saving output file... Script: #!/bin/sh set -o errexit set -o nounset if [ "$#" -lt 1 ] then echo "Usage $0 <program> [arguments...]" 1>&2 exit 1 fi PROGRAM="$(realpath "$1")" shift OUTPUT="/tmp/cpu_profile_$(basename "$PROGRAM").trace" echo "Profiling $PROGRAM into $OUTPUT" 1>&2 # Delete potential previous traces rm -rf "$OUTPUT" xcrun xctrace record \ --template 'CPU Profiler' \ --no-prompt \ --output "$OUTPUT" \ --target-stdout - \ --launch -- "$PROGRAM" "$@" open "$OUTPUT" I think the error has to do with xctrace based on this post, but according to this post it should have been resolved in MacOS version 15.4. System Chip: Apple M3 Pro macOS: Sequoia 15.4.1 xctrace version: 16.0 (16E140) xcrun version: 70. Xcode version: 16.3 (16E140) Working Screenshots from Instruments App:
2
0
488
May ’25
App archive only show custom distribution method
I want to archive app, but can't choost appstore or other release method.
Replies
1
Boosts
0
Views
226
Activity
May ’25
Cannot Create Identifiers – “+” Button Missing on Identifiers Page
I'm currently unable to create new identifiers in the Apple Developer portal at this URL: https://developer.apple.com/account/resources/identifiers/list The “+” button that should appear to create a new identifier is missing entirely from the page. What’s odd is that another team member (with the same access level and role under the same team) can see and use the button without any issues. So this doesn't appear to be a permissions-related problem. I’ve already tried: Logging out and back in Clearing browser cache Using different browsers (Safari, Chrome) Using Incognito/Private mode Still no luck. Has anyone encountered this before or knows how to resolve it? Thanks in advance.
Replies
0
Boosts
0
Views
147
Activity
May ’25
Apple developer program membership issue
Hi, I paid to renew my membership and I received an order confirmation email. But when i go to my account it says it is still expired - so what did i pay for then? I've emailed Apple developer support and they just sent me a generic bot/copy and paste email telling me i need to renew my account. Everyone i speak to tells me to click a link and it just leads to an email option, i email them, then i get an unhelpful email, then the cycle repeats. It's like: Me: "Hey Apple, i've just paid to renew my account and you're not giving me what i paid for". Apple: "Just renew your account". Me: "....yeah but that's the issue" Apple: "click this link to send an email and start the infinite useless cycle all over again". I have also called apple multiple times and spoke with three people and they are not able to help. I spoke with one of the people's managers and i explained to him that i've stuck in this infinite loop where nothing gets resolved and he sent me a link which just. lead. to. the. same. email. option! I then explained that this is like a dystopian sci-fi movie where this faceless mega-corp (Apple) has taken my money for a service and not given me that service (false advertising / crime). He said he can't help. Then you know what he said? ................... ........ ..... .. "post on the forum". So Apple takes my money and doesn't give me the service they advertised to me then says they can't help me and that i have to ask in the forum. I said "so basically you're advising me that non-apple employees are better suited to help me than Apple employees, lol". What should i do here?? I have a had a team of developers stop working for weeks and this has brought my app development plan to a halt, costing me money.
Replies
0
Boosts
0
Views
131
Activity
May ’25
Xcode cannot find any frameworks
I am new to Xcode and trying to learn how to use Metal for my internship. I am trying to link the binaries of Foundation.framework, Metal.framework, and Quartcore.framework. But whenever I try to build it always fails to find any of them. I have my Header Search Path as $(PROJECT_DIR)/metal-cpp, I tried adding some for the Frameworks but that did not work either. I do have the binaries linked in the Build Phases, so I don't know what else I could be missing.
Replies
2
Boosts
0
Views
124
Activity
May ’25
Apple developer account is showing in review
we have created an apple developer account on 30th April'2025 but still now it shows your application is in review
Replies
0
Boosts
0
Views
116
Activity
May ’25
Gnu Fortran and Mac OS Sequoia
I observed the following problem: A scientific code to perform Reverse Monte Carlo simulations (‘rmcxas’) compiled with the most up to date version of gcc/gfortran and Xcode including command line tools on Mac OS Sequoia 15.4 on a Macbook air with M4 processor generates the following problem upon starting it in a terminal: dyld[10154]: dyld cache '(null)' not loaded: syscall to map cache into shared region failed dyld[10154]: Library not loaded: /usr/lib/libSystem.B.dylib Referenced from: <0144F82E-003C-37A9-A544-9AE6336E549B> /Users/markuswinterer/bin/rmcxas Reason: tried: '/usr/lib/libSystem.B.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/libSystem.B.dylib' (no such file), '/usr/lib/libSystem.B.dylib' (no such file, no dyld cache), '/usr/local/lib/libSystem.B.dylib' (no such file) zsh: abort rmcxas This occurs only about every 5th time the code is started. Help would be highly appreciated.
Replies
2
Boosts
0
Views
168
Activity
May ’25
Xcode Not Displaying Code Coverage for Main App When Using Test Plan on iOS Simulator
I am encountering an issue where code coverage data is not showing for my main app in Xcode when running tests for the iOS simulator. However, code coverage is being reported correctly for some modules. Enable Code Coverage Support: YES Xcode 16.2 macOS: 15.3.1 Macbook Pro M1 14-inch, 2021 Despite these configurations, Xcode fails to show code coverage for the main app. Can anyone suggest what might be causing this issue and how to ensure code coverage is correctly reported for the main app during simulator builds?
Replies
1
Boosts
0
Views
232
Activity
May ’25
Xcode Cloud: A scheme named "x" does not exist in x.xcodeproj
I have checked that my scheme is shared and I do in fact have the scheme in my xcode project. But whenever I try to run Xcode cloud, it fails with the message that "A scheme named 'MyAppScheme' does not exist in MyAppProject.xcodeproj" Any tips on what I could be doing wrong?
Replies
5
Boosts
1
Views
2.4k
Activity
May ’25
Apple Developer Forums post is not published
■Confirmation My post on the Apple Developer Forums is not published even though it have been reviewed. Does any work need to be done at the time of submission or after review in order to be published? ■Background of the question I posted one on the Apple Developer Forums yesterday. Immediately after posting, a message saying "It will be published if it passes the review" was displayed on the screen. This morning, that message disappeared, so I thought the post had been published, but my post was not displayed on the post list screen. I tried searching for the post title, but it doesn't appear for a while.
Replies
5
Boosts
0
Views
1.4k
Activity
May ’25
I can't access apple developer accounting with password
"Failed to verify your identity. Try again." I only see this text. I have the correct apple account and password and I have made the payment. I can't log in with my password, why? Question 1: What should I do to log in with my password? Question 2: What is the error?
Replies
0
Boosts
0
Views
107
Activity
May ’25
App Clip cannot determine the source of the opening
Our business is to scan the code to open App Clip, but then App Clip will appear in App Library and Siri Suggestions. This can be opened quickly, but the URL of the last scan will be included. This will cause a problem, for example: if the previous scan was code A, but the user does not scan code B when going to place B and directly opens it through App Library or Siri Suggestions, the code I get is still code A, so the result I want is that I want to know where it was opened from, and then if it is opened quickly, I will clear the URL and remind the user to scan the code again. Or if it is opened by quick opening, do not include the URL
Replies
0
Boosts
0
Views
39
Activity
May ’25
App transferred but app Bundle Id not transferred
When we initiated the app transfer, we were eligible for app transfer and it was transferred as well. But App's bundle identifiers are not transferred yet which is blocking to push new updates. We contacted various time to apple, but we get similar responses. What may be the exact reason that is blocking to transfer the app bundle identifiers. However, app has already been transferred and active from recipient developer account.
Replies
0
Boosts
0
Views
126
Activity
May ’25
cross device locale appname search
Hello Developers, On ios device i recently installed Teams, Instagram and facebook apps.When i change the device language/locale appname remains same i.e in english. All three apps i m able to search with it japanese translation like Teams ->チーム, Instagram->インスタグラム, Facebook ->フェイスブック when device locale in english or japanese.How can i achieve this?.Any suggestion up will be helpful.
Replies
0
Boosts
0
Views
72
Activity
May ’25
After an Apple Developer Enterprise Program account expires, can certificates and provisioning profiles still work if they are within their valid period? Do apps continue working for up to 90 days?
After an Apple Developer Enterprise Program account expires, can certificates and provisioning profiles still work if they are within their valid period? Do apps continue working for up to 90 days? How long can it be extended at most after expiration? Others: https://developer.apple.com/forums/thread/706214 https://developer.apple.com/forums/thread/711254
Replies
0
Boosts
1
Views
161
Activity
May ’25
Apple Developer Program Renewal Issue
Dear Apple, I had successfully renew my membership with bellow email "Your Apple Developer Program membership has been renewed for another year and your membership details are below. We look forward to the innovative new apps you'll bring to Apple platforms." A few days later, I got another email After several attempts, we're unable to collect payment using the payment method you provided to renew your Apple Developer Program membership. Your access to the Apple Developer Program has been disabled. At https://developer.apple.com/account, It displays a button with "Enroll today" instead of "Renew membership". Clicking it show below error "Your Apple Account is already associated with the Account Holder of a membership." I've tried getting support from https://developer.apple.com/contact/topic/SC1101/subtopic/30007/solution/select, but no reply after a few days. PLEASE HELPPPPP, we need this urgently
Replies
1
Boosts
0
Views
139
Activity
May ’25
Background process not working in TestFlight
Hi everyone, I recently built an iOS application that fetches the healthkit data with the BGProcessingTask. It is working as expected in the debug with the physical device connected but its not working in Testflight. I printed out the logs but they don't show that the background process's running. Here is my code snippet. func registerBackgroundTask() { BGTaskScheduler.shared.register(forTaskWithIdentifier: taskIdentifier, using: nil) { task in LogManager.shared.addBackgroundProcessLog("registering the background task...") print("registering the background task...") self.handleBackgroundTask(task: task as! BGProcessingTask) } } func scheduleBackgroundHealthKitSync() { print("scheduling background task...") LogManager.shared.addBackgroundProcessLog("scheduling background task...") let request = BGProcessingTaskRequest(identifier: taskIdentifier) request.earliestBeginDate = Date(timeIntervalSinceNow: 60 * 1) request.requiresNetworkConnectivity = true request.requiresExternalPower = false do { try BGTaskScheduler.shared.submit(request) print("BGProcessingTask scheduled") LogManager.shared.addBackgroundProcessLog("BGProcessingTask scheduled") } catch { print("Failed to schedule task: \(error)") LogManager.shared.addBackgroundProcessLog("Failed to schedule task: \(error)", isError: true) print(LogManager.shared.backgroundProcessLogs) } } func handleBackgroundTask(task: BGProcessingTask) { LogManager.shared.addBackgroundProcessLog("handleBackgroundTask triggered") print("handleBackgroundTask triggered") let dispatchGroup = DispatchGroup() dispatchGroup.enter() // Reschedule the background sync for the next time scheduleBackgroundHealthKitSync() var taskCancelled = false // Handling expiration task.expirationHandler = { taskCancelled = true LogManager.shared.addBackgroundProcessLog("Background task expired", isError: true) print("Background task expired") dispatchGroup.leave() } let healthKitManager = HealthKitManager.shared // Start the background sync operation healthKitManager.fetchAndSendAllTypes() { success in if success { LogManager.shared.addBackgroundProcessLog("HealthKit sync completed successfully") print("HealthKit sync completed successfully") } else { LogManager.shared.addBackgroundProcessLog("HealthKit sync failed", isError: true) print("HealthKit sync failed") } dispatchGroup.leave() } // Notify when all tasks are completed dispatchGroup.notify(queue: .main) { // Check if the task was cancelled using your own flag or state if taskCancelled { task.setTaskCompleted(success: false) // Fail the task if it was cancelled } else { task.setTaskCompleted(success: true) // Complete successfully if not cancelled } LogManager.shared.addBackgroundProcessLog("Background task ended with status: \(taskCancelled == false)") print("Background task completed with success: \(taskCancelled == false)") // Logs success or failure } } Here are the logs from my device. scheduling background task... BGProcessingTask scheduled
Replies
1
Boosts
0
Views
152
Activity
May ’25
Apple Pay does throwing an Error "Apple Pay is not available"
Is anyone face the similar kind of issue? We are using the react native : 0.74.1 react-native-apay react-native-payments
Replies
2
Boosts
0
Views
115
Activity
May ’25
why my Xcode organizer can not show Hangs
why my Xcode organizer can not show Hangs
Replies
1
Boosts
0
Views
248
Activity
May ’25
Upload Symbols Failed when Archiving with Xcode 16
Hello everyone, We are seeing some warnings in Xcode 16 when I archive my iOS app for distribution. During the upload phase (either via Xcode Organizer ), I get an error like: WARNING: Upload Symbols Failed The archive did not include a dSYM for MyFramework.framework with the UUIDs: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX Ensure that the archive’s dSYM folder includes a DWARF file for MyFramework.framework with the expected UUIDs. Question: How can these warnings be fixed? Is this warning safe to ignore if I know the vendor does not supply a dSYM for their framework? If I do need a proper dSYM for full symbolication, how should I request it from the vendor or generate it myself from an XCFramework?
Replies
0
Boosts
3
Views
482
Activity
May ’25
Error recording of CPU Profiler in CLI: [Error] Failed to start the recording: Failed to force all hardware CPU counters: 13.
Context I created a short script to CPU profile a program from the command line. I am able to record via the Instruments app, but when I try from the command line I get the following error shown below. This example is just profiling the grep command. Error: % cpu_profile /usr/bin/grep \ --recursive "Brendan Gregg" \ "$(xcode-select --print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" Profiling /usr/bin/grep into /tmp/cpu_profile_grep.trace Starting recording with the CPU Profiler template. Launching process: grep. Ctrl-C to stop the recording Run issues were detected (trace is still ready to be viewed): * [Error] Failed to start the recording: Failed to force all hardware CPU counters: 13. Recording failed with errors. Saving output file... Script: #!/bin/sh set -o errexit set -o nounset if [ "$#" -lt 1 ] then echo "Usage $0 <program> [arguments...]" 1>&2 exit 1 fi PROGRAM="$(realpath "$1")" shift OUTPUT="/tmp/cpu_profile_$(basename "$PROGRAM").trace" echo "Profiling $PROGRAM into $OUTPUT" 1>&2 # Delete potential previous traces rm -rf "$OUTPUT" xcrun xctrace record \ --template 'CPU Profiler' \ --no-prompt \ --output "$OUTPUT" \ --target-stdout - \ --launch -- "$PROGRAM" "$@" open "$OUTPUT" I think the error has to do with xctrace based on this post, but according to this post it should have been resolved in MacOS version 15.4. System Chip: Apple M3 Pro macOS: Sequoia 15.4.1 xctrace version: 16.0 (16E140) xcrun version: 70. Xcode version: 16.3 (16E140) Working Screenshots from Instruments App:
Replies
2
Boosts
0
Views
488
Activity
May ’25