library not found for -lPods- Error while running iOS Code - ios

I am running .xcworkspace file on xcode and I am getting the following error:-
library not found for -lPods-
This is my Podfile:-
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target '' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/DynamicLinks'
pod 'GoogleSignIn', '~> 5.0'
pod 'OneSignal', '>= 2.6.2', '< 3.0'
pod 'TPKeyboardAvoiding'
pod 'FBSDKCoreKit', '~> 5.5.0'
pod 'FBSDKLoginKit', '~> 5.5.0'
pod 'Phone-Country-Code-and-Flags'
pod 'ListPlaceholder'
pod 'Shimmer'
end
target '' do
pod 'OneSignal', '>= 2.6.2', '< 3.0'
end
Any help would be highly appreciated! Thanks:)

Try Build Active Architecture Only" = YES and run the pod install

Related

Cant import dependency in xcworkplace cocoapods

i am relatively new in ios, especially cocoa pods. i ran into a problem,somehow the IgListKit dependency is un-importable, I already clean build, build 1st then add the import, even deleting the xcworkplace and adding a new one by doing pod install
How do I fix it? is it an issue within the Pod? should I file an error? Thank you
How I add the dependencies :
# Uncomment the next line to define a global platform for your project
platform :ios, '12.0'
target 'LearnViper' do
pod 'Alamofire', '~> 5.4'
pod 'RxSwift', '6.2.0'
pod 'RxCocoa', '6.2.0'
pod 'Kingfisher', '~> 7.0'
pod 'SkeletonView'
pod 'IGListKit', '~> 4.0.0'
end
platform :ios, '12.0'
target 'LearnViper' do
use_frameworks!
pod 'Alamofire', '~> 5.4'
pod 'RxSwift', '6.2.0'
pod 'RxCocoa', '6.2.0'
pod 'Kingfisher', '~> 7.0'
pod 'SkeletonView'
pod 'IGListKit', '~> 4.0.0'
end
you have to update your gem file with command first
sudo gem install -n /usr/local/bin cocoapods
then after that open podfile add pods and install
Looks like all you have to do is add
use_frameworks! in your pod file

Xcode 9.2 stuck in compiling Swift 3.2 Project

Compiling Swift 3.2 project stuck and eats up memory in Xcode 9.
I believe there are memory leaks in our project. But I can build and run the same project in Xcode 8.3.3 without problems.
Can anyone help me with this problem?
Here are the pods I use:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
use_frameworks!
target 'flyakeed' do
pod 'lottie-ios', '~> 2.1.3'
pod 'Alamofire', '~> 4.3'
pod 'SwiftyJSON', '~> 3.1.4'
pod 'NHRangeSlider', '~> 0.2'
pod 'MGSwipeTableCell', '~> 1.5.6'
pod 'Kingfisher', '~> 3.13.1'
pod 'JTAppleCalendar', :git => 'https://github.com/patchthecode/JTAppleCalendar.git', :commit => 'd705c7467e43ae2675cfde6521bdf52faaebf2de'
pod 'Socket.IO-Client-Swift', '~> 10.0.0'
pod 'OneSignal', '>= 2.5.2', '< 3.0'
pod 'GoogleAnalytics'
pod 'FBSDKCoreKit'
end
target 'OneSignalNotificationServiceExtension' do
pod 'OneSignal', '>= 2.5.2', '< 3.0'
end
Doubt this is your issue, but after following #dr_barto's suggestion (Cmd+9), I noticed that I wasn't logged in to any Team... Xcode decided to log me out at some point and kept failing silently.

cocoapds ld: framework not found Pods_Target

I can compile the target with debug configuration, but when change to release configuration, it failed with error:
ld: framework not found Pods_MyTarget
this is the pod file:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'Alamofire', '~> 3.0'
pod 'SnapKit', '~> 0.15.0'
pod 'ObjectMapper', '~> 0.19'
pod 'Nuke'
pod 'Nuke-Alamofire-Plugin'
pod 'RESideMenu', '~> 4.0.7'
pod 'XCGLogger', '~> 3.0'
pod 'MBProgressHUD', '~> 0.9.1'
pod 'TTTAttributedLabel'
pod 'UIColor_Hex_Swift', '~> 1.4'
pod 'RxSwift', '~> 2.0.0-beta'
pod 'RxCocoa', '~> 2.0.0-beta'
pod 'RxBlocking', '~> 2.0.0-beta'
I have seen this bug many a times. I do the below workaround, this may not be the right fix.
Go to Project settings and change "Build Active Architecture Only" to "NO".
I found that I have to change the pod file to something like this:
link_with 'xxx'
target xxx do
pod xxxxxx
end
and then delete some files generated by pod manually, seems pod cannot delete them, such as the xcconfig, framework, .etc
then run 'pod install'
it works.

ld: framework not found Box

