No such module PDFReader - pdf

so i try to install PDF Reader. https://cocoapods.org/pods/PDFReader in installation guide i follow the instruction
target 'thePDF' do
pod 'PDFReader', '~> 2.1'
end
after pod install
i try so many option like only pod 'PDFReader' or try different version but still doesn't work.
EDIT:
i try
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, ‘8.0’
use_frameworks!
target ‘thePDF’ do
pod 'PDFReader', :git => 'https://github.com/Alua-Kinzhebayeva/iOS- PDF-Reader.git'
end
and it works, but when build, it shows some errors

Related

Trying to install XMPPFramework in my objective c Project using Podfile

I am trying to install XMPPFramework in my objective c Project using Podfile.I had write this in my Podfile:
platform :ios, ‘8.0’
use_frameworks!
target ‘XMPP’ do
pod 'XMPPFramework', :git =>"https://github.com/robbiehanson/XMPPFramework.git", :branch => 'master'
end
But I am getting this Error while pod install this error is show in console.This is the image of console::
Can some one please Help me.Thanks.
Add this in your pod file,
pod 'XMPPFramework'
Remove ,
pod 'XMPPFramework', :git
=>"https://github.com/robbiehanson/XMPPFramework.git", :branch => 'master'
Run,
pod install
Try this. Hope it will help you.

"missing from working copy" build issues when upgrading to Cocoapods 1.0+

Cocoapods is no longer generating all the required headers in Pods/Headers/Private and thus causing hundreds of "missing from working copy" build issues.
The issue started happening when I upgraded from:
Xcode 7
Cocoapods pre-1.0 (not sure which version I had)
OSX El Capitan
platform ios 7.0
to
Xcode 8 Beta 6
Cocoapods 1.0.1
macOS Sierra 10.12 Beta
platform ios 8.0
My "Pods/Target Support Files" folder has 35 pods, but my "Pods/Headers/Private" and "Pods/Headers/Private" have only 4 pods each.
I tried adding "$(inherited)" to my build settings and many other of the suggested fixes on stackoverflow and cocoapods' website with no success.
platform :ios, '8.0'
target 'Meow' do
use_frameworks!
pod "AFNetworking"
pod 'SCLAlertView-Objective-C'
pod "MMMaterialDesignSpinner"
pod "JMImageCache"
pod “AWSCore”
pod “AWSSNS”
pod “AWSMobileAnalytics”
pod ”SSToolkit”, '~> 2.0.0'
pod ”TTTAttributedLabel”
pod ”M13ProgressSuite”
pod ”SSKeychain”
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod "Flurry-iOS-SDK"
pod "TPKeyboardAvoiding"
pod "UITextView+Placeholder"
pod "UIReadMoreLabel"
pod "RTLabel"
pod "HexColors"
pod "Branch"
pod 'Google/Analytics'
pod 'Mixpanel'
pod 'Fabric'
pod 'Crashlytics'
target 'MeowTests' do
inherit! :search_paths
end
end
Any help is super appreciated!
Henri
After lots of digging and trial/error I figured it out. The root issue was the upgrade from Cocoapods 0.39 to 1.0+.
You can solve this by following theses steps:
Remove any build settings you're overriding by following this: Cocoapods no longer builds project after update?
Downgrade from v1.0+ to 0.39 following this: How to downgrade or install an older version of Cocoapods
Delete the Pods folder, the Pod lock file
Add this line to the top of your Podfile
source "https://github.com/CocoaPods/Old-Specs"
Run pod install
Run cmd+k in Xcode and compile.
More Resources:
http://blog.cocoapods.org/Sharding/
To me #cybermach answer is partially helpful.
The full answer is:
1- Downgrade the CocoaPods from 1.0 to 0.39 using this link:
Install old cocoapods?
2- Then use this command "pod install" to again add the private headers.

Merge SwiftyJSON.swiftmodule fails with error No such file or directory

