提问者:小点点

使用use_frameworks后找不到-lnslogger的库


我正在尝试将一个swift库导入到我的Objective C程序中,所以我需要使用命令use_frameworks!在podfile里面。但是当我放置它时,我得到以下错误:

Ld/users/user1/library/developer/xcode/deriveddata/myapp-ethzfdlmiblbkqdggndnysapvskv/build/products/debug-iphoneos/mytarget.app/mytarget普通arm64 cd“/users/user1/desktop/projects/bitbucket/myapp-ios-2/myapp”导出iphoneos_deployment_target=8.0导出路径CTS/Debug-iPhoneOS/CocoAlumberJack-F/Users/User1/Library/Developer/Xcode/DerivedData/MyApp-EthzFDLMIBLBKQGGNDYSAPVSKV/Build/Products/Debug-iPhoneOS/GoogleToolboxForMAC-F/Users/User1/Library/Developer/Xcode/DerivedData/MyApp-EthzFDLMIBLBKQGGNDYSAPVSKV/Build/Products/Debug-iPhoneOS/MBProgressud-F/UsersKet/MyApp-IOS-2/MyApp/PODS/Crashlytics/IOS-F/Users/User1/Desktop/Projects/Bitbucket/MyApp-IOS-2/MyApp/PODS/Fabric/IOS-F/Users/User1/Desktop/Projects/Bitbucket/MyApp-IOS-2/MyApp/PODS/Fabric/FireBaseAnalytics/Frameworkes/F/Users/User1/Desktop/Projects/Bitbucket/MyApp-IOS-2/MyApp/PODS/FireBaseAnalyticDNYSAPVSKV/build/intermediates.noindex/myapp.build/debug-iphoneos/mytarget.build/objects-normal/arm64/mytarget_lto.o-xlinker-export_dynamic-xlinker-no_deduplication-Fembed-bitcode-marker-Fobjc-arc-Fobjc-link-runtime-l/applications/xcode.app/contents/developer/toolchains/xcode.app/contents/developer/Kit-框架XCDLumberjackNSLogger-框架xcdyoutubekit-objc-lnslogger-lxcdlumberjacknslogger-lxcdyoutubekit-框架CFNetwork-框架JavaScriptCore-框架MediaPlayer-框架系统配置-框架UIKit-框架核心图形-框架基础-框架mapkit-lsqlite3-框架

ld:找不到-lnsLogger CLANG的库:错误:链接器命令失败,退出代码为%1(使用-v查看调用)

到目前为止我尝试过但没有成功的是:

下面是我的podfile:

use_frameworks!



platform :ios, '8.0'

abstract_target 'defaults' do


pod 'XCDYouTubeKit', '~> 2.5.3'
pod 'XCDLumberjackNSLogger', '~> 1.0.0'
pod 'MBProgressHUD', '~> 1.0.0'
pod 'QRCodeReaderViewController', '~> 4.0.2'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Fabric', '~> 1.7.6'
pod 'Crashlytics', '~> 3.10.1'
pod 'NSLogger'


 target 'myApp'
end

共1个答案

匿名用户

我可以通过这样做来解决这个问题:

目标/生成设置/其他链接器标志::删除NSLogger库