0

I made custom framework included Socket.IO-Client-Swift with coccoapods. In my custom framework's podfile is below.

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '16.0'
use_frameworks!

target 'MyCustomFramework' do
  # Pods for MyCustomFramework
  pod 'Socket.IO-Client-Swift', '~> 16.1.1'

  target 'MyCustomFrameworkTests' do
    # Pods for testing
  end

end

Then, in my test app, I imported MyCustomFramework as Dynamic Framework.
Build Phases -> Link Binary With Libraries -> MyCustomFramework.framework exists.(Status is required)
General -> Frameworks, Libraries, and Embedded Content -> MyCustomFramework exists.(Embed type is Embed & Sign)

Build is successful, but SocketIO.Framework is not loaded.
dyld[82393]: Library not loaded: @rpath/SocketIO.framework/SocketIO

My Test App     -> build success but, runtime error(Library not loaded)
ㄴ My Custom Framework
  ㄴ external framework(Socket.IO-Client-Swift)

How can I solve this error?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.