1

我正在尝试在 iOS 中构建一个简单的项目。当我尝试通过 nativescript sidekick 运行项目时,它会引发以下错误:

 [19-03-12 16:25:01.990] Error detected during LiveSync on 
  c02e202ca17e88465b0a195dc79072a9b6ab04a6 for 
  /Users/bvibes/Parthi/ManiBurs. 
 Error: Build failed. Reason is: 'Build failed with error code 2'. 
 Additional information: [00:00:43.341] [WARN]  ** ARCHIVE FAILED **
 The following build commands failed:

Ld DerivedData/ManiBurs/Build/Intermediates.noindex/ArchiveIntermediates/ManiBurs/IntermediateBuildFilesPath/ManiBurs.build/Debug-iphoneos/ManiBurs.build/Objects-normal/armv7/ManiBurs normal armv7 Ld DerivedData/ManiBurs/Build/Intermediates.noindex/ArchiveIntermediates /ManiBurs/IntermediateBuildFilesPath/ManiBurs.build/Debug-iphoneos/ManiBurs.build/Objects-normal/arm64/ManiBurs normal arm64(2次失败)[00:00:43.399] [WARN] [xcode-build] ld:找不到目录对于选项'-F/tmp/builds/_/457659ebf679bdfd010de0fc82139cb9c95cece2/5.0.3/5.0.0/ManiBurs/platforms/ios/../../node_modules/nativescript-pro-ui/platforms/ios' [xcode-build ] ld:找不到选项'-F/tmp/builds/_/457659ebf679bdfd010de0fc82139cb9c95cece2/5.0.3/5.0.0/ManiBurs/platforms/ios/../../node_modules/nativescript-pro-ui/platforms/的目录IOS' [00:00:43。404] [错误] [xcode-build] ld:找不到框架 TNSAutoComplete [xcode-build] clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)[xcode-build] ld:找不到框架TNSAutoComplete [xcode-build] clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)[00:00:43.637] [ERROR] ** ARCHIVE FAILED ** 以下构建命令失败:Ld DerivedData/ ManiBurs/Build/Intermediates.noindex/ArchiveIntermediates/ManiBurs/IntermediateBuildFilesPath/ManiBurs.build/Debug-iphoneos/ManiBurs.build/Objects-normal/armv7/ManiBurs normal armv7 Ld DerivedData/ManiBurs/Build/Intermediates.noindex/ArchiveIntermediates/ManiBurs/ IntermediateBuildFilesPath/ManiBurs.build/Debug-iphoneos/ManiBurs.build/Objects-normal/arm64/ManiBurs normal arm64(2 次失败)“构建失败,错误代码为 2”。找不到框架 TNSAutoComplete [xcode-build] clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)[xcode-build] ld:找不到框架 TNSAutoComplete [xcode-build] clang:错误:链接器命令退出代码 1 失败(使用 -v 查看调用) [00:00:43.637] [ERROR] ** ARCHIVE FAILED ** 以下构建命令失败:Ld DerivedData/ManiBurs/Build/Intermediates.noindex/ArchiveIntermediates/ManiBurs/ IntermediateBuildFilesPath/ManiBurs.build/Debug-iphoneos/ManiBurs.build/Objects-normal/armv7/ManiBurs normal armv7 Ld DerivedData/ManiBurs/Build/Intermediates.noindex/ArchiveIntermediates/ManiBurs/IntermediateBuildFilesPath/ManiBurs.build/Debug-iphoneos/ManiBurs。 build/Objects-normal/arm64/ManiBurs normal arm64(2 次失败)“构建失败,错误代码 2”。找不到框架 TNSAutoComplete [xcode-build] clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)[xcode-build] ld:找不到框架 TNSAutoComplete [xcode-build] clang:错误:链接器命令退出代码 1 失败(使用 -v 查看调用) [00:00:43.637] [ERROR] ** ARCHIVE FAILED ** 以下构建命令失败:Ld DerivedData/ManiBurs/Build/Intermediates.noindex/ArchiveIntermediates/ManiBurs/ IntermediateBuildFilesPath/ManiBurs.build/Debug-iphoneos/ManiBurs.build/Objects-normal/armv7/ManiBurs normal armv7 Ld DerivedData/ManiBurs/Build/Intermediates.noindex/ArchiveIntermediates/ManiBurs/IntermediateBuildFilesPath/ManiBurs.build/Debug-iphoneos/ManiBurs。 build/Objects-normal/arm64/ManiBurs normal arm64(2 次失败)“构建失败,错误代码 2”。

谁能帮我看看错误是什么???

4

1 回答 1

1

我在使用 Sidekick 时遇到了类似的问题,它没有为我的 Android 或 iOS 构建我的任何项目。尝试在干净的项目上运行 CLI 命令(删除所有平台)

tns build ios

tns debug ios --watch (--emulator if you are running on simulator)
于 2019-03-12T13:46:26.263 回答