I have upgraded to Xcode 7 and my project to Swift2. My project is a hybrid of ObjC and Swift code. I also upgraded to cocoa pods 0.38.2. After the upgrade, the project has failed to compile. Specifically, compilation is failing with the following error:
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
I have traced this problem to the following message:
MergeSwiftModule normal x86_64 /Users/murdockcrc/repos/HdV%20-%20iOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/SwiftyJSON.build/Objects-normal/x86_64/SwiftyJSON.swiftmodule
which fails with the following error:
<unknown>:0: error: error opening '/Users/murdockcrc/repos/HdV%20-%20iOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/SwiftyJSON.build/Objects-normal/x86_64/SwiftyJSON-Swift.h' for output: No such file or directory
The problem is not related to SwiftyJSON only. Even if I remove this library, another of my Swift dependencies will fail with the same error.
I am not knowledgeable in the way cocoa pods works with frameworks and mixed objc-swift projects, but I supposed something is wrong with the umbrella headers and making the dependencies accessible to the swift compiler.
Here is my podfile
# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
target 'Helden der Volksmusik' do
pod 'DateTools', '1.5.0'
pod 'UALogger', '~> 0.3'
pod 'KZPropertyMapper', '2.5.0'
pod 'AFNetworking', '2.5.4'
pod "MTJSONUtils"
pod "TTTAttributedLabel", "1.13.3"
pod 'PureLayout', '2.0.6'
pod 'Alamofire', '~> 2.0'
pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git', :branch => 'xcode7'
pod 'SwiftDate', :git => 'https://github.com/malcommac/SwiftDate.git', :branch => 'swift-2.0'
pod 'SwiftSpinner', '0.8.0'
end
target 'Helden der VolksmusikTests' do
pod 'DateTools', '1.5.0'
pod 'UALogger', '~> 0.3'
pod 'KZPropertyMapper', '2.5.0'
pod 'AFNetworking', '2.5.4'
pod "MTJSONUtils"
pod "TTTAttributedLabel", "1.13.3"
pod 'PureLayout', '2.0.6'
pod 'Alamofire', '~> 2.0'
pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git', :branch => 'xcode7'
pod 'SwiftDate', :git => 'https://github.com/malcommac/SwiftDate.git', :branch => 'swift-2.0'
end

cocoapods framework not found

I'm getting framework not found error when running my workspace with cocoa pod.
ld: framework not found AFNetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm looking in my build settings and I have $(inherited) set as the framework search path. Is that where cocoa pad generates the framework files?
here's my Podfile:
# Uncomment this line to define a global platform for your project
# platform :ios, '7.0'
use_frameworks!
target 'workouttracker' do
pod 'AFNetworking', '~> 2.5'
pod 'ORStackView', '~> 2.0'
pod 'SwiftyJSON', '~> 2.1'
pod "MagicalRecord"
end
target 'WorkoutTrackerTests' do
end
target 'workouttracker WatchKit Extension' do
pod 'AFNetworking', '~> 2.5'
pod 'ORStackView', '~> 2.0'
pod 'SwiftyJSON', '~> 2.1'
pod "MagicalRecord"
end
target 'workouttracker WatchKit App' do
pod 'AFNetworking', '~> 2.5'
pod 'ORStackView', '~> 2.0'
pod 'SwiftyJSON', '~> 2.1'
pod "MagicalRecord"
end
This is a linking issue.
What does your LD_RUNPATH_SEARCH_PATHS & OTHER_LDFLAGS look like in the Build Target? Make sure to use the $(inherited) flag. You might see that warning as the output during pod install.

Can not archive build in xcode with cocoa pods

I'm using xCode 6.3.2 and pods of 0.37.2. I have one main target and one test target, pod file looks like :
pod 'AFNetworking', '~> 2.0'
target :'UnitTest' do
pod 'OCMock', '~> 3.1' # OCMock
end
Also i am using config files, that include both "Pods.debug.xcconfig" and "Pods Tests.debug.xcconfig"
while trying to make an archive i get an error:
ld: library not found for -lPods-UnitTest-AFNetworking
If I use run with simulator - it works well.
What can be the reason of such strange issue?
One I have this problem I fixed this way :
pod 'AFNetworking', '~> 2.0'
target :UnitTest, :exclusive => true do
pod 'OCMock', '~> 3.1' # OCMock
end
exclusive => true do this is the trick. Hope it will work for you too.