gpt4 book ai didi

ios - 尝试构建存档 Xcode : clang: error: linker command failed with exit code 1 (use -v to see invocation) 时出错

转载 作者:行者123 更新时间:2023-11-28 07:37:17 26 4
gpt4 key购买 nike

我最近更新了我的 Xcode,并为基于旧版 Xcode 构建的应用程序重新安装了旧版本。

现在我的电脑上安装了 Xcode 10 和 Xcode 9.2。

我已经在命令行中设置了默认的Xcode 9.2,我已经将位置更改为Xcode 9.2

我尝试在 finder 中加载 Name.xcworkspace 而不是 Name.xcodeproj。

我试过分解并重新安装我的 Cocoapods

然而,每当我尝试构建存档时,我都会收到此错误。

我还能尝试什么?我需要将新版本推送到 App Store,但由于这个错误,我根本做不到。

我还注意到跳转到定义也不起作用,所以我假设这里一定有某种关系。

话虽这么说,应用程序的开发版本非常适合模拟器。

这里还有什么问题?我该如何解决这个问题?

我已经看到了一些关于这个的问题,但我已经完成了其他问题所要求的一切

完整错误日志:

Ld /Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/IntermediateBuildFilesPath/Candy.build/Release-iphoneos/Candy.build/Objects-normal/armv7/Candy normal armv7
cd /Users/andy/Desktop/Projects/pinyada-final/candy/Candy
export IPHONEOS_DEPLOYMENT_TARGET=10.0
export PATH="/Applications/Xcode 9.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode 9.2.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode\ 9.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode\ 9.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -L/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos -L/Users/andy/Desktop/Projects/pinyada-final/candy/Candy/Pods/CardIO/CardIO -L/Users/andy/Desktop/Projects/pinyada-final/candy/Candy/Pods/GoogleAnalytics/Libraries -L/Users/andy/Desktop/Projects/pinyada-final/candy/Candy/Pods/PayPal-iOS-SDK/PayPalMobile -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/ARChromeActivity -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/AeroGearHttp -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/AeroGearOAuth2 -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/Alamofire -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/AlamofireNetworkActivityIndicator -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/Bolts -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/EAIntroView -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/EARestrictedScrollView -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/EmitterKit -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/Eureka -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/FBSDKCoreKit -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/FBSDKLoginKit -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/FBSDKShareKit -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/FacebookCore -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/FacebookLogin -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/FacebookShare -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/GMStepper -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/GoogleToolboxForMac -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/KINWebBrowser -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/Koloda -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/PKHUD -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/SimpleKeychain -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/SnapKit -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/SwiftyJSON -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/TUSafariActivity -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/Unbox -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/UnboxedAlamofire -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/pop -F/Users/andy/Desktop/Projects/pinyada-final/candy/Candy/Pods/AppsFlyerFramework -F/Users/andy/Desktop/Projects/pinyada-final/candy/Candy/Pods/Button -F/Users/andy/Desktop/Projects/pinyada-final/candy/Candy/Pods/FirebaseAnalytics/Frameworks -F/Users/andy/Desktop/Projects/pinyada-final/candy/Candy/Pods/FirebaseCore/Frameworks -F/Users/andy/Desktop/Projects/pinyada-final/candy/Candy/Pods/FirebaseInstanceID/Frameworks -F/Users/andy/Desktop/Projects/pinyada-final/candy/Candy/Pods/Google/Frameworks -F/Users/andy/Desktop/Projects/pinyada-final/candy/Candy/Pods/Pushwoosh/Framework -filelist /Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/IntermediateBuildFilesPath/Candy.build/Release-iphoneos/Candy.build/Objects-normal/armv7/Candy.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=10.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/IntermediateBuildFilesPath/Candy.build/Release-iphoneos/Candy.build/Objects-normal/armv7/Candy_lto.o -fembed-bitcode -Xlinker -bitcode_verify -Xlinker -bitcode_hide_symbols -Xlinker -bitcode_symbol_map -Xlinker /Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos -Xlinker -final_output -Xlinker /Applications/Candy.app/Candy -fobjc-link-runtime -L/Applications/Xcode\ 9.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/IntermediateBuildFilesPath/Candy.build/Release-iphoneos/Candy.build/Objects-normal/armv7/Candy.swiftmodule -ObjC -lCardIO -lGoogleAnalytics -lPayPalMobile -lc++ -lopencv_core -lopencv_imgproc -lsqlite3 -lstdc++ -lz -framework ARChromeActivity -framework AVFoundation -framework Accelerate -framework AdSupport -framework AddressBook -framework AeroGearHttp -framework AeroGearOAuth2 -framework Alamofire -framework AlamofireNetworkActivityIndicator -framework AppsFlyerLib -framework AssetsLibrary -framework AudioToolbox -framework Bolts -framework Button -framework CoreData -framework CoreFoundation -framework CoreLocation -framework CoreMedia -framework CoreMotion -framework CoreVideo -framework EAIntroView -framework EARestrictedScrollView -framework EmitterKit -framework Eureka -framework FBSDKCoreKit -framework FBSDKLoginKit -framework FBSDKShareKit -framework FacebookCore -framework FacebookLogin -framework FacebookShare -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseInstanceID -framework GGLAnalytics -framework GGLCore -framework GMStepper -framework GoogleToolboxForMac -framework KINWebBrowser -framework Koloda -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework PKHUD -framework Pushwoosh -framework QuartzCore -framework Security -framework SimpleKeychain -framework SnapKit -framework StoreKit -framework SwiftyJSON -framework SystemConfiguration -framework TUSafariActivity -framework UIKit -framework Unbox -framework UnboxedAlamofire -framework iAd -framework pop -framework AdSupport -framework iAd -framework Pods_Candy -Xlinker -dependency_info -Xlinker /Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/IntermediateBuildFilesPath/Candy.build/Release-iphoneos/Candy.build/Objects-normal/armv7/Candy_dependency_info.dat -o /Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/IntermediateBuildFilesPath/Candy.build/Release-iphoneos/Candy.build/Objects-normal/armv7/Candy

ld: warning: Some object files have incompatible Objective-C category definitions. Some category metadata may be lost. All files containing Objective-C categories should be built using the same compiler.
ld: could not reparse object file in bitcode bundle: 'Invalid bitcode version (Producer: '1000.11.45.2_0' Reader: '900.0.39.2_0')', using libLTO version 'LLVM version 9.0.0, (clang-900.0.39.2)' for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

最佳答案

转到 xCode > Prefrences > Locations,并删除所有存档和派生数据,进行干净的构建,您就完成了。

关于ios - 尝试构建存档 Xcode : clang: error: linker command failed with exit code 1 (use -v to see invocation) 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53055219/

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