D
D
Daniil Demidko2020-04-09 06:40:53
Apple Xcode
Daniil Demidko, 2020-04-09 06:40:53

How to build a dynamic library in Xcode?

Xcode behaves strangely when trying to get build result in Release configuration. The default settings indicate that the final build with all optimizations will be built at the archive stage. It would be possible to pull it out, for example, from the product section, but there is an intermediate assembly without optimizations for debugging.
v4jc7yscgnw4t5aydiila64hq34.png
Performing archiving, extracting build results from the archive for release distribution
v3v1z-kbmizuwfgyzq32eb_h9ze.png
And now the moment of truth - the folder in which the build results should be unpacked is empty.
Although in the case, for example, with a regular console application, after unpacking I got an optimized executable.
Well, we climb to see what's in the archive
vi5ax-ujt5_dwc2nvfo9mknh8ea.png
. There is a libTestlib.dylib.dSYM file, but there is no libTestlib.dylib itself. The products directory is empty.
The question is, why does Xcode build libraries so strangely, and how do I normally get an optimized build result (Release) for distribution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Demidko, 2020-04-09
@Chronicler

So, if anyone comes across in the future, I hope this helps you.
We go to the project settings, find Target, select the Deployment section there, select the No value for the Skip install item.
Also here you can edit the nested directory with the build result inside the archive (Installation directory)
5e8eb9d76f2ff390501603.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question