nuclearace / socket.io-client-swift-example

An example of socket.io-client for Swift
176 stars 65 forks source link

Build for distribution #21

Closed hrabkin closed 2 years ago

hrabkin commented 2 years ago

Hello,

I would like to use SocketIO as an dynamic dependency of my xcframework

I have checked your project and see that you don't use option BUILD_LIBRARY_FOR_DISTRIBUTION:

Screenshot 2022-09-13 at 17 51 50

why?

This option

Ensures that your libraries are built for distribution. For Swift, this enables support for library evolution and generation of a module interface file

https://xcodebuildsettings.com

Without forcing this option in Pods project there's the following error:

dyld[20229]: Symbol not found: _$s8SocketIO0A11ClientEventO5erroryA2CmFWC
  Referenced from: .../Frameworks/MyFramework.framework/MyFramework
  Expected in: .../MyApp.app/Frameworks/SocketIO.framework/SocketIO
hrabkin commented 2 years ago

I have posted the issue into wrong repository. Moved here