I'm getting this error every time when I try to compile the project.
This started happening after adding to pods "use_frameworks!" and updating to use :
#import <MBProgressHUD/MBProgressHUD.h>
Insted of:
#import "MBProgressHUD.h"
for all frameworks.
There is no framework named "box" so I do not understand what this even refer to..
This error shows after all the project compiles, really at the end.
Did any one manage to fix this issue?
Edit
My podfile:
platform :ios, '8.0'
# ignore all warnings from all pods
inhibit_all_warnings!
use_frameworks!
xcodeproj 'Stox'
pod 'FLEX', '~> 2.0', :configurations => ['Debug']
pod 'FBSDKCoreKit', '~> 4.5'
pod 'DCIntrospect-ARC', '~> 0.0.4'
pod 'FiksuSDK', '~> 4.5.0'
pod 'Raven'
pod 'PKRevealController'
pod 'UIImage+BlurredFrame'
pod 'SDWebImage'
pod 'PEPhotoCropEditor'
pod 'Reachability'
pod 'HPGrowingTextView', '~> 1.0.1'
pod 'MBProgressHUD'
pod 'pop', '~> 1.0'
#pod 'UIActionSheet+Blocks'
pod 'AZSocketIO', '0.0.5'
pod 'TSMessages'
#pod 'ReactiveCocoa' , '~> 2.5.0'
pod 'ReactiveCocoa', '3.0'
pod 'NJKWebViewProgress'
pod 'ActionSheetPicker-3.0', '~> 1.2.0'
pod 'Underscore.m'
pod 'Mantle', '~> 1.5'
pod 'RSKImageCropper'
pod "AFNetworking", "~> 1.3.4"
pod 'GoogleAnalytics-iOS-SDK', '~> 3.10'
pod 'AHKActionSheet', '~> 0.5'
pod 'WYPopoverController', '~> 0.2.2'
pod 'XLPagerTabStrip', '~> 1.0'
pod 'SwipeView', '~> 1.3.2'
pod 'Masonry'
pod 'YLMoment', '~> 0.2.0'
pod 'YIInnerShadowView', '~> 1.1'
pod 'LinqToObjectiveC', '~> 2.0'
pod 'Typhoon'
pod 'CDRTranslucentSideBar'
pod "ZFDragableModalTransition"
pod 'LVDebounce'
pod 'AsyncDisplayKit', '~> 1.2'
pod 'PhotoTweaks', '~> 1.0.1'
pod 'Shimmer', '~> 1.0'
pod 'IHKeyboardAvoiding'
pod 'Parse', '~> 1.8.4'
pod 'DBPrivacyHelper'
pod 'AppsFlyer-SDK'
pod 'KLCPopup', '~> 1.0'
pod 'Vertigo'
pod 'iRate', '~> 1.11'
target 'StoxUITests' do
use_frameworks!
pod 'Nocilla'
pod 'OHHTTPStubs', '~> 4.3'
end
Workaround to resolve this issue (Temporary fix :) )
Create a folder called "Box.framework" anywhere on your computer. Note the full path to this folder.
Create an empty file called "Box" inside of "Box.framework"
Click on your project and go to the "Build Settings" tab.
Find "Framework Search Paths" in your Build Settings (you can search for
"Framework Search Paths" in the search bar at the top)
Double click on the Framework Search Path and press the "+" button.
Add the path which points to the "Box.framework" folder that you created in step1.
Let me know if that resolves your issue.

Building errors after updating CocoaPods libraries

I'm working on a legacy iOS project as a newbie. After I updated the CocoaPods and libraries, I've got these weird errors after building the project which never happen before.
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lPods-Model
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lPods-Model is not an object file (not allowed in a library)
And here is my Podfile:
platform :ios, '7.0'
link_with ['DianaViewModels']
pod 'AVOSCloud', '~> 3.0'
pod 'PixateFreestyle'
target :Model do
link_with ['DianaModels']
pod 'ReactiveCocoa', '~> 2.2'
pod 'TMCache', '~> 1.2'
pod 'SSKeychain', '~> 1.2'
pod 'Mantle', '~> 1.3'
pod 'AFNetworking', '~> 1.0'
end
target :Test do
link_with ['DianaTests']
pod 'Kiwi', '~> 2.2'
end
target :View do
link_with ['Diana']
pod 'SVPullToRefresh', '~> 0.4'
pod 'MBProgressHUD', '~> 0.7'
pod 'SWTableViewCell', '~> 0.1'
pod 'MTMigration'
pod 'Masonry'
pod 'TTTAttributedLabel'
pod 'NJKWebViewProgress'
target :ViewDebug do
link_with [
'DianaDev',
'DianaViews'
]
pod 'Reveal-iOS-SDK'
end
end
By the way, I'm using the CocoaPods plugin in the Xcode. But a lot error are output when I check the Install Docs during integration:
Error opening xar archive: /var/folders/3x/mgl299js6k13tlrspqv21n340000gn/T/Model-ReactiveCocoa.xar
Are there some wrong configurations in my CocoaPods or Build Setting in Xcode6.3? Thanks for your help!
ADDED:
Here's my Link Binary With Libraries in the Build Phases. Does the red item mean something is wrong? It looks like this is the cause.

Resources