PrideChung/FontAwesomeKit

library not found for -lFontAwesomeKit

jlubeck opened this issue · 4 comments

I'm having that error when trying to make an archive.

This is the full error:

Ld /Users/jan/Library/Developer/Xcode/DerivedData/FleetMode-apyrpzkdsacycqdausgqhbgajfcj/Build/Intermediates/ArchiveIntermediates/FleetMode/IntermediateBuildFilesPath/FleetMode.build/QA-iphoneos/FleetMode.build/Objects-normal/arm64/FleetMode normal arm64
    cd /Users/jan/Documents/Projects/iOS/DriveMode/drivemode
    export IPHONEOS_DEPLOYMENT_TARGET=7.1
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk -L/Users/jan/Library/Developer/Xcode/DerivedData/FleetMode-apyrpzkdsacycqdausgqhbgajfcj/Build/Intermediates/ArchiveIntermediates/FleetMode/BuildProductsPath/QA-iphoneos -F/Users/jan/Library/Developer/Xcode/DerivedData/FleetMode-apyrpzkdsacycqdausgqhbgajfcj/Build/Intermediates/ArchiveIntermediates/FleetMode/BuildProductsPath/QA-iphoneos -F/Users/jan/Documents/Projects/iOS/DriveMode/drivemode/Frameworks -filelist /Users/jan/Library/Developer/Xcode/DerivedData/FleetMode-apyrpzkdsacycqdausgqhbgajfcj/Build/Intermediates/ArchiveIntermediates/FleetMode/IntermediateBuildFilesPath/FleetMode.build/QA-iphoneos/FleetMode.build/Objects-normal/arm64/FleetMode.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=7.1 -dead_strip -fembed-bitcode -Xlinker -bitcode_hide_symbols -Xlinker -bitcode_symbol_map -Xlinker /Users/jan/Library/Developer/Xcode/DerivedData/FleetMode-apyrpzkdsacycqdausgqhbgajfcj/Build/Intermediates/ArchiveIntermediates/FleetMode/BuildProductsPath/QA-iphoneos -ObjC -lFontAwesomeKit -lMBSwitch -lMSCellAccessory -lPDKeychainBindingsController -lRBBAnimation -lReachability -lSDCAlertView -lSDCAutoLayout -lSVProgressHUD -lSWTableViewCell -llibPhoneNumber-iOS -framework CoreTelephony -framework CoreText -framework QuartzCore -framework Security -framework SystemConfiguration -framework UIKit -fobjc-arc -fobjc-link-runtime -framework MessageUI -framework AVFoundation -framework CoreLocation -framework CoreTelephony -framework CoreGraphics -framework UIKit -framework Foundation -lPods -Xlinker -dependency_info -Xlinker /Users/jan/Library/Developer/Xcode/DerivedData/FleetMode-apyrpzkdsacycqdausgqhbgajfcj/Build/Intermediates/ArchiveIntermediates/FleetMode/IntermediateBuildFilesPath/FleetMode.build/QA-iphoneos/FleetMode.build/Objects-normal/arm64/FleetMode_dependency_info.dat -o /Users/jan/Library/Developer/Xcode/DerivedData/FleetMode-apyrpzkdsacycqdausgqhbgajfcj/Build/Intermediates/ArchiveIntermediates/FleetMode/IntermediateBuildFilesPath/FleetMode.build/QA-iphoneos/FleetMode.build/Objects-normal/arm64/FleetMode

ld: library not found for -lFontAwesomeKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)

What's strange is that I can compile for the simulator.

Can you post your Podfile here? I've encounter a similar error before, it's something related to CocoaPods.

Sure, here it is:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.1'

pod "Reachability"
pod 'PDKeychainBindingsController'
pod 'FontAwesomeKit', :head
pod 'SVProgressHUD'
pod 'SWTableViewCell', '0.3.7'
pod 'libPhoneNumber-iOS'
pod 'MBSwitch', :git => 'https://github.com/jlubeck/MBSwitch'
pod 'MSCellAccessory'
pod 'SDCAlertView', :git => 'https://github.com/sberrevoets/SDCAlertView.git', :commit => '1c2f54ec26b0011e823b4c1aefd9c4e2450bc073'

target 'FleetModeTests', :exclusive => true do
  pod 'OCMock'
  pod 'Nocilla'
  pod 'KIF', '~> 3.0'
end

target 'FleetModeUITests', :exclusive => true do
    pod 'OCMock'
    pod 'Nocilla'
    pod 'KIF', '~> 3.0'
end

target 'ControllerTests', :exclusive => true do
    pod 'OCMock'
    #pod 'Nocilla'
end

Try this👇

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.1'

target 'FleetMode' do
  pod "Reachability"
  pod 'PDKeychainBindingsController'
  pod 'FontAwesomeKit', :head
  pod 'SVProgressHUD'
  pod 'SWTableViewCell', '0.3.7'
  pod 'libPhoneNumber-iOS'
  pod 'MBSwitch', :git => 'https://github.com/jlubeck/MBSwitch'
  pod 'MSCellAccessory'
  pod 'SDCAlertView', :git => 'https://github.com/sberrevoets/SDCAlertView.git', :commit => '1c2f54ec26b0011e823b4c1aefd9c4e2450bc073'
end

target 'FleetModeTests', :exclusive => true do
  pod 'OCMock'
  pod 'Nocilla'
  pod 'KIF', '~> 3.0'
end

target 'FleetModeUITests', :exclusive => true do
    pod 'OCMock'
    pod 'Nocilla'
    pod 'KIF', '~> 3.0'
end

target 'ControllerTests', :exclusive => true do
    pod 'OCMock'
    #pod 'Nocilla'
end

My issue was somewhere else. Sorry about this