xcode : adding external framework - frameworks

I have a .framework (external framework) file that was created by xcode 9.2 with deployment target 9.0. I wanted to link this framework with my project. I linked the framework in embeded binaries and frameworks and libraries. There was no error with that but my application not being opened.
Thanks in advance.

There is a duplicate appdelegate in the given external framework. SO that when we add it to the current project, Appdelegate of the current project not called.
So make sure the external framework not having duplicate Appdelegate.
Thanks

Related

Link a binary framework to both Pod Target and main app project

I have a library project which was installed via Pod into my main project. That library project use a framework. I didn't or actually couldn't embed that framework in the library project cause of making Umbrella Project and this is not recommended by Apple.
So I tried to embed it in my main project but the library project in Pod couldn't see it so that lead to error "No such module"
So how I can link the framework which embedded in the main project to that library pod target.
Ok. I'm able to make it work. Just drag the folder on main project which contain the framework in your pod target project framework search path. It will automatically transform a path like this
"$(SRCROOT)/../"

Unit test failing after adding framework to framework project

I have a framework project that I've added a framework to. The existing project has a test target, since I've added a third party framework I now get the following error:
Library not loaded: #rpath/JWT.framework/JWT
I have tried adding the framework to the test target's build phases Link binary with libraries section with no success.
This error typically occurs when the app is unable to load a framework at runtime. One cause of this could be that the framework isn't embedded in the built app.
Aside from the Link Binary With Libraries build phase, you'll also need to ensure that the framework in question is added to the Embed Frameworks build phase in order to ensure it's bundled into the final app.

Xcode have 2 projects under 1 workspace

I have 1 workspace with project with project with swift3.
Now I need to add other project or target. I am not sure.
But the goal is to have the other project in swift4. It will be helper project for main project in swift3. And this second project should be available from swift3. It's extensions for UIViewController. How can I make it?
You can do that either as separate project or as target of existing project.
Create Framework
Choose Swift version(4.0 in your case)
Add Swift file
Link framework in application
Import framework and use extension

Module created in a framework not found in a project in which framework is embedded

I am trying to create a swift framework containing both facebook and google SDKs for login, so that by implementing my framework, both of them may be used in a project without embedding them separately. I found out I can use pods for facebook SDK, but I have to add google SDK manually into my framework.
To reach classes in google SDK, I tried to add
#import <GoogleSignIn/GoogleSignIn.h>
into framework's umbrella header. However, when embedding my framework into project, it states that the file cannot be found.
I tried using the module approach instead. I created module.modulemap file defining GoogleSignIn module. I had no problem using the module in a framework.
However, when embedding my framework in a project, it states that module cannot be found. I even tried to import Google SDK into project itself and creating module in a project, but the error did not disappeared.
Could you please help me how to import google SDK into framework so that I can use my own framework in a project without any problems? Thank you in advance.
You can do this with an Objective-C bridging header.
First add an objective c file, then you will be prompted to create a bridging header. Click yes and then delete the other objective c file.
In this file place your import statement:
#import <GoogleSignIn/GoogleSignIn.h>
(This is assuming you have imported the SDK manually.)
Make sure you've imported your framework in Linked Frameworks and Libraries, embedded binaries and to Target Dependencies in the app's Build Phases setting. for this to work. In this solution, you can add the swift framework .xcodeproj file as a file of the main swift project.

How to make a project dependent on another project and Check in to SVN in XCode 4

I have an SDK project. I am trying to use the result of the SDK project(i.e the libSDK.a) and related files to become dependency for one of my application. Actually I have two apps. One is SDK and the other is a reference application that uses this SDK. Rather than copying this SDK and .h files to Application project whether it can be done directly by XCode?. If so how can I check in both this as a single project to SVN so that somebody can check out both SDK project and Reference app project in a single check out.
Please help if anybody knows it.
Thank you in advance
An XCode SVN unable to work with externals. Take a look at following tutorial how to bind two projects thru a terminal — http://blog.kowalczyk.info/article/Short-tutorial-on-svn-propset-for-svnexternals-p.html