Install SwiftKeychainWrapper manually - ios

I would like to install SwiftKeychainWrapper manually because I get error when I try to install it using CocoaPods.
In description it says that I need to download and drop KeychainWrapper.swift and KeychainItemAcessibility.swift into my project.
I clicked on Clone or download -> Download ZIP. In downloaded SwiftKeychainWrapper folder there are KeychainWrapper.swift and KeychainItemAcessibility.swift files. I drag and dropped them to my project under the same root where there are Main.storyboard, AppDelegate.swift,...
Then is says to use the keychain wrapper in your app, import SwiftKeychainWrapper into the file(s) where you want to use it.
I added import SwiftKeychainWrapper to a file where I want to use it and I get error No such module 'SwiftKeychainWrapper'.
What am I doing wrong, why can't I use it?

Just as #dan said you don't need to import any other modules if you add source files directly to your project. When a library is added via cocoapods, all of it's sources are in a separate module and you need to do import ModuleName to make them accessible.
If your read carefully github instructions, you'll find that for manual approach you should only copy the files and nothing more:
Manually
Download and drop KeychainWrapper.swift and
KeychainItemAcessibility.swift into your project.
P.S. Also make sure that you copy those files into you project folder before dragging them into Xcode because that will just add links to files in your Downloads folder or wherever they are placed.

Related

No such module found when importing SQLite in Xcode

I am trying to import SQLite into an app in Xcode. The version of this app was originally developed using SQLite from the following link (not SQLite3).
https://github.com/stephencelis/SQLite.swift
The library has worked in previous iterations, but now I get an error that says "No such module SQLite" when I try to import the library at the top of the file I want to use it.
I have followed the instructions on the gitHub page and still have trouble with the library. One thing that I notice is that in the file explorer the SQLite.framework files are highlighted in red. I believe this is the source of the problem however, I don't know how to fix this.
File Picture:
Import Error:
It looks like you want to include SQLite into your ReadySetFit project? If so, what you really need to do is to follow the instructions under the "Installation" section found on the GitHub repo's main page. I'm a fan of Cocoapods (because all you'd need to do then is add a Podfile to the folder containing your ReadySetFit project), but there's also SwiftPackageManager or Carthage.
Along with the instructions in the SQLite github repo main page (or README.md), here's a tutorial on how to add a Podfile to your project.
I hope this helps!

Error when Trying to import external framework to Xcode 9

I´m working on an app that integrates MySpin system from bosch, and there is a framework available to be used in the process.
I did all the importing process of the framework into my Xcode 9 project with a drag and drop into the frameworks project folder and linked to the target app.
But I´m not able to use the header file from the framework in my project.
I tried to import in some different ways, changing the options : Copy items if needed, Create Groups e Create folder references but the file dos not appear in the auto complete of importing process inside the AppDelegate.h, the error File not found always appears.
also included the folder path to the Header Search Path option.
Does anyone had any ideia on how to solve this importing problem? I have all files inside a local folder.
Check copy items if needed and add it to Embedded libraries , dynamic frameworks sections as below

How to add SideMenu without POD and Carthage?

I want to add this Side Menu without using POD or Carthage, How can i do this.
Doing a git clone and then copying the files from SideMenu/Pods/Classes in your project should be enough.
I checked the dependencies of the project and there are none. This means that cocoapods won't get you more projects so you should be safe.
You can always add libraries by manually adding the files required by the library . Here you can get the files inside the Pod/Classes. There are four files drag and drop them in your project , and import .h file in your bridging header. You will be able to import library in your files. Hope This helps you out .

Cannot Import SocketIOClientSwift

I have manually dragged the source folder to the Xcode project and then tried importing the module. Despite that I get an error when I try to add it to my app.
https://github.com/socketio/socket.io-client-swift

Unable to correctly import framework into xcode project

I'm trying to add KKGridView to my project. I've followed thier description from github as best I can:
Create a new workspace in Xcode in the same directory as your existing *.xcodeproj.
Drag in your existing Xcode project
Locate your copy of KKGridView, drag KKGridView.xcodeproj into the
workspace so that it stays at the top of the hierarchy, just like
your original project.
In the Build Phases section of your original project, link your
project with libKKGridView.a.
Now, simply import KKGridView just like an Apple framework:
But libKKGridView appears in red in my project, and I am unable to import any of the code with
#import <KKGridView/KKGridView.h>
Any ideas?
Copy this file physically to your folder,and then add file to xcode from there.Drag and drop create this problem sometimes.
Hope this helps you.
You need to import the .h files as well

Resources