python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Swift Package with C++ builds in Xcode but not on CLI
I have a Swift package that includes C++ and ObjC code.
It builds & runs with no issues in the Xcode 13.3 IDE and when building it as part of an app using xcodebuild on CLI, but when I try to buil...
jbelkins
Votes: 0
Answers: 1
How to bridge Objective-C++ code to Swift when we have C++ classes as parameters in header files?
I'm trying to call C++ methods from Swift, and what I've learnt is that I can wrap the C++ stuff to an Objective-C++ class first, then export this Objective-C++ class to Swift. Here's my code:
// CPPC...
P. Tsin
Votes: 0
Answers: 0
Will ObjC setter automatically copy a C++ object passed as a parameter when get called?
I recently read about a std::unique_ptr as a @property in objective c and the suggestion to store a unique_ptr in ObjC as a property is as following:
-(void) setPtr:(std::unique_ptr<MyClass>)ptr...
Patroclus
Votes: 0
Answers: 2
MTLBuffer copy data to a specific buffer on host directly from the device
Problem description
My program uses MTLBuffer to allocate some memory on the GPU and do computations with it. Then I need to copy the result to a specific place on the host. All solutions I found on t...

Mykhailo Mushynskyi
Votes: 0
Answers: 1