Is anyone successfully using SQLiteCipher.swift?
SQLite.swift installs and works with cocoapods.
https://github.com/stephencelis/SQLiteCipher.swift suggests cocoapods install:
use_frameworks!
pod 'SQLiteCipher.swift',
git: 'https://github.com/stephencelis/SQLiteCipher.swift.git'
and this results in:
[!] Unable to find a specification for 'SQLiteCipher.swift'.
The doco then suggests manual install:
Drag the SQLiteCipher.xcodeproj file into your own project. (Submodule or clone the project first.)
In your target’s General tab, click the + button under Linked Frameworks and Libraries.
Select the appropriate SQLiteCipher.framework for your platform.
Click Add.
This results in No such module SQLiteCipher.
I've tried every "no such module" fix on the internet ... nada
Any insight appreciated! Thanks in advance
Looks like 'readme' file is outdated.
I ran into the same issue and here is solution (it worked for me, but according to discussion it's not perfect):
pod 'SQLiteCipher.swift',
git: 'https://github.com/stephencelis/SQLite.swift.git',
branch: 'swift-2'
https://github.com/stephencelis/SQLite.swift/issues/196
Related
I am tryin to install Firebase using cocoapods so I may send push-notifications to user devices. However, everytime I follow the instructions step by step, I get this error that says "framework not found FBLPromises". Anyone have any ideas how to fix? Everything I have looked up online does not work.
The following worked for me:
What probably happened (for anyone still looking) is that after running
pod install
in your project's directory, you are still building the ".xcodeproj" file instead of running the newly created ".xcworkspace" from the pod install. Remember, after pod installing, you MUST do edits on and work with the .xcworkspace instead.
Go to your Pod target and add arm64 in Excluded Architecture
I was having the same issue, and I solved it by going to Product > Scheme > Edit Scheme... and selecting Find Implicit Dependencies. After that, the project was able to build correctly.
Probably late but I managed to fix it by linking FBL promises in my podfile to the rest of the project!
Click on the project > Targets. Select your target. Then click on Build Settings. Find "Runpath searches path" and add "$(PODS_CONFIGURATION_BUILD_DIR)/PromisesObjC". It worked for me, but it gave me another error dealing with another missing lib, so I had to do it again until all libs were found.
Go to your Pod target and set Build Active Architecture Only = YES For Debug Environments
Simply setting Build Active Architecture: Debug - Yes, Release - No fixed this for me. I had it set to No, No before. I think this matches the setting in the Pods project.
Open Podfile by typing the command open Podfile in the folder of the project using the terminal.
Type pod Promises
Done
I'm trying to install the Charts package to use with CocoaPods and it keeps saying "No such module 'Charts'".
If I added the pod 'Charts' in the podfile, and did a pod install and the files are there in Xcode, how come it still gives me an error when I try to import Charts?
Do I still need to do the steps below? Or does CocoaPods do it for me?
Drag the Charts.xcodeproj to your project
Go to your target's settings, hit the "+" under the "Embedded Binaries" section, and select the Charts.framework
My pods file looks like this now:
You just have to hit Command-b to build, then the error will go away. The other solution is to hit Product > Build.
I had a similar problem when I was developing an app for an older platform. The CocoaPod I sourced supported Swift 4 but I was developing for Swift 3. When I sourced the last Swift 3 version of the pod, the "No such module" error was no longer there. Try the following line in your Podfile:
pod 'Charts', '3.0.3'
instead of the latest version.
try installing it manually moving the complete charts folder to your project, or downloading using carthage, it's way more cleaner using carthage than cocoapods because it doesn't create you a .xcworkspace like cocoapods.
Update: I solved the question. Please see my answer below (underneath the question and comments).
This question was marked as a duplicate, but it's different because it is a brand new error that I couldn't find through any searches.
I tried installing Alamofire into my XCode project.
As per their their tutorial, I installed cocoapods onto my system.
I then navigated to the folder of my existing xcode project in the terminal, and did:
pod init
I then edited the new pod file and added:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
target 'RainyShinyCloudy' do
pod 'Alamofire', '~> 4.4'
end
Finally, I executed the command:
pod install
My terminal told me the install was successful.
But when I opened the .xcworkspace, made a new swift class and tried to import Alamofire, I got this error:
One possible reason could be that I had tried to install an earlier version of alamofire earlier, deleted it and then installed this.
But I really don't know how that could have mattered.
Thanks for any help you guys can give me.
Actually it failed because you were trying to import AlamoFire and not Alamofire. Imports are case sensitive.
Update: I posted an answer earlier that was wrong.
But now I actually figured it out.
I made a new project, went to the settings menu by clicking on the name of my app in the project explorer.
Then I went to Linked frameworks and libraries which is at the very bottom of the General tab.
I pressed that little + icon, selected Alamofire.framework. and set the status to required
Following this, cleaning and rebuilding the project made the error go away.
I like to integrate a zip library in my macOS application.
I created a file named Podfile in my project folder (next to .xcodeproj file).
It contains following lines (as given here - on the bottom of the page):
source 'https://github.com/CocoaPods/Specs.git'
pod 'Zip', '~> 0.4'
If I run $ pod install on the terminal, I am receiving this error:
Analyzing dependencies
[!] The dependency `Zip (~> 0.4)` is not used in any concrete target.
EDIT:
I tried it now with the pod init template, but got an error. So I raised a new question.
It's a very simple question, and it does mean that you didn't give your research on what you are searching for. Please do your research, and then post a question here if there is any problem. Please give respect to people's time.
GitHub repo SSZipArchive
CocoaPods
pod install SSZipArchive
Carthage
github "ZipArchive/ZipArchive"
If your trying to run an iphone project downloaded from the internet in Xcode and you encounter "Library not found for -lxxx", where -xxx is some third party library where would you look to set the library path? I am not sure where this is setup, in the SCM->library path is blank and everything else seems to match the configuration window for other working projects
When I look at the build log i see the following in the linker output:
-ObjC -ljson
How can i configure the project to not try to link in that library at build time?
if using cocoapods and getting this error, try updating the cococapods$ sudo gem update cocoapods Then update the pod for the project$ pod updateI don't know the exact reason but I think it was because the old version didn't set the libraries properly for the new XCode.Hope this helps.
Within the build tab of project settings there is a field for linker options, I removed the -ljson from here to solve the issue.
Either you need to add that library to add your project or you can remove from the project and delete all the reference.
This may help you, just click on the library and change the 'required' option.
This might be helpful in some cases:
Xcode > Preferences > Locations > Locations > Advanced, select Unique.
I was facing a similar issue and chaging to "unique" from "legacy" solved the problem