ruslanskorb / RSDayFlow

iOS 7+ Calendar (Date Picker) with Infinite Scrolling.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ld: library not found for -lPods-RSDayFlow

hhimanshu opened this issue · comments

Hey @ruslanskorb, I am upgrading my app and recently while building it with XCode 7
screen shot 2016-01-02 at 2 02 13 pm

I found the following issue

Ld /Users/harit/Library/Developer/Xcode/DerivedData/pennyapp-ios-fnldclmxvnwrawfbaoclogfjlzzo/Build/Products/Debug-iphonesimulator/pennyapp-ios.app/pennyapp-ios normal x86_64
    cd /Users/harit/code/ios/pennyapp-ios
    export IPHONEOS_DEPLOYMENT_TARGET=7.1
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -L/Users/harit/Library/Developer/Xcode/DerivedData/pennyapp-ios-fnldclmxvnwrawfbaoclogfjlzzo/Build/Products/Debug-iphonesimulator -L. -LGooglePlus.bundle -Lpennyapp-ios -Lpennyapp-ios.xcworkspace -Lpennyapp-iosTests -LPods -LGooglePlus.bundle/GPPCommonSharedResources.bundle -LGooglePlus.bundle/GPPShareboxSharedResources.bundle -Lpennyapp-ios/features -Lpennyapp-ios/src -Lpennyapp-ios/to -Lpennyapp-ios.xcworkspace/xcshareddata -Lpennyapp-ios.xcworkspace/xcuserdata -LPods/AFNetworking -LPods/Headers -LPods/Local\ Podspecs -LPods/MBProgressHUD -LPods/REFrostedViewController -LPods/RSDayFlow -LPods/SOCKit -LPods/SWTableViewCell -LPods/Target\ Support\ Files -LGooglePlus.bundle/GPPShareboxSharedResources.bundle/GPPNativeShareBuilderImpl.storyboardc -LGooglePlus.bundle/GPPShareboxSharedResources.bundle/GPPNativeShareBuilderImpl~ipad.storyboardc -Lpennyapp-ios/features/add -Lpennyapp-ios/features/budget -Lpennyapp-ios/features/login -Lpennyapp-ios/features/menu -Lpennyapp-ios/features/monthlySummary -Lpennyapp-ios/features/transaction -Lpennyapp-ios/src/api -Lpennyapp-ios/src/model -Lpennyapp-ios/src/utility -Lpennyapp-ios.xcworkspace/xcuserdata/harit.xcuserdatad -LPods/AFNetworking/AFNetworking -LPods/AFNetworking/UIKit+AFNetworking -LPods/Headers/Private -LPods/Headers/Public -LPods/REFrostedViewController/REFrostedViewController -LPods/RSDayFlow/RSDayFlow -LPods/SWTableViewCell/SWTableViewCell -LPods/Target\ Support\ Files/AFNetworking -LPods/Target\ Support\ Files/MBProgressHUD -LPods/Target\ Support\ Files/Pods -LPods/Target\ Support\ Files/REFrostedViewController -LPods/Target\ Support\ Files/RSDayFlow -LPods/Target\ Support\ Files/SWTableViewCell -Lpennyapp-ios/src/api/budgets -Lpennyapp-ios/src/api/categories -Lpennyapp-ios/src/api/data -Lpennyapp-ios/src/api/monthlySummary -Lpennyapp-ios/src/api/rest -Lpennyapp-ios/src/api/transactions -Lpennyapp-ios/src/model/budget -Lpennyapp-ios/src/model/category -Lpennyapp-ios/src/model/monthlySummary -Lpennyapp-ios/src/model/transaction -Lpennyapp-ios/src/model/transactions -LPods/Headers/Private/AFNetworking -LPods/Headers/Private/MBProgressHUD -LPods/Headers/Private/REFrostedViewController -LPods/Headers/Private/RSDayFlow -LPods/Headers/Private/SWTableViewCell -LPods/Headers/Public/AFNetworking -LPods/Headers/Public/MBProgressHUD -LPods/Headers/Public/REFrostedViewController -LPods/Headers/Public/RSDayFlow -LPods/Headers/Public/SWTableViewCell -LPods/SWTableViewCell/SWTableViewCell/PodFiles -L/Users/harit/code/ios/pennyapp-ios/Pods/build/Debug-iphoneos -F/Users/harit/Library/Developer/Xcode/DerivedData/pennyapp-ios-fnldclmxvnwrawfbaoclogfjlzzo/Build/Products/Debug-iphonesimulator -F. -FGooglePlus.bundle -Fpennyapp-ios -Fpennyapp-ios.xcworkspace -Fpennyapp-iosTests -FPods -FGooglePlus.bundle/GPPCommonSharedResources.bundle -FGooglePlus.bundle/GPPShareboxSharedResources.bundle -Fpennyapp-ios/features -Fpennyapp-ios/src -Fpennyapp-ios/to -Fpennyapp-ios.xcworkspace/xcshareddata -Fpennyapp-ios.xcworkspace/xcuserdata -FPods/AFNetworking -FPods/Headers -FPods/Local\ Podspecs -FPods/MBProgressHUD -FPods/REFrostedViewController -FPods/RSDayFlow -FPods/SOCKit -FPods/SWTableViewCell -FPods/Target\ Support\ Files -FGooglePlus.bundle/GPPShareboxSharedResources.bundle/GPPNativeShareBuilderImpl.storyboardc -FGooglePlus.bundle/GPPShareboxSharedResources.bundle/GPPNativeShareBuilderImpl~ipad.storyboardc -Fpennyapp-ios/features/add -Fpennyapp-ios/features/budget -Fpennyapp-ios/features/login -Fpennyapp-ios/features/menu -Fpennyapp-ios/features/monthlySummary -Fpennyapp-ios/features/transaction -Fpennyapp-ios/src/api -Fpennyapp-ios/src/model -Fpennyapp-ios/src/utility -Fpennyapp-ios.xcworkspace/xcuserdata/harit.xcuserdatad -FPods/AFNetworking/AFNetworking -FPods/AFNetworking/UIKit+AFNetworking -FPods/Headers/Private -FPods/Headers/Public -FPods/REFrostedViewController/REFrostedViewController -FPods/RSDayFlow/RSDayFlow -FPods/SWTableViewCell/SWTableViewCell -FPods/Target\ Support\ Files/AFNetworking -FPods/Target\ Support\ Files/MBProgressHUD -FPods/Target\ Support\ Files/Pods -FPods/Target\ Support\ Files/REFrostedViewController -FPods/Target\ Support\ Files/RSDayFlow -FPods/Target\ Support\ Files/SWTableViewCell -Fpennyapp-ios/src/api/budgets -Fpennyapp-ios/src/api/categories -Fpennyapp-ios/src/api/data -Fpennyapp-ios/src/api/monthlySummary -Fpennyapp-ios/src/api/rest -Fpennyapp-ios/src/api/transactions -Fpennyapp-ios/src/model/budget -Fpennyapp-ios/src/model/category -Fpennyapp-ios/src/model/monthlySummary -Fpennyapp-ios/src/model/transaction -Fpennyapp-ios/src/model/transactions -FPods/Headers/Private/AFNetworking -FPods/Headers/Private/MBProgressHUD -FPods/Headers/Private/REFrostedViewController -FPods/Headers/Private/RSDayFlow -FPods/Headers/Private/SWTableViewCell -FPods/Headers/Public/AFNetworking -FPods/Headers/Public/MBProgressHUD -FPods/Headers/Public/REFrostedViewController -FPods/Headers/Public/RSDayFlow -FPods/Headers/Public/SWTableViewCell -FPods/SWTableViewCell/SWTableViewCell/PodFiles -filelist /Users/harit/Library/Developer/Xcode/DerivedData/pennyapp-ios-fnldclmxvnwrawfbaoclogfjlzzo/Build/Intermediates/pennyapp-ios.build/Debug-iphonesimulator/pennyapp-ios.build/Objects-normal/x86_64/pennyapp-ios.LinkFileList -mios-simulator-version-min=7.1 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -lPods-RSDayFlow -lPods-MBProgressHUD -lPods-SWTableViewCell -lPods-REFrostedViewController -lPods-AFNetworking -framework QuartzCore -framework Foundation -framework CoreGraphics -framework GoogleOpenSource -framework UIKit -framework AddressBook -framework AssetsLibrary -framework CoreLocation -framework CoreMotion -framework CoreText -framework GooglePlus -framework Security -framework SystemConfiguration -framework MediaPlayer -lPods -Xlinker -dependency_info -Xlinker /Users/harit/Library/Developer/Xcode/DerivedData/pennyapp-ios-fnldclmxvnwrawfbaoclogfjlzzo/Build/Intermediates/pennyapp-ios.build/Debug-iphonesimulator/pennyapp-ios.build/Objects-normal/x86_64/pennyapp-ios_dependency_info.dat -o /Users/harit/Library/Developer/Xcode/DerivedData/pennyapp-ios-fnldclmxvnwrawfbaoclogfjlzzo/Build/Products/Debug-iphonesimulator/pennyapp-ios.app/pennyapp-ios

