When I run the project I got the error like ‘'Crashlytics/Crashlytics.h' file not found’.I am using Xcode10.1 with iOS12.
I installed crashlytics using the following lines in my pod file.
pod 'Fabric', '~> 1.7'
pod 'Crashlytics', '~> 3.10.7'
How can I solve this error?
Add the following to your project's Framework Search Paths
$(SRCROOT)/Pods/Crashlytics/iOS
Related
I'm trying to install an objective-c Wrapper for Jsip 'VialerSIPLib' and use it in my swift project here is my pod
platform :ios, ’10.0’
use_frameworks!
target 'EMedicalAdmin' do
pod 'ObjectMapper', '~> 2.1'
pod 'Alamofire', '~> 4.3'
pod 'SwiftyAvatar', '~> 1.0'
pod 'AlamofireImage', '~> 3.1'
pod 'Eureka', '~> 2.0.0-beta.1'
pod 'JSQMessagesViewController', :git => 'https://github.com/jessesquires/JSQMessagesViewController.git', :branch => 'develop'
pod 'PKHUD', '~> 4.0'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'ImageSlideshow', '~> 1.1.0'
pod 'SwiftyJSON'
pod "FlexibleSteppedProgressBar"
pod 'BTNavigationDropdownMenu', :git => 'https://github.com/PhamBaTho/BTNavigationDropdownMenu.git', :branch => 'swift-3.0'
pod 'VialerSIPLib'
end
but i get this error when installing :-
target has transitive dependencies that include static binaries:
and if i remove
use_frameworks!
from my podfile it would work but all my other swift based pods won't work
so, i'm left with using only this one pod (VialerSIPLib) or Use all my other pods except it
Please add this to your podspec: s.static_framework = true
This is available from cocoapods version 1.4.0.
It worked for me.!!
use_frameworks! should be enough but sometimes the pod.lock file gets corrupted.
So you can delete the pod.lock file and then do
pod repo update and pod install
if any one is Still wondring ,it can't be Done
Using dynamic vendored frameworks shouldn't be a problem even if the
developer isn't using CocoaPods with use_frameworks!, unless they for
some reason need a static lib, such as if building a command line
tool, where static linking is preferable.
So .You Could add the static library manually and link it in you project or wait for the vendor to Change the library into a dynamic Framework
More info here
For me this is how i solved it :-
1- Downloaded the static library using Cocoapods without use_frameworks!
2- used Carthage for Adding other libraries
3- and if a library Doesn't have a Carthage support i would do it manually (Not advised since alot of Duplicate dependencies may Appear)
I put up a repo to show how to do: https://github.com/Lucashuang0802/CocoaPodsWithCarthage
There are a couple things to do:
- install your objective-c lib via CocoaPods without indicating use_framework! in the Podfile
- install your pure Swift module via Carthage
You should be able to compile fine with this solution.
It's a weird one.
For me uninstalling and installing again worked.
Steps -
Comment(#) the error causing pod in pod file
Pod install
Uncomment the line in pod file and save
Pod install
I just follow the link below to add the Google Analytics into my project.
https://developers.google.com/analytics/devguides/collection/ios/v3/
But when I used the pod update in my project
I got following result
Can anyone help me with this?
-------------edit---------
pod 'GoogleAnalytics' is good
but I think it lose something compare with pod 'Google/Analytics', '~> 1.0.0'
I'm not sure if it cause any effect
But I found the answer
just replace ios,'6.0' by ios,'7.0'
Try this, Open the Podfile replace the following line
pod 'Google/Analytics', '~> 1.0.0'
by this line
pod 'GoogleAnalytics'
Save the file and run:
pod install
References - https://cocoapods.org/pods/GoogleAnalytics
I installed the following pods to my Swift project:
platform :ios, '8.0'
pod 'ParseUI', '~> 1.1.4'
pod 'Parse', '~> 1.7.5'
pod 'FBSDKCoreKit', '4.3.0'
pod 'FBSDKLoginKit', '4.3.0'
pod 'FBSDKShareKit', '4.3.0'
pod 'ParseFacebookUtilsV4', '~>1.7.5'
pod 'AFNetworking', '~> 2.5.4'
I added a Bridging Header for all the pods except the 3 FBSDKs. On https://developers.facebook.com/docs/ios/getting-started , it says...
"Swift
v4.1 of the SDK supports modules natively so no bridging headers are required. Simply import the appropriate kit module in your .swift files"
Problem is when I try to import those 3 frameworks to AppDelegate, I get the error message "No such module 'FBSDKCoreKit'"
Anyone encounter this issue before?
Thanks in advance.
Try adding use_frameworks! to the top of your podfile. It solved my problem. Initialy it is shown as #use_frameworks! in podfile . Remove the # infront of use_frameworks!. This blog explains about it.
I am trying to build a Xcode 5 project that uses CocoaPods. The POD file is following:
target "MyProjectName" do
pod 'AFNetworking', '2.2.1'
pod 'SVProgressHUD', '0.9'
pod 'MDHTMLLabel', :head
pod 'CCBottomRefreshControl'
pod 'EXPhotoViewer', '~> 1.1.2'
pod 'NHBalancedFlowLayout', '~> 0.2'
pod 'SevenSwitch', '~> 1.3.0'
pod 'REFormattedNumberField', '~> 1.1.5'
end
The cocoapods is installing and updating correctly.
The error is: Did not find the libraries, like the one highlighted in my .pch:
#import "SVProgressHud.h"
...
/Users/xyz/Documents/Projects/avbc/repo/ios/project/ProjectName-Prefix.pch:17:13: 'SVProgressHud.h' file not found
I already did the pod reinstalling steps from solution below, without success:
Cocoapods with Xcode 6 and 10.10 Yosemite
What should I do to build my project properly?
Try the following:
1) I usually set the platform on my pod file:
platform :ios, '7.0'
2) Have you linked the library with <>?:
#import <SVProgressHUD/SVProgressHUD.h>
3) It is HUD instead of Hud. (Uppercase) <- If you link to Hud the file will never be found
Perfom "Project Clean" (Cmd+Shift+K) to solve the problem.
As mentioned in the title, I have
ReactiveCocoa/RACEXTScope.h file not found error in Prefix.pch file.
The following is Pod file
platform :ios, "7.1"
pod 'Parse-iOS-SDK', '~> 1.2'
pod 'ReactiveCocoa', '~> 2.3'
pod 'ReactiveViewModel', '~> 0.2'
pod 'Parse-RACExtensions', '~> 0.0'
pod 'CKCalendar', '~> 1.0'
pod 'SDWebImage', '~> 3.6'
As you can see from images, the file exists.
But there is not interface declaration in the file.
Does that matter?
I'm using Xcode 6.0.1
Can anyone give me a suggestion?
I had the same problem.
At the top of your podfile write this line:
link_with ['ProjectName', 'ProjectNameTests']
install pod, and at your project Build Setting->Other Linker Flags, add $(inherited).
That happened because Tests couldn't find pods.
solution for me was replace in podfile string pod 'ReactiveCocoa', '~> 2.3' with pod 'ReactiveCocoa', '~> 2.3.1'
because in cocoapods.org not updated info http://i.stack.imgur.com/dWznK.png
I had the same problem and fixed it.
In XCode go to the Build Settings -> search Header Search Paths and change the ${PODS_ROOT}/Headers/Public/ReactiveCocoa to recursive from non-recursive.
https://i.stack.imgur.com/Y04YY.png