Developer Tools

RSS for tag

Ask questions about the tools you can use to build apps.

Posts under Developer Tools tag

200 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

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
108
May ’25
Lost X Code Project for a Live Application
Hello, I currently have a live application in the iOS App Store that needs an update to start functioning again, but I've lost the source code in a hard drive failure. Is there a way to reverse engineer the currently deployed package that is live (and also a way to download it from App Store Connect)⁉️ The development change itself is just a very small change for an API route in the code itself. I could even direct an engineer at Apple to make the change in 5 minutes! Let me know if this is possible. Thanks❗️
1
0
54
Apr ’25
Xcode 16.3 C++ compiler makes binaries with corrupted memory.
I am creating an xcframework for a static library for iOS, but I am encountering a perplexing issue with Xcode 16.3. When I build an xcframework using C++ in one project and import it into another project, the application runs with corrupted memory. In the framework project, I use os_unfair_lock, but when attempting to lock, the app crashes due to a state error. This suggests that memory corruption is occurring. When the xcframework is built with Xcode 16.2, a proper binary is generated, and the app runs without any problems. Since I do not want to disclose the source code, I am trying to construct a minimal project that reproduces the issue, but so far I have not been successful. Fundamentally, I feel that the compiler in Xcode 16.3 cannot be trusted.
0
1
55
Apr ’25
AppStore response times for the store test environment to make purchases is very long.
Currently, over the xcode environment to do the testing of product subscriptions through appstore are working correctly using the storeKit. When deployed in testflight to do the testing over the integration environment, the store response times are being excessively high, in excess of 20 minutes. This behavior is not replicated on Xcode, and is happening on recent versions uploaded to testflight, as earlier versions that were already tested and are currently in production. In addition the communication between the appstore webhook and the BE is also failing in this environment. It is being blocked to generate any test to be able to launch to production.
1
0
168
Apr ’25
Game Center Authentication Crashing - Unity 6, Gamekit 3.0.2
When testing my development build for gamecenter authentication, the game crashes. I've breadcrumbed it to the "await GKLocalPlayer.Authenticate();" call. Can't find any documentation on this issue and have been looking through the forums! I've already done all of the usual stuff like verifying bundle identifiers match, ensuring game center is enabled for the app, setting up app store connect, using a sandbox account, etc... Please point me to some resources if you know any. Any help is appreciated, I'm starting to lose hope here!
2
0
74
Apr ’25
NSUbiquitousContainers
I'm using Xcode 16.3 and I want to add the key "NSUbiquitousContainers" but I cannot do it in the Entitlements file, it should be in info.plist file! I have done it before but in previous versions of Xcode when the info.plist was in the project navigator. However, now I cannot find the file and I did not find any way to create it! Please guide me in detail how to proceed (I'm not new to Swift or SwiftUI but not familiar to project settings)?
1
0
50
Apr ’25
The UDID of my iphone is not linked to the App Certificates, Identifiers & Profiles (Devices)
Hello, I need to registrer the UDID of the Iphones used by the company in the "Certificates, Identifiers & Profiles" Devices of the app dev. One of them is well added but I can't install my app test on the device. Msg " Cette App ne peut pas être installé car son intégrité n’a pas pu être vérifiée". Usually, we have this message when the UDID is not in the "Certificates, Identifiers & Profiles" Devices's list. Could you please help me to fixe this issue ? Best regards
1
0
31
Apr ’25
Urgent help!! Apple developer account still not approved
I have been waiting almost 2 months for my Apple developer account to be approved. I am unable to reach Apple even though I have submitted a ticket and made phone calls and requested to escalate. I have an event at the end of next week so I need the account approved so that I can upload the app. Can someone help? I am really desperate. Im based in Saudi Arabia And have provided all the requested documents from Apple.
0
0
48
Apr ’25
Xcode 16.3 Problems
Hi, This problem had gone away with the previous version, but its back with 16.3. When I first go into Xcode, it normally shows me a list of previous projects. This seems to work some of the time, and not others. When it doesn't, I Quit Xcode, go back in, then the list appears again. I also noticed each time I quit Xcode, I get the "beach ball icon" for 5-7 seconds and then it exits most of the time. When it doesn't, I have to issue a killall Xcode in the Terminal. I have a brand new Mac mini M4, 24GB RAM, 2 TB SSDD. Is anyone else having these issues? Thank you, Dan Uff
1
0
138
Apr ’25
Charts - Exclude dates on x-axis
Hi! I'm building an app that uses Swift Charts to visualize stock market data, and I'm encountering a couple of issues. The stock API I’m using provides data only for the trading days when the market is open. The problem is that I need to skip over the missing dates (non-trading days) in the chart, but still keep the x-axis formatted correctly (e.g., group ticks by month). If I convert the dates to String to handle missing data, I lose the correct x-axis formatting, and the date labels become inaccurate among with its data. Here’s som of the code I’m using for parsing the dates and structuring the data: struct StockDataPoint: Identifiable, Decodable { var id: String { datetime } let datetime: String let close: String var date: Date { datetime.toDate() ?? Date() } var closePrice: Double { Double(close) ?? 0.0 } } extension String { func toDate() -> Date? { let formatter = DateFormatter() formatter.locale = Locale(identifier: "en_US_POSIX") formatter.timeZone = TimeZone(abbreviation: "UTC") formatter.dateFormat = self.count == 10 ? "yyyy-MM-dd" : "yyyy-MM-dd HH:mm:ss" return formatter.date(from: self) } } And: LineMark( x: .value("Datum", point.date), y: .value("Pris", point.closePrice) ) .interpolationMethod(.cardinal) .lineStyle(StrokeStyle(lineWidth: 0.7)) .foregroundStyle(.linearGradient(colors: [.blue, .yellow, .orange], startPoint: .bottomTrailing, endPoint: .topLeading)) .frame(height: 300) .background(Color.black.opacity(0.6)) .chartYScale( domain: ( (stockAPI.stockData.map { $0.closePrice }.min() ?? 0) * 0.98 ... (stockAPI.stockData.map { $0.closePrice }.max() ?? 100) * 1.02 ) ) .chartXAxis { AxisMarks(values: .automatic(desiredCount: 5)) { value in AxisGridLine().foregroundStyle(Color.gray.opacity(0.5)) AxisTick().foregroundStyle(Color.gray) AxisValueLabel().foregroundStyle(Color.gray) } } .chartYAxis { AxisMarks(values: .automatic(desiredCount: 5)) { value in AxisGridLine().foregroundStyle(Color.gray.opacity(0.5)) AxisTick().foregroundStyle(Color.gray) AxisValueLabel().foregroundStyle(Color.gray) } } What I need help with: Skipping missing dates on the x-axis and show correct data for corresponding days. Keeping the x-axis well formatted (grouped by month, accurate labels). Thanks in advance for any suggestions!
2
0
69
3w
Legal Entity is different from domain name
Hello everyone We are going to enroll apple developer program as organization, we have duns. But in Duns information Legal Entity name is different from our work email due to our company has product called plastherm and LLC name is different. Is this ok, or will make some problems while enrolling? Legal Entity: METIN IRODA, MAS ULIYATI CHEKLANGAN JAMIYATI domain(website and work email): plastherm.uz
1
0
36
Apr ’25
xcode can't find c++ headers
I'm currently working on my own renderer program using c++. Everything was fine until I update the MacOS to 15.4. I keep receiving these errors: "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/c++/v1/cerrno:30:5 tried including <errno.h> but didn't find libc++'s <errno.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case." It says I have problem with finding <errno.h> while including . After searching for solutions, I check the related xcode path, xcode-select -p shows : "/Applications/Xcode.app/Contents/Developer", seems fine. And I can actually see the errno.h file in the folder "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/errno.h" I tried to use CommandLineTool's SDKs by sudo xcode-select -s /Library/Developer/CommandLineTools but not working. The error Information says: This usually means that your header search paths are not configured properly.The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case. Additionally, after running xcodebuild -showsdks, it shows two identical macosx sdks "macos 15.4". Could this be a hint? I also have tried reinstall xcode, not working. I've just created a simple project including and running std::cout << errno, it worked fine. So I tried to run it in my renderer program by cutting all the compile sources except "main.cpp", it still get the errors. What have changed? How do I set things right?
2
0
86
Apr ’25
Apple SDKs should provide libunwind_ext.h on macOS
(Copy pasted from FB17261080 that I submitted) Hi: Apple's SDK (libSystem.B.tbd) provides definition for multiple symbols(__unw_add_dynamic_fde / __unw_add_find_dynamic_unwind_sections ), but doesn't provide corresponding headers, available in LLVM upstream as libunwind_ext.h We need such headers to write Exception-Enabled JIT Framework for macOS
1
0
128
May ’25
C++ Binary Size Increase in Xcode 16 Compared to Xcode 15
I've recently upgraded my project from Xcode 15 to Xcode 16. Without changing any build settings or compiler flags, I noticed that the final executable size has increased significantly when building the same C++ code. Investigation: To investigate further, I compared the Link Map outputs from both versions of Xcode. One key difference I found: The symbol size for std::sort increased from 4,336 bytes (Xcode 15) to 6,084 bytes (Xcode 16) – a ~40% increase. This seems to be part of a broader trend where other standard library symbols are also taking up more space in the binary when built with Xcode 16. Questions: Has Apple Clang or libc++ in Xcode 16 changed the implementation of STL algorithms like std::sort? Are there changes in inlining, template instantiation, or debug info that could explain the increase? Is this expected behavior? If so, is there any guidance on minimizing the binary size regression?
0
0
67
Apr ’25
I paid for the Apple Developer Program enrollment, but it still hasn't been confirmed. I've been waiting for almost two weeks..
My name is Batsaikhan Uugantsetseg, and I recently paid $99 for Apple Developer Program enrollment. However, I have not yet been approved. After submitting my application, I uploaded my Mongolian citizen ID for verification. Later, I received an email from Apple Developer Support (Asia) informing me that the ID was not accepted because it is not written in English. They suggested that I submit my driver's license instead. Following that advice, I uploaded my driver license, and I received a confirmation from Apple Support that the document was received. However, I still haven’t received any further updates, and my enrollment is pending. This delay is becoming critical. Initial Case ID: 102566848930
0
1
46
Apr ’25
The adventure to become a developer
I think from January 2025 I'm trying to become a developer for apple. The process was an adventure. First time I used the website to become a registered developer. All good until i wasn't able to make any inputs in a disabled required field that was required but empty. I said ok, I'll try to use their support to guide me. After couple of mails I've understood that those answers were like: "sorry for inconvenience but try again maybe you didn't do something as expected". I've restarted the process many times and did tried, nothing worked. So... go back to email with support (note, there is no quick reply, sometimes it takes near a week or so to respond: and the response is "try again, sorry to hear that, let us know if we can help you") After a month or so i got an email that told me to use the application to enroll. So I decided to use it. So I've canceled my active enroll and moved to the device. My iPad Pro didn't worked, so I moved to MacBook Pro and tried from there with the Developer App. Didn't work.... Go back to email support. After a while they told me that is an issue with my card and they can't get my money from it, (is the same that I'm using on their store to buy app and it works without any issue). After another months spent on emails (copule because of their response timing, maximum 2 reply each week) and after I said I'll do my best to find someone from their management to let them know the nightmare that I'm forced to live with the support team, they said let me call you. They called me and their tool for remote view desktop didn't worked so it was like, do this, do that, I did, I did, I tried...ok let's try one more time and don't touch anything after. I did what they said and they told me that I'll be contacted soon. 2-3 days I waited for the call and...nothing... I did sent reply email support to understand the status of enrollment. I got this: " Thanks for your message. I will be happy to provide a status update. Your orders have not been successful. I am trying once again today. Since it is Friday, it will take a little longer to process. I will check on it again on Monday, when we are back in the office. Kind regards, " And today is Tuesday and nothing... I did asked also if you can't take my money just let me know the error that you receive so I'll be able to contact card issuer and ask to verify if that is an issue with it. I did asked and they told me they don't see any issue. Now I'm stuck,,,, Do I need to contact Tim just to open a developer account? I think he's busy with more important stuff. @support
0
0
60
Apr ’25
I made a browser plugin to do something Apple should've done themselves.
This browser extension is a doc reading enhancer for the Apple Developer website. It supports i18n translation, hover link previews, and bilingual display. Currently, it supports four languages: ja-JP, ko-KR, zh-CN, and zh-TW. It works with Swift/SwiftUI/Foundation modules now, and it's expected to support Swift Test, Swift Charts, UIKit, Swift Playground, and XCode modules by the end of this month. For more info, check out: https://appledocs.dev. You can also visit https://appledocs.dev/progress to see translation progress and vote. Note: It's only works on Chrome、Edge(In review)、Firefox(In review) Screenshot:
1
0
78
Apr ’25