react-native ios build error-clang:error:链接器命令失败,退出代码为1(使用-v查看调用)

问题描述 投票:0回答:1

[我们正在尝试使用react native来构建iOS版本,但我们的版本因以下错误而陷入困境。请帮助我们解决此问题。

我们正在使用cocoapods:1.8.4版本

ld:-lCocoaAsyncSocket找不到库[sshexec] [exec] clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)[sshexec] [exec] [sshexec] [exec] **归档失败** [sshexec] [exec] [ sshexec] [exec] [sshexec] [exec]以下构建命令失败:[sshexec] [exec] Ld /Users/macbuild/Library/Developer/Xcode/DerivedData/spm_mobile-awskmlvxgyrsozddnaorzehbvupe/Build/Intermediates.noindex/ArchiveIntermediates/spm_mobile /IntermediateBuildFilesPath/spm_mobile.build/Release-iphoneos/spm_mobile.build/Objects-normal/armv7/spm_mobile normal armv7 [sshexec] [exec] Ld / Users / macbuild / Library / Developer / Xcode / DerivedData / spm_mobile-awskmlvxgyrsozupeze Intermediates.noindex / ArchiveIntermediates / spm_mobile / IntermediateBuildFilesPath / spm_mobile.build / Release-iphoneos / spm_mobile.build / Objects-normal / arm64 / spm_mobile正常arm64 [sshexec] [exec](2个失败)[sshexec] [exec] + GenerateArchive [ sshexec] [exec] + /Applications/Xcode_11_3_1.app/Contents/Developer/usr/bin/xcodebuild-exportArchive -exportOptionsPlist /Users/macbuild/WH_DIR/Apr_20_2020/SPM_MOBILE_IOS/3025072/MACSRC/build/profiles/Appstore/exportOptions.plist -archivePath / Users / macbuild / WH_DIR / Apr_20_2020 / SPM_MOBILE_IOS / 302。 ios / spm_mobile.xcarchive-exportPath /Users/macbuild/WH_DIR/Apr_20_2020/SPM_MOBILE_IOS/3025072/MACSRC/build/../ios/spm_mobile.xcarchive/Products/Applications [sshexec] [exec] **导出失败** [sshexec] [exec] [ sshexec] [exec]错误:在路径'/Users/macbuild/WH_DIR/Apr_20_2020/SPM_MOBILE_IOS/3025072/MACSRC/ios/spm_mobile.xcarchive'中找不到档案[sshexec] [exec]结果:65 [sshexec] [echo] ExitValue从任务是:65

ios react-native cocoapods react-native-ios
1个回答
0
投票

我有一个类似的问题,但是当我统一构建游戏时,当搜索问题时并没有真正找到任何东西,但是对我有用的是,我没有使用文件“ xcodeproj”,而是使用了“ xcworkspace”。当时还不知道它为什么能工作,但搜索了我发现的this两种文件类型的差异,请参阅最后一段。

CocoaPods,它会自动为您处理第三方库,使用工作区。因此,当您使用CocoaPods(很多人都这样做)时,也必须使用它们。

© www.soinside.com 2019 - 2024. All rights reserved.