当我尝试构建项目时出现错误。
fatal error :找不到模块映射文件“/Users/user/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator/YogaKit/YogaKit.modulemap
”
我能做什么?
最佳答案
请仅尝试必要的步骤,但如果仍然不起作用,请尝试一切,包括必要和不必要的步骤。
1 - 不重要(Package.json)
"dependencies": {
"react": "17.0.1",
"react-native": "0.64.2"
}
2 - 必要
use_flipper!()
post_install do |installer|
react_native_post_install(installer)
installer.pods_project.build_configurations.each do |config| config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
或者
use_flipper!()
post_install do |installer|
react_native_post_install(installer)
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings["ONLY_ACTIVE_ARCH"] = "NO"
end
end
end
3 - 在架构->排除的架构
下添加arm64
4 - 在您的项目下添加一个 swift 文件,可以为空,可以是 BridgingFile.swift
(没什么特别的),这将触发桥接 header 。 瓦拉,给你。
引用:https://github.com/facebook/react-native/issues/29605#issuecomment-861783673
关于ios - XCode 错误 'YogaKit.modulemap' 未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73771717/