Reputation: 91
I'm new on iOS and i don't understand somethings.
First, I need to make a library as in Android. So it is correct to make a cocoa touch framework? So i have this project structure :
Next, i need to import this sdk to use it inside my framework. https://github.com/kontaktio/kontakt-ios-sdk
But i don't find how to import this one. I have try to drag and drop the KontaktSdk.framework inside the ..._library but i have this error when i run my app : dyld: Library not loaded: @rpath/KontaktSDK.framework/KontaktSDK Referenced from: /private/var/containers/Bundle/Application/7A74722F-D2C5-49F2-BC77-955B90B1A421/..._app.app/Frameworks/..._library.framework/..._library Reason: image not found (lldb)
I have tried to follow this instruction:
But in the framework, i don't have the "Embedded Binaries" section.
I hope you can help me =) Thanks
Upvotes: 1
Views: 1316
Reputation: 645
You don't need to use CocoaPods.
You need to embed KontaktSdk.framework in your application's build phase. Since your library's output is not an .app bundle, it does not have a /Frameworks directory inside it. That's why it does not have a "Embed Framework" build phase.
You should link KontaktSdk.framework framework against your _library, but embed KontaktSdk.framework into your application target.
Upvotes: 2