kif-framework / KIF

Keep It Functional - An iOS Functional Testing Framework
Other
6.21k stars 913 forks source link

Run time error while KIF pod installation #870

Closed sanjukhunt closed 6 years ago

sanjukhunt commented 8 years ago

I have add KIF pod file as per given instruction and here is my pod file

target 'White Rabbit' do
    pod 'WhiteRabbitCommon', :git => 'https://github.com/white-rabbit-apps/white-rabbit-common-ios.git'
    pod 'ActiveLabel', :git => 'https://github.com/white-rabbit-apps/ActiveLabel.swift', :branch => 'master'
    pod 'ALCameraViewController', :git => 'https://github.com/white-rabbit-apps/ALCameraViewController.git', :branch => 'master'
    pod 'CLImageEditor', :git => 'https://github.com/white-rabbit-apps/CLImageEditor.git', :branch => 'master'
    pod 'CLImageEditor/StickerTool', :git => 'https://github.com/white-rabbit-apps/CLImageEditor.git', :branch => 'master'
    pod 'CLImageEditor/TextTool', :git => 'https://github.com/white-rabbit-apps/CLImageEditor.git', :branch => 'master'
    pod 'CLImageEditor/SplashTool', :git => 'https://github.com/white-rabbit-apps/CLImageEditor.git', :branch => 'master'

#    pod 'SimulatorRemoteNotifications'

    pod 'Parse'
    pod 'ParseFacebookUtilsV4'
    pod 'ParseTwitterUtils'

    pod 'Appz'
    pod 'BGTableViewRowActionWithImage'
    pod 'BTNavigationDropdownMenu'
    pod 'BWWalkthrough'
    pod 'ContentfulDeliveryAPI'
    pod 'Crashlytics'
    pod 'CRToast'
    pod 'Device'
    pod 'DZNEmptyDataSet'
    pod 'Eureka'
    pod 'FBSDKCoreKit'
    pod 'FBSDKLoginKit'
    pod 'Fabric'
    pod 'IDMPhotoBrowser'
    pod 'Instabug'
    pod 'IPDFCameraViewController'
    pod 'Kingfisher'
    pod 'MMMarkdown'
    pod 'OAuthSwift'
    pod 'PagingMenuController'
    pod 'SlideMenuControllerSwift'
    pod 'SwiftDate'
    pod 'TagListView', '~> 0.5'
#    pod 'GoogleMaps'
end
target 'White RabbitTests' do
  pod 'KIF', '~> 3.0', :configurations => ['Debug']
end

it's work perfect when i run the app but it's give me following error when i test by using (⌘U)

Ld /Users/sanju/Library/Developer/Xcode/DerivedData/White_Rabbit-cojcqoiitqxrkeblkwrfgzjcrqph/Build/Products/Debug-iphonesimulator/White\ Rabbit.app/PlugIns/White\ RabbitTests.xctest/White\ RabbitTests normal x86_64
    cd "/Volumes/WORK/CurrentWork/Michael Bina/white-rabbit-ios #199"
    export IPHONEOS_DEPLOYMENT_TARGET=9.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 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -L/Users/sanju/Library/Developer/Xcode/DerivedData/White_Rabbit-cojcqoiitqxrkeblkwrfgzjcrqph/Build/Products/Debug-iphonesimulator -F/Users/sanju/Library/Developer/Xcode/DerivedData/White_Rabbit-cojcqoiitqxrkeblkwrfgzjcrqph/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -F/Users/sanju/Library/Developer/Xcode/DerivedData/White_Rabbit-cojcqoiitqxrkeblkwrfgzjcrqph/Build/Products/Debug-iphonesimulator/KIF -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -filelist /Users/sanju/Library/Developer/Xcode/DerivedData/White_Rabbit-cojcqoiitqxrkeblkwrfgzjcrqph/Build/Intermediates/White\ Rabbit.build/Debug-iphonesimulator/White\ RabbitTests.build/Objects-normal/x86_64/White\ RabbitTests.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -mios-simulator-version-min=9.1 -bundle_loader /Users/sanju/Library/Developer/Xcode/DerivedData/White_Rabbit-cojcqoiitqxrkeblkwrfgzjcrqph/Build/Products/Debug-iphonesimulator/White\ Rabbit.app/White\ Rabbit -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -ObjC -framework XCTest -framework XCTest -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/sanju/Library/Developer/Xcode/DerivedData/White_Rabbit-cojcqoiitqxrkeblkwrfgzjcrqph/Build/Intermediates/White\ Rabbit.build/Debug-iphonesimulator/White\ RabbitTests.build/Objects-normal/x86_64/White_RabbitTests.swiftmodule -framework Pods_White_RabbitTests -Xlinker -dependency_info -Xlinker /Users/sanju/Library/Developer/Xcode/DerivedData/White_Rabbit-cojcqoiitqxrkeblkwrfgzjcrqph/Build/Intermediates/White\ Rabbit.build/Debug-iphonesimulator/White\ RabbitTests.build/Objects-normal/x86_64/White\ RabbitTests_dependency_info.dat -o /Users/sanju/Library/Developer/Xcode/DerivedData/White_Rabbit-cojcqoiitqxrkeblkwrfgzjcrqph/Build/Products/Debug-iphonesimulator/White\ Rabbit.app/PlugIns/White\ RabbitTests.xctest/White\ RabbitTests

ld: framework not found CLImageEditor for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Regards, Sanju Khunt

phatmann commented 8 years ago

If you comment out the KIF pod and disable your KIF tests, do you still see the linker error?