iOS版本:命令ld失败,退出码为零

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

对于一个本机项目,在Xcode构建期间出现以下错误:

clang: error: no such file or directory: '/Users/user172615/Library/Developer/Xcode/DerivedData/xxx/Build/Products/Debug-appletvsimulator/libBVLinearGradient.a' Command Ld failed with a nonzero exit code

这是在添加react-native-linear-gradient之后并按照https://github.com/react-native-community/react-native-linear-gradient(iOS的手动安装)中的说明进行的。

  1. https://github.com/react-native-community/react-native-linear-gradient#manually中所指定,libBVLinearGradient.a包含在目标Build Phases -> Link Binary With LibrariesmyProject中>
  2. libBVLinearGradient.a也包含在General -> Frameworks, Libraries and embedded content中。
  3. 我尝试删除DerivedData,然后重建。没有帮助。
  4. 由于错误指示Debug-appletvsimulator,所以我在目标Build Phases -> Link Binary With LibrariesmyProject-tvOS中包括了libBVLinearGradient.a
  5. [这没有帮助时,我删除了myProject-tvOS目标。所有人都没有帮助。
  6. 我正在使用Xcode 11.3,本机反应为0.59.9。

任何想法?

对于本机项目,我在Xcode构建期间遇到以下错误:clang:错误:没有这样的文件或目录:'/ Users / user172615 / Library / Developer / Xcode / DerivedData / xxx / Build / Products / Debug- ...

xcode react-native-ios
1个回答
1
投票
  1. 而不是下载它,而是这样做。
© www.soinside.com 2019 - 2024. All rights reserved.