gpt4 book ai didi

ios - 铿锵: error: linker command failed with exit code 1 (use -v to see invocation) Xcode 10. 2.1

转载 作者:行者123 更新时间:2023-11-28 23:30:59 26 4
gpt4 key购买 nike

我知道这个问题已经被问了很多次,并且有很多可能的答案,但它们都没有帮助我解决我的问题。
这是我正在尝试的一些可能的解决方案。
Solution1 Solution2以及网站上的许多建议解决方案。

我还在我的项目中使用通知服务和通知内容扩展。我还使用 firebase 来推送通知。
自从我使用 This 集成 .xcconfig 文件来管理登台和生产配置以来教程所有问题都已经开始了。


Showing Recent Messages

Ld /Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/NotificationContent.appex/NotificationContent normal x86_64
cd /Users/vipulthaware/HealthDekho/Projects/B2C/App/Code
export IPHONEOS_DEPLOYMENT_TARGET=12.2
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 -Xlinker -rpath -Xlinker /usr/lib/swift -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk -L/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator -L/Users/vipulthaware/HealthDekho/Projects/B2C/App/Code/Pods/FreshchatSDK/FreshchatSDK -L/Users/vipulthaware/HealthDekho/Projects/B2C/App/Code/Pods/FreshchatSDK -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/AMPopTip -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/AWSCore -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/AWSS3 -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Alamofire -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/AlamofireSwiftyJSON -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Arcane -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/BSErrorMessageView -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Bolts -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Cosmos -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/CreditCardValidator -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/DynamicBlurView -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/FBSDKCoreKit -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/FeedKit -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/FirebaseCore -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/FirebaseDynamicLinks -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/FirebaseMessaging -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/GoogleUtilities -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/IQKeyboardManagerSwift -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/ImageSlideshow -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/JVFloatLabeledTextField -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/KVNProgress -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/MarqueeLabel -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Moya -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/NKVPhonePicker -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/OpalImagePicker -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/PopupDialog -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Protobuf -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/RadioButton -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/ReachabilitySwift -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Result -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/SBTickerView -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/SDWebImage -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/SVProgressHUD -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Shimmer -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/SwiftValidator -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/SwiftyJSON -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/UPCarouselFlowLayout -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/ViewPager-Swift -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/WMGaugeView -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/libwebp -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/lottie-ios -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/nanopb -F/Users/vipulthaware/HealthDekho/Projects/B2C/App/Code/Pods/AppsFlyerFramework -F/Users/vipulthaware/HealthDekho/Projects/B2C/App/Code/Pods/Crashlytics/iOS -F/Users/vipulthaware/HealthDekho/Projects/B2C/App/Code/Pods/FBSDKMarketingKit -F/Users/vipulthaware/HealthDekho/Projects/B2C/App/Code/Pods/Fabric/iOS -F/Users/vipulthaware/HealthDekho/Projects/B2C/App/Code/Pods/FirebaseAnalytics/Frameworks -F/Users/vipulthaware/HealthDekho/Projects/B2C/App/Code/Pods/FirebaseInstanceID/Frameworks -F/Users/vipulthaware/HealthDekho/Projects/B2C/App/Code/Pods/GoogleAppMeasurement/Frameworks -filelist /Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Intermediates.noindex/B2C.build/Debug-iphonesimulator/NotificationContent.build/Objects-normal/x86_64/NotificationContent.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -mios-simulator-version-min=12.2 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Intermediates.noindex/B2C.build/Debug-iphonesimulator/NotificationContent.build/Objects-normal/x86_64/NotificationContent_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fapplication-extension -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Intermediates.noindex/B2C.build/Debug-iphonesimulator/NotificationContent.build/Objects-normal/x86_64/NotificationContent.swiftmodule -ObjC -lFDFreshchatSDK -lc++ -lsqlite3 -lz -framework AMPopTip -framework AVFoundation -framework AWSCore -framework AWSS3 -framework Accelerate -framework AdSupport -framework Alamofire -framework AlamofireSwiftyJSON -framework AppsFlyerLib -framework Arcane -framework AssetsLibrary -framework AudioToolbox -framework BSErrorMessageView -framework Bolts -framework CFNetwork -framework CoreData -framework CoreGraphics -framework CoreMedia -framework CoreTelephony -framework Cosmos -framework Crashlytics -framework CreditCardValidator -framework DynamicBlurView -framework FBSDKCoreKit -framework FBSDKMarketingKit -framework FIRAnalyticsConnector -framework Fabric -framework FeedKit -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseDynamicLinks -framework FirebaseInstanceID -framework FirebaseMessaging -framework Foundation -framework GLKit -framework GoogleAppMeasurement -framework GoogleUtilities -framework IQKeyboardManagerSwift -framework ImageIO -framework ImageSlideshow -framework JVFloatLabeledTextField -framework KVNProgress -framework Lottie -framework MarqueeLabel -framework MessageUI -framework Moya -framework NKVPhonePicker -framework OpalImagePicker -framework Photos -framework PopupDialog -framework Protobuf -framework QuartzCore -framework RadioButton -framework ReachabilitySwift -framework Result -framework SBTickerView -framework SDWebImage -framework SVProgressHUD -framework Security -framework Shimmer -framework StoreKit -framework SwiftValidator -framework SwiftyJSON -framework SystemConfiguration -framework UIKit -framework UPCarouselFlowLayout -framework ViewPager_Swift -framework WMGaugeView -framework iAd -framework libwebp -framework nanopb -weak_framework Accounts -weak_framework AudioToolbox -weak_framework CoreGraphics -weak_framework CoreLocation -weak_framework Foundation -weak_framework QuartzCore -weak_framework Security -weak_framework Social -weak_framework UIKit -weak_framework WebKit -e _NSExtensionMain -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Intermediates.noindex/B2C.build/Debug-iphonesimulator/NotificationContent.build/NotificationContent.appex-Simulated.xcent -framework UserNotificationsUI -framework UserNotifications -Xlinker -dependency_info -Xlinker /Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Intermediates.noindex/B2C.build/Debug-iphonesimulator/NotificationContent.build/Objects-normal/x86_64/NotificationContent_dependency_info.dat -o /Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/NotificationContent.appex/NotificationContent

ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/AWSCore'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/AWSS3'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Bolts'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/FBSDKCoreKit'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/FeedKit'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/FirebaseCore'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/FirebaseDynamicLinks'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/FirebaseMessaging'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/GoogleUtilities'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/JVFloatLabeledTextField'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Moya'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/OpalImagePicker'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Protobuf'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/RadioButton'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/SBTickerView'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/SDWebImage'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/SVProgressHUD'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/UPCarouselFlowLayout'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/ViewPager-Swift'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/WMGaugeView'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/libwebp'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/lottie-ios'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/nanopb'
ld: framework not found AMPopTip
clang: error: linker command failed with exit code 1 (use -v to see invocation)

请建议可能的解决方案是什么,或者我做错了什么,
如果我方需要任何额外的解释或细节,请告诉我

最佳答案

按照这些步骤找到解决方案

从我上面发布的日志可以清楚地看出,我的问题是通知内容通知服务扩展目标

接着This Link根据您在日志中获得的 -L-R 标志,
根据需要删除为 Library Search PathFramework Search Paths 添加的路径。
对于我的情况,我必须为通知服务和通知内容扩展目标执行此操作

这可能会导致更多错误,您可能会开始收到其他框架的错误或同一目标的搜索路径(我就是这种情况),
如果任何目标发生这种情况,请尝试删除您收到错误的目标的 Other Linker Flags

在我的例子中,删除Library Search Path & Framework Search Paths 以及Other Linker Flags 对我有用。

关于ios - 铿锵: error: linker command failed with exit code 1 (use -v to see invocation) Xcode 10. 2.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56506688/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com