This example fails to compile on Sequoia 15.4 with Xcode 16.3 and the command line tools installed;
jacquesmenu@macstudio:C++Tests > cat pcount_test.cpp
// clang++ -std=c++17 -o IntWrapperTest IntWrapperTest.cpp
#include // std::string
#include // std::cout
#include // std::ostringstream
int main1 (int argc, char* argv[])
{
std::string theString = "Prière d'éviter";
std::cout << theString << ", size(): " << theString.size () << std::endl;
std::stringstream oss;
oss << theString << std::endl;
std::cout << oss.str () << ", pcount(): " << oss.pcount () << std::endl;
}
//_______________________________________________________________________________
// position in output stream
#include // std::ofstream
int main () {
std::ofstream outfile;
outfile.open ("test.txt");
outfile.write ("This is an apple",16);
long pos = outfile.tellp();
outfile.seekp (pos-7);
outfile.write (" sam",4);
outfile.close();
return 0;
}
jacquesmenu@macstudio:C++Tests > clang++ pcount_test.cpp
pcount_test.cpp:3:10: fatal error: 'string' file not found
3 | #include // std::string
| ^~~~~~~~
1 error generated.
The same occurs with iostrem if it is the first include mentioned.
Compiling in Xcode itself does not this problem, though.
This include is to be found here:
jacquesmenu@macstudio:C++Tests > xcode-select -p
/Applications/Xcode.app/Contents/Developer
jacquesmenu@macstudio:C++Tests > ls -sal /Applications/Xcode.app/Contents/Developer/**/string | grep MacOSX
72 -rw-r--r-- 10 root wheel 203802 Mar 8 06:17 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string
General
RSS for tagDive into the vast array of tools and services available to developers.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi, I have an iOS project with the following app targets:
main iOS application
a notification service extension
5 static libs containing some swift files with public methods
1 dynamic framework with above static libs as dependencies.
The framework only contains 2 files - a default .h file and 1 .exp file. This exports file contains mangled-names of all the public methods that are exposed by the 5 static libs present as framework's dependencies. I obtained these symbols using the nm command for each static lib.
The main iOS app target has 2 dependencies - the framework and the notification extension.
The notification extension only depends on the framework.
This setup works perfectly fine. I wanted to understand:
If using the exports file is the only way to make this setup work?
If not, what else can I do?
What way does Apple recommend?
According to my requirements, I only need at-most 2-3 functions to be exposed by the framework - thus using a exports file just for that seems to bug me.
Thank you.
Hello,
I recently enrolled in the Apple Developer Program and created an App ID with the bundle ID com.echo.eyes.voice.
I am trying to enable Speech Recognition in the App ID capabilities list, but the option does not appear — even after waiting over a week since my membership was activated.
I’ve already:
Confirmed my Apple Developer account is active
Checked the Identifiers section in the Developer portal
Tried editing the App ID, but Speech Recognition is not listed
Contacted both Developer Support and Developer Technical Support (Case #102594089120), but was told to post here for help
My app uses Capacitor + the @capacitor-community/speech-recognition plugin. I need the com.apple.developer.speech-recognition entitlement to appear so I can use native voice input in iOS.
I would really appreciate help from an Apple engineer or anyone who has faced this issue.
Thank you,
— Daniel Colyer
Hi, anyone managed to make this work? https://developer.apple.com/documentation/backgroundassets
Trying for past few days and can't make it work. Following their official documentation, also this video https://www.youtube.com/watch?v=M3jpgZrB1uo, but it seems I am stuck at:
try await AssetPackManager.shared.ensureLocalAvailability(of: assetPack)
What I did:
Manifest files created, info.plist configured, asset pack created and uploaded to appstoreconnect via transporter, successfully assigned to app and ready for internal testing. Added to my code:
let assetPack = try await AssetPackManager.shared.assetPack(withID: "Tutorial")
try await AssetPackManager.shared.ensureLocalAvailability(of: assetPack)
let videoData = try AssetPackManager.shared.contents(at: "Videos/Introduction.m4v")
but no luck at all....
is anywhere any demo project available to download to compare with my project?
Calling dlopen then dlclose causes an increase in the amount of memory used by the program. If I create a loop that calls dlopen / dlclose repeatedly on the same dynamic library, memory usage increases continuously. Is this a bug, or am I using dlopen / dlclose incorrectly?
I can reproduce this by modifying the sample code in the Apple Developer docs Creating Dynamic Libraries. If I modify Runtime.c, changing the line void *lib_handle = dlopen(lib_name, RTLD_NOW); to add the infinite loop, as below:
void *lib_handle = dlopen(lib_name, RTLD_NOW);
for (int ii = 0; ; ++ii) {
printf("loop %i\n", ii);
int close_err = dlclose(lib_handle);
printf("close error: %i\n", close_err);
printf("dlopen(%s, RTLD_NOW)\n", lib_name);
lib_handle = dlopen(lib_name, RTLD_NOW);
}
then opening and closing the dynamic library will succeed, but memory usage (as reported by top) will rapidly increase.
I'm running on x86_64 macOS 13.6.6. Full code for the modified Runtime.c is attached, the rest of the code is available in the Apple Developer docs.
Any suggestions?
Many thanks,
Chris
Runtime.c
hello developers,
First priority I couldn't find a proper title for the question :(
The reason why I open a topic here is not to find the answer by direct point shooting; My goal is what do Apple, Developer, Companies and Devops teams think and comments about the subject I'm going to ask here?
We use Jenkins as the Devops CI/CD tool at our company, and in Macos/Apple/iOS development, we use a lot of Mac Mini devices. Since we build/compilers on a project-based, version-based basis, we cannot get 100% efficiency from our devices. (For example, because the dependencies of a project are different from other projects; we dedicate only 1 Mac Mini to that project. (As the dependecys of the projects are too many and large, the migration process is very difficult for us, the cost of moving to a lower-level Mac Mini device is high / but this is just an example))
While researching, I saw that there is no docker container image for MacOs X (enterprise or legal) and I know about the Apple EULA. (For virtualization, Apple hardware must be used as a basis. Because the MacOs system is paid for on a device-based basis.)
What I want to ask here is can I find or create a MacOs docker container image legally?
How is the structure of other companies in their CI processes?
If I install MacOs with more than one VMware/VirtualBox on Mac Mini, What harm could it do me in Jenkins? (I'm curious about people's comments on this.)
Topic:
Developer Tools & Services
SubTopic:
General
Tags:
Enterprise
Continuous Integration
Virtualization
I developed (with AI help) using Xcode an app for myself. It logged certain places visited on a list, with photos and notes. It worked, but after a few days my iPhone can't launch it. What do I have to do to get this to last?
I didn't think I needed to pay as this is purely for me.
Good day everyone.
I have a react native app which works on dev mode on my device - Iphone 13 pro version: 18.5, but when deployed to TestFlight and installed on same device it crashes when ever I click on any TextInput. I downloaded the crash file but finding it difficult to pinpoint the problem.
I want to know what the problem is, if it's related to an installed package or code base or any other.
Any help will be appreciated!!!
Thanks.
crashlog.crash
Visual Studio 2022 is attempting to use port 11000 instead of 62078, but the port on iOS 18.5 is not listening for VS's Hot Reloading. Is this allowable? If so, how?
We are looking for a platform or portal provided by Apple that allows us to track crashes, hangs, or other runtime issues faced by users while using our iOS/macOS application. This is similar to how we currently use Windows Error Reporting (WER) for our Windows application.
Important note: Our application is not distributed via the Apple App Store — it is delivered through enterprise distribution or ad-hoc provisioning.
Topic:
Developer Tools & Services
SubTopic:
General
Tags:
MetricKit
App Store
Custom Apps
Enterprise
Is anyone seeing flaky results when using parameterized test with pairs of (input, result) data?
I have several (5) tests for a given method. I create a zip sequence by zip([in1, in2, in3, in4, in5],[out1, out2, out3, out4, out5])
Sometimes, the test only runs 4 of the tests and fails to report a failure even though I deliberately place data that should cause a failure.
Sometimes, even though I only select one test to run, the test explorer goes crazy into a loop and I have to clear test results to get it to stop. Following a suggestion, I disabled running tests in parallel.
Xcode 16.2 / OSX 14.7 (Sonoma) / Mac mini M2 Pro
My application always crashes at the same position when I open it on my iPad Air. It doesn't crash in debug mode which makes it very difficult for me to find the issue.
My crash report from TestFlight:
Exception Subtype: KERN_INVALID_ADDRESS at 0x000000016d5f26f0
Exception Codes: 0x0000000000000001, 0x000000016d5f26f0
VM Region Info: 0x16d5f26f0 is not in any region. Bytes after previous region: 546219761 Bytes before following region: 399632
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
MALLOC_LARGE 14c000000-14cd08000 [ 13.0M] rw-/rwx SM=PRV
---> GAP OF 0x2094c000 BYTES
Stack Guard 16d654000-16d658000 [ 16K] ---/rwx SM=NUL
Termination Reason: SIGNAL 4 Illegal instruction: 4
Terminating Process: ProjectiOS [745]
Triggered by Thread: 0
Thread 0 name:
Thread 0 name:
Thread 0 Crashed:
0 ProjectiOS 0x0000000107abf3b4 0x1026ac000 + 88159156
1 ProjectiOS 0x000000010e7d3be4 0x1026ac000 + 202537956
2 ProjectiOS 0x000000010e96c45c 0x1026ac000 + 204211292
3 ProjectiOS 0x000000010e96cadc 0x1026ac000 + 204212956
4 ProjectiOS 0x000000010e7d7ba4 0x1026ac000 + 202554276
5 ProjectiOS 0x00000001079cccc0 0x1026ac000 + 87166144
6 ProjectiOS 0x000000010945f33c 0x1026ac000 + 115028796
7 ProjectiOS 0x000000010945b648 0x1026ac000 + 115013192
8 ProjectiOS 0x0000000109458510 0x1026ac000 + 115000592
9 ProjectiOS 0x0000000107530430 0x1026ac000 + 82330672
10 ProjectiOS 0x0000000109459290 0x1026ac000 + 115004048
11 ProjectiOS 0x0000000109457584 0x1026ac000 + 114996612
12 ProjectiOS 0x00000001094b961c 0x1026ac000 + 115398172
13 ProjectiOS 0x00000001094bb8a0 0x1026ac000 + 115407008
14 ProjectiOS 0x00000001094c0340 0x1026ac000 + 115426112
15 ProjectiOS 0x000000010971e698 0x1026ac000 + 117909144
16 ProjectiOS 0x000000011104f7a4 0x1026ac000 + 244987812
17 QuartzCore 0x00000001879f4548 CA::Display::DisplayLinkItem::dispatch_(CA::SignPost::Interval<(CA::SignPost::CAEventCode)835322056>&) + 64 (CADisplay.mm:6671)
18 QuartzCore 0x00000001879d1c64 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 880 (CADisplay.mm:5794)
19 QuartzCore 0x00000001879e5394 CA::Display::DisplayLink::dispatch_deferred_display_links(unsigned int) + 360 (CADisplay.mm:4886)
20 UIKitCore 0x000000018c936afc _UIUpdateSequenceRunNext + 128 (_UIUpdateSequence.mm:189)
21 UIKitCore 0x000000018c935f8c schedulerStepScheduledMainSectionContinue + 60 (_UIUpdateScheduler.m:1197)
22 UpdateCycle 0x000000027364b560 UC::DriverCore::continueProcessing() + 84 (UCDriver.cc:288)
23 CoreFoundation 0x0000000186f8c4cc __CFMachPortPerform + 168 (CFMachPort.c:604)
24 CoreFoundation 0x0000000186fbc0b0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 60 (CFRunLoop.c:2045)
25 CoreFoundation 0x0000000186fbbfd8 __CFRunLoopDoSource1 + 508 (CFRunLoop.c:2184)
26 CoreFoundation 0x0000000186f93c1c __CFRunLoopRun + 2168 (CFRunLoop.c:3205)
27 CoreFoundation 0x0000000186f92a6c _CFRunLoopRunSpecificWithOptions + 532 (CFRunLoop.c:3462)
28 GraphicsServices 0x000000022790d498 GSEventRunModal + 120 (GSEvent.c:2049)
29 UIKitCore 0x000000018c956ba4 -[UIApplication _run] + 792 (UIApplication.m:3902)
30 UIKitCore 0x000000018c8ffa78 UIApplicationMain + 336 (UIApplication.m:5577)
31 ProjectiOS 0x0000000110d93700 0x1026ac000 + 242120448
32 ProjectiOS 0x00000001109068f0 0x1026ac000 + 237349104
33 ProjectiOS 0x000000010f5885d4 0x1026ac000 + 216909268
34 ProjectiOS 0x000000010f588908 0x1026ac000 + 216910088
35 ProjectiOS 0x0000000107cf95b8 0x1026ac000 + 90494392
36 ProjectiOS 0x000000010e85dce8 0x1026ac000 + 203103464
37 ProjectiOS 0x0000000110fadbd4 0x1026ac000 + 244325332
38 ProjectiOS 0x0000000110f48e64 0x1026ac000 + 243912292
39 ProjectiOS 0x0000000110f50004 0x1026ac000 + 243941380
40 ProjectiOS 0x0000000110fb54f4 0x1026ac000 + 244356340
41 ProjectiOS 0x0000000110de715c 0x1026ac000 + 242463068
42 ProjectiOS 0x000000011102e55c 0x1026ac000 + 244852060
43 dyld 0x0000000183faae28 start + 7116 (dyldMain.cpp:1477)
Then I symbolicated all the lines starting with "ProjectiOS" in my crash report but I cannot find the issue. Which lines in my crash report cause the crash?
Lines 0-16:
alcCaptureSamples (in ProjectiOS) + 202259184
alcCaptureSamples (in ProjectiOS) + 203932520
alcCaptureSamples (in ProjectiOS) + 203934184
alcCaptureSamples (in ProjectiOS) + 202275504
alcCaptureSamples (in ProjectiOS) + 86887372
alcCaptureSamples (in ProjectiOS) + 114750024
alcCaptureSamples (in ProjectiOS) + 114734420
alcCaptureSamples (in ProjectiOS) + 114721820
alcCaptureSamples (in ProjectiOS) + 82051900
alcCaptureSamples (in ProjectiOS) + 114725276
alcCaptureSamples (in ProjectiOS) + 114717840
alcCaptureSamples (in ProjectiOS) + 115119400
alcCaptureSamples (in ProjectiOS) + 115128236
alcCaptureSamples (in ProjectiOS) + 115147340
alcCaptureSamples (in ProjectiOS) + 117630372
BrotliEncoderHasMoreOutput (in ProjectiOS) + 2126968
Lines 31-42:
alcCaptureSamples (in ProjectiOS) + 237070332
alcCaptureSamples (in ProjectiOS) + 216630496
alcCaptureSamples (in ProjectiOS) + 216631316
alcCaptureSamples (in ProjectiOS) + 90215620
alcCaptureSamples (in ProjectiOS) + 202824692
BrotliEncoderHasMoreOutput (in ProjectiOS) + 1464488
BrotliEncoderHasMoreOutput (in ProjectiOS) + 1051448
BrotliEncoderHasMoreOutput (in ProjectiOS) + 1080536
BrotliEncoderHasMoreOutput (in ProjectiOS) + 1495496
xamarin_get_original_working_directory_path (in ProjectiOS) + 4032
BrotliEncoderHasMoreOutput (in ProjectiOS) + 1991216
Hello,
According to the official documentation, the macOS Virtualization Framework currently supports only macOS and Linux guest operating systems. I would like to know if there is any way—officially or through a supported workaround—to run Windows 11 as a guest using this framework.
Additionally, is there any indication or roadmap suggesting that support for Windows guests might be introduced in a future release, such as in macOS 16?
Any insights or official clarification would be greatly appreciated.
Thank you.
Hello Team!
Recently we cleaned up profiles and renewed certificates under developer account, noticing profile expiration date showing invalid, it supposed to show certificate expiration date. Due to this I am not able to update or download profiles. Any one experienced this this? what would be the solution?.
Thanks,
Kumar.
Topic:
Developer Tools & Services
SubTopic:
General
Hello, I'm not a developer. I have an app in the App Store and an Apple Developer account. I have two questions: 1. I'm trying to find out exactly where the source code of my app is located - I can't. It should be in Xcode. There is only Xcode cloud in my account, which is inactive. 2. I want to find out what programming language my app is written in. How do I do this?
Topic:
Developer Tools & Services
SubTopic:
General
Hi, my server in Melbourne Australia is getting weather forecasts from a few places around Australia. When I look at the daily timesteps that I get back, they might be something like this:
"days": [
{
"forecastStart": "2025-06-25T00:00:00Z",
"forecastEnd": "2025-06-26T00:00:00Z",
"daytimeForecast": {
"forecastStart": "2025-06-25T07:00:00Z",
"forecastEnd": "2025-06-25T19:00:00Z",
"overnightForecast": {
"forecastStart": "2025-06-25T19:00:00Z",
"forecastEnd": "2025-06-26T07:00:00Z",}
It doesn't matter where I ask for - Melbourne, Darwin, Perth, it always comes back the same.
The documentation says that daytimeForecast is 7 am to 7 pm local and overnightForecast is 7pm to 7 am local.
However, in a place like Perth 7-19Z is 3 pm to 3 am, not 7 pm to 7 am like advertised.
I can see that for any given date, there are 3 maximum temperature forecasts, a 24 hour max, a daytime max and an overnight max and they differ from each other.
Can anyone help me understand what's happening here?
And furthermore in the example above, the 24 hour forecasts that have, for example this:
"forecastStart": "2025-06-25T00:00:00Z" ... Can the 00:00:00Z be trusted literally? Or is it more the case that it's "2025-06-25" but the HMS got tacked on in a conversion?
"UITests recording reports 'The capability "Create Service Socket" is not supported by this device.' on M1 chip, but works normally on Intel chip."
Hello.
On my app I have the necessity to use mergeable libraries, in my context my libraries are indirect dependency, in other words the dependency isn’t target in my project, and they are XCFramework where they are imported on Framework, Libraries, and Embedded Content session on my app target.
Following the documentation on Configuring your project to use mergeable libraries it said.

But on Manually configure merging don’t said how to configure to indirect dependencies.

So I have tried configure use the linker flag -merge_framework for each XCFramework using -Wl, -merge_framework, {XCFramework_Name}, but I am receiving the following error unknown argument: -merge_framework’ when build the release.
In app target is set build settings MERGED_BINARY_TYPE = manual;
The question is:
Is possible using mergeable libraries in XCFramework dependencies ? How I do this? Because on the doc is not clear how to use in indirect dependency like XCFramework.
Regards
Michel Carvalho
Hi Guys,
I want to support my client for enable the developer mode, But they not accept to connect with any other devices(Mac Xcode) to enable developer mode.
They are nearly 10 people to enable developer mode. But I think without mac we can't enable developer mode in some of devices. So I need a clarification with IOS versions. That's only we are excepting to list out which IOS versions don't have developer mode option default. Please list out that IOS versions
Like below:
default developer mode available IOS 17.4.1
default developer mode not available IOS 17.5.1
% mkdir /tmp/test
% cd /tmp/test
% touch {a,b,c}{1,2,3,4,5,6}.txt
% lf
a1.txt a3.txt a5.txt b1.txt b3.txt b5.txt c1.txt c3.txt c5.txt
a2.txt a4.txt a6.txt b2.txt b4.txt b6.txt c2.txt c4.txt c6.txt
% echo [b-z]*.txt
a1.txt a2.txt a3.txt a4.txt a5.txt a6.txt b1.txt b2.txt b3.txt b4.txt b5.txt b6.txt c1.txt c2.txt c3.txt c4.txt c5.txt c6.txt
I filed FB16715590 about this. I have a vague memory this might be related to some code to pretend to be case insensitive, but I can't find it now.