ld: warning: directory not found for option '-L/Users/harit/code/ios/pennyapp-ios/Pods/build/Debug-iphoneos'
ld: library not found for -lPods-RSDayFlow
clang: error: linker command failed with exit code 1 (use -v to see invocation)

My Podfile has the following content

platform :ios, '7.0'
pod 'REFrostedViewController', '~> 2.4.7'
pod 'AFNetworking', '~> 2.4'
pod 'SWTableViewCell', '~> 0.3.6'
pod 'MBProgressHUD', '~> 0.8'
pod 'RSDayFlow'

I do pod install and I open .xcworkspace
Do you think I am doing something wrong?

Hi @hhimanshu,
Try to clean the build directory (from DerivedData sub-folder) for your project, open .xcworkspace, build the project and check the result.

I did as you recommended but it did not fix the issue, following is how I did it

buildfail

Did I miss anything?

Same for me. I solved it by deleting .lock file and workspace, then pod install again.

@acidos @ruslanskorb , I removed the contents from DerivedData folder. I closed XCode. Then I did following

$ ls
GoogleOpenSource.framework  GooglePlus.framework        Podfile.lock            pennyapp-ios            pennyapp-ios.xcworkspace
GooglePlus.bundle       Podfile             Pods                pennyapp-ios.xcodeproj      pennyapp-iosTests
Harits-MacBook-Pro-2:pennyapp-ios harit$ rm -rf Podfile.lock pennyapp-ios.xcworkspace Pods/
Harits-MacBook-Pro-2:pennyapp-ios harit$ pod install
Updating local specs repositories

CocoaPods 1.0.0.beta.2 is available.
To update use: `sudo gem install cocoapods --pre`
[!] This is a test version we'd love you to try.

For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.

Analyzing dependencies
Downloading dependencies
Installing AFNetworking (2.6.3)
Installing MBProgressHUD (0.9.2)
Installing REFrostedViewController (2.4.8)
Installing RSDayFlow (1.3.0)
Installing SWTableViewCell (0.3.7)
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `pennyapp-ios.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There are 5 dependencies from the Podfile and 5 total pods installed.

I then opened XCode and picked pennyapp-ios.xcworkspace. Then I did ⌘B to build it and it still fails for the same reason

ld: warning: directory not found for option '-L/Users/harit/code/ios/pennyapp-ios/Pods/build/Debug-iphoneos'
ld: library not found for -lPods-RSDayFlow
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I am using the following version of OSX
screen shot 2016-01-06 at 6 51 32 am

I found it out. In my case, I had to link the pod libraries in build settings. See below

screen shot 2016-01-06 at 7 29 28 am

Shouldn't they link on their own when we open .xcworkspace?
That fixed the issue. Thanks a lot