React native 配置branch.io抛出节点_modules/react native branch/ios/branch SDK/Fabric/Fabric后,ios的生成失败。h:没有这样的文件或目录

React native 配置branch.io抛出节点_modules/react native branch/ios/branch SDK/Fabric/Fabric后,ios的生成失败。h:没有这样的文件或目录,react-native,cocoapods,react-native-ios,google-fabric,branch.io,React Native,Cocoapods,React Native Ios,Google Fabric,Branch.io,请原谅,如果这是一个愚蠢的错误,但这是我的第一个项目的移动开发和反应本机。我对移动开发环境配置的了解非常少 我正在尝试对我的项目进行分支集成,在集成了branch.io之后,ios的构建失败了 我已经按照react National branch官方页面中提到的步骤进行了操作。 我安装了cocapods,并完成了上面提到的所有配置 之后就开始跑步了 react-native run-ios 我犯了错误 PBXCp /Users/bibek/Desktop/canvas-mobile-ap

请原谅,如果这是一个愚蠢的错误,但这是我的第一个项目的移动开发和反应本机。我对移动开发环境配置的了解非常少

我正在尝试对我的项目进行分支集成,在集成了branch.io之后,ios的构建失败了

我已经按照react National branch官方页面中提到的步骤进行了操作。

我安装了cocapods,并完成了上面提到的所有配置

之后就开始跑步了

react-native run-ios
我犯了错误


PBXCp /Users/bibek/Desktop/canvas-mobile-app/node_modules/react-native-branch/ios/Branch-SDK/Fabric/Answers.h /Users/bibek/Desktop/canvas-mobile-app/ios/build/Build/Products/Debug-iphonesimulator/include/Branch/Answers.h (in target: RNBranch)
    cd /Users/bibek/Desktop/canvas-mobile-app/node_modules/react-native-branch/ios
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/bibek/Desktop/canvas-mobile-app/node_modules/react-native-branch/ios/Branch-SDK/Fabric/Answers.h /Users/bibek/Desktop/canvas-mobile-app/ios/build/Build/Products/Debug-iphonesimulator/include/Branch

error: /Users/bibek/Desktop/canvas-mobile-app/node_modules/react-native-branch/ios/Branch-SDK/Fabric/Answers.h: No such file or directory


PBXCp /Users/{user_name}/Desktop/{Project_name}/node_modules/react-native-branch/ios/Branch-SDK/Fabric/ANSCompatibility.h /Users/{user_name}/Desktop/{Project_name}/ios/build/Build/Products/Debug-iphonesimulator/include/Branch/ANSCompatibility.h (in target: RNBranch)
    cd /Users/{user_name}/Desktop/{Project_name}/node_modules/react-native-branch/ios
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/{user_name}/Desktop/{Project_name}/node_modules/react-native-branch/ios/Branch-SDK/Fabric/ANSCompatibility.h /Users/{user_name}/Desktop/{Project_name}/ios/build/Build/Products/Debug-iphonesimulator/include/Branch
error: /Users/{user_name}/Desktop/{Project_name}/node_modules/react-native-branch/ios/Branch-SDK/Fabric/ANSCompatibility.h: No such file or directory


PBXCp /Users/{user_name}/Desktop/{Project_name}/node_modules/react-native-branch/ios/Branch-SDK/Branch-SDK/BNCKeyChain.h /Users/{user_name}/Desktop/{Project_name}/ios/build/Build/Products/Debug-iphonesimulator/include/Branch/BNCKeyChain.h (in target: RNBranch)
    cd /Users/{user_name}/Desktop/{Project_name}/node_modules/react-native-branch/ios
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/{user_name}/Desktop/{Project_name}/node_modules/react-native-branch/ios/Branch-SDK/Branch-SDK/BNCKeyChain.h /Users/{user_name}/Desktop/{Project_name}/ios/build/Build/Products/Debug-iphonesimulator/include/Branch

error: /Users/{user_name}/Desktop/{Project_name}/node_modules/react-native-branch/ios/Branch-SDK/Branch-SDK/BNCKeyChain.h: No such file or directory



PBXCp /Users/{user_name}/Desktop/{Project_name}/node_modules/react-native-branch/ios/Branch-SDK/Fabric/Fabric.h /Users/{user_name}/Desktop/{Project_name}/ios/build/Build/Products/Debug-iphonesimulator/include/Branch/Fabric.h (in target: RNBranch)
    cd /Users/{user_name}/Desktop/{Project_name}/node_modules/react-native-branch/ios
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/{user_name}/Desktop/{Project_name}/node_modules/react-native-branch/ios/Branch-SDK/Fabric/Fabric.h /Users/{user_name}/Desktop/{Project_name}/ios/build/Build/Products/Debug-iphonesimulator/include/Branch

error: /Users/{user_name}/Desktop/{Project_name}/node_modules/react-native-branch/ios/Branch-SDK/Fabric/Fabric.h: No such file or directory


** BUILD FAILED **


The following build commands failed:

    PBXCp /Users/{user_name}/Desktop/{Project_name}/node_modules/react-native-branch/ios/Branch-SDK/Fabric/Answers.h /Users/{user_name}/Desktop/{Project_name}/ios/build/Build/Products/Debug-iphonesimulator/include/Branch/Answers.h
    PBXCp /Users/{user_name}/Desktop/{Project_name}/node_modules/react-native-branch/ios/Branch-SDK/Fabric/ANSCompatibility.h /Users/{user_name}/Desktop/{Project_name}/ios/build/Build/Products/Debug-iphonesimulator/include/Branch/ANSCompatibility.h
    PBXCp /Users/{user_name}/Desktop/{Project_name}/node_modules/react-native-branch/ios/Branch-SDK/Branch-SDK/BNCKeyChain.h /Users/{user_name}/Desktop/{Project_name}/ios/build/Build/Products/Debug-iphonesimulator/include/Branch/BNCKeyChain.h
    PBXCp /Users/{user_name}/Desktop/{Project_name}/node_modules/react-native-branch/ios/Branch-SDK/Fabric/Fabric.h /Users/{user_name}/Desktop/{Project_name}/ios/build/Build/Products/Debug-iphonesimulator/include/Branch/Fabric.h
(4 failures)

对我来说,我使用npm作为软件包管理器,使用Thread只安装这个软件包


我解决了这个问题,移除了所有的npm包,最后安装了纱线,并执行了一个新的链接。成功了

可能是由于链接不正确,查看日志时,sdk和路径似乎没有相应设置。能否确保SDK路径和应用程序路径相同,然后尝试构建项目。