I am newbie of IOS developer. I am facing some problems that is I want to use external libraries on my xcode project. These are libraries that i need to use..
I would like to know that How to add the external libraries on xcode. I put these libraries to the "include" folder under root folder of project. I facing this error.
but library files are already exist in that folder. please help me. Thanks.
You have to add the external library in your Build Phases further you can get easy help from this link or reply in comment
adding an external library to a project in XCode 4.3
Or go the project Choose Build Phases -> click the + sign to add one and then
Or in the above image click the button Add Other where you can tell the further path for the external library or click the link below for more help
https://developer.apple.com/library/ios/recipes/xcode_help-project_editor/Articles/AddingaLibrarytoaTarget.html
Related
I get errors of not finding the React/reactLog.h file and more files from various react native libraries.
Have tried cocapods and it says it is installing, but it seems as if it's not installed in any libraries.
The error is:
'FBSDKSharekit/FBSDKSharekit.h' file not found
Well, in any case you have to follow the instructions again from this link and double check everything:
https://github.com/facebook/react-native-fbsdk
However, in my opinion this error occurs if you don't download and put the FacebookSDK in your document folder and drag and drop it into your project. So check if you have downloaded it and put it there please. After Putting it there, you should go in your Xcode project in the Library -> RCTFBSDK.xcodeproj path and drag and drop FBSDKSharekit file from your facebook SDK folder(In your document folder) into the framework folder. You have to do the same thing with FBSDKCore and FBSDKLogin.
In addition you should check these two points:
1- FBSDK[Core, Login, Share]Kit.framework show up in the Link Binary with Libraries section of your build target's Build Phases.
2- Make sure that ~/Documents/FacebookSDK is in the Framework Search Path of your build target's Build Settings.
Then try to clean and compile the project. I hope it helps you.
I am using PjSIP for SIP calling. I have integrated PjSIP project as per the instruction on
https://code.google.com/p/siphon/wiki/Compilation & How To Build and Compile PJSIP for Xcode, Using sample code IPJSUA to test?.
But when I opened the project, I found so many library with .a extensions are missing. Please find the screenshot for the same.
Is there anything which is missed by me or do I need to make changes or update anything ?
Also, let me know if any other library available for SIP calling.
Thanks in Advance.
Aakil.
It shows that library files are missing for compiling the project. Either you wrongly build your Project or you had changed the path of the library file into another place it doesn't know to access the library files.
To Build Your PJSIP project, Follow the below link to build for iphone:
Source: https://trac.pjsip.org/repos/wiki/Getting-Started/iPhone
To Add the missed library files into your project, go to your project target and select the Build phases tab. Click "+" in Link Binary with Library option in that tab and add your missed library.
Follow below link:
Source: adding an external library to a project in XCode 4.3
I installed Alamofire by:
dragging Alamofire.xcodeproj file into my project navigator, then in
Project > General > Embedded Binaries, I clicked on the plus sign and selected Alamofire.framework. And it got integrated with no problem.
But how do I now remove it form my project ?
Thanks
You can remove it with the by selecting Target and then selecting framework in Linked Frameworks and Libraries
if you don't succeed in this way you can then probably check the Search Path of both of your Target and Project
I was having the same problem and my frameworks were not being removed then i cleared the Search Path of my Project
In some cases, after removing everything, the App will still recognize the library and compile with no errors.
In this case, the App folder in DerivedData needs to be removed.
I've got an existing project where i want to add the framework called CoreActionSheetPicker from
https://github.com/skywinder/ActionSheetPicker-3.0
The problem is i cant seem to add the framework to my project? when i pull the framework over to my existing project none of the files below is added and when i try to import it says it does not exist
import CoreActionSheetPicker
I want to do this without cocoaPods. What is the steps in order to do such? i'm using swift. Do i first need to create a WorkSpace?
I've just cloned it, and it appears the project file is invalid. You can see this by trying to open it. You should raise the issue with the owner on GitHub, which is how you're supposed to ask questions about projects there. Then you will get feedback directly from the creator or at least someone else who knows about that project.
As for adding a project,
Download the source
Drag the .xcodeproj into your project within Xcode
Add the framework in Build Phases / link binary with libraries
Add it as a Build Phase / target dependency.
Note that at the moment, you should always builds 3rd part libraries with your swift project, and not just include the binary. See here about binary compatibility of frameworks:
https://developer.apple.com/swift/blog/?id=2
I downloaded the latest AVCam from Apple. I can't seem to find there is the Frameworks folder. Also if you go to Build Phases, the "Link Binary With Libraries" is not there. You can click the + sign and add a new one. But it shows a blank.
But the project works fine. What is up with that?
You can add the framework from your download direction.
Just right click the framework folder->add files->add your framework
You maybe have to link the added framework.