clang: error: сбой команды компоновщика с кодом выхода 1 (используйте -v для просмотра вызова) Xcode 10.2.1 - PullRequest
0 голосов
/ 08 июня 2019

Я знаю, что этот вопрос задавался много раз, и есть много вероятных ответов, но ни один из них не помог мне преодолеть мою проблему.
Вот некоторые возможные решения, которые я пробую.
Solution1 Solution2 и множество предлагаемых решений на сайте.

Я также использую службу уведомлений и расширение содержимого уведомлений в своем проекте. Также я использую firebase для push-уведомлений.
С тех пор, как я интегрировал файлы .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)

Пожалуйста, предложите, какое возможное решение, или я сделал что-то не так,
Пожалуйста, дайте мне знать, если мне потребуется какое-либо дополнительное объяснение или подробности

1 Ответ

0 голосов
/ 11 июня 2019

Выполните следующие действия, чтобы найти решение .

Из журналов, которые я разместил выше, ясно, что проблема в моем случае была с Содержимое уведомлений & Служба уведомлений Цели расширения

Итак, следуя Эта ссылка основана на флаге -L или -R , который вы получаете в журналах,
Удалите пути, добавленные для Путь поиска в библиотеке или Пути поиска в платформе , в зависимости от необходимости.
В моем случае я должен был сделать это для Служба уведомлений и расширение содержания уведомлений target

Это может вызвать больше ошибок, когда вы можете начать получать ошибки для другой платформы или пути поиска для той же цели (, как и у меня ),
Если такое случается для какой-либо цели, попробуйте удалить Другие флаги компоновщика для целей, для которых вы получаете ошибку.

В моем случае удаление Пути поиска в библиотеке & Framework Search Paths , а также Другие флаги компоновщика Сделало свое дело для меня.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...