首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用现有项目调试生成时出现xcode错误。(M1芯片)

问使用现有项目调试生成时出现xcode错误。(M1芯片)
EN

Stack Overflow用户
提问于 2022-07-02 09:47:15
回答 2查看 1.1K关注 0票数 -2

:0:错误:模块映射文件'/Users/victor/Library/Developer/Xcode/DerivedData/Fitaye-abbjulghomzhkphclpghuyouibfo/Build/Products/Debug-iphonesimulator/NextLevelSessionExporter/NextLevelSessionExporter.modulemap‘未找到:0:错误:模块映射文件'/Users/victor/Library/Developer/Xcode/DerivedData/Fitaye-abbjulghomzhkphclpghuyouibfo/Build/Products/Debug-iphonesimulator/react-native-compressor/react_native_compressor.modulemap’未找到:0:错误:模块映射文件'/Users/victor/Library/Developer/Xcode/DerivedData/Fitaye-abbjulghomzhkphclpghuyouibfo/Build/Products/Debug-iphonesimulator/react-native-geolocation-service/react_native_geolocation_service.modulemap‘未找到:0:错误:未找到模块映射文件'/Users/victor/Library/Developer/Xcode/DerivedData/Fitaye-abbjulghomzhkphclpghuyouibfo/Build/Products/Debug-iphonesimulator/react-native-pdf-thumbnail/react_native_pdf_thumbnail.modulemap’

:0:错误:模块映射文件'/Users/victor/Library/Developer/Xcode/DerivedData/Fitaye-abbjulghomzhkphclpghuyouibfo/Build/Products/Debug-iphonesimulator/NextLevelSessionExporter/NextLevelSessionExporter.modulemap‘未找到:0:错误:模块映射文件'/Users/victor/Library/Developer/Xcode/DerivedData/Fitaye-abbjulghomzhkphclpghuyouibfo/Build/Products/Debug-iphonesimulator/react-native-compressor/react_native_compressor.modulemap’未找到:0:错误:模块映射文件'/Users/victor/Library/Developer/Xcode/DerivedData/Fitaye-abbjulghomzhkphclpghuyouibfo/Build/未找到Products/Debug-iphonesimulator/react-native-geolocation-service/react_native_geolocation_service.modulemap‘:0:错误:模块映射文件'/Users/victor/Library/Developer/Xcode/DerivedData/Fitaye-abbjulghomzhkphclpghuyouibfo/Build/Products/Debug-iphonesimulator/react-native-pdf-thumbnail/react_native_pdf_thumbnail.modulemap’nonzero失败,退出代码为非零

:0:错误:模块映射文件'/Users/victor/Library/Developer/Xcode/DerivedData/Fitaye-abbjulghomzhkphclpghuyouibfo/Build/Products/Debug-iphonesimulator/NextLevelSessionExporter/NextLevelSessionExporter.modulemap‘未找到:0:错误:模块映射文件'/Users/victor/Library/Developer/Xcode/DerivedData/Fitaye-abbjulghomzhkphclpghuyouibfo/Build/Products/Debug-iphonesimulator/react-native-compressor/react_native_compressor.modulemap’未找到:0:错误:模块映射文件'/Users/victor/Library/Developer/Xcode/DerivedData/Fitaye-abbjulghomzhkphclpghuyouibfo/Build/Products/Debug-iphonesimulator/react-native-geolocation-service/react_native_geolocation_service.modulemap‘未找到:0:错误:模块映射文件'/Users/victor/Library/Developer/Xcode/DerivedData/Fitaye-abbjulghomzhkphclpghuyouibfo/Build/Products/Debug-iphonesimulator/react-native-pdf-thumbnail/react_native_pdf_thumbnail.modulemap’未找到命令PrecompileSwiftBridgingHeader发出错误,但未返回指示失败的非零退出代码

EN

回答 2

Stack Overflow用户

发布于 2022-09-12 05:37:32

添加Podfile:

代码语言:javascript
复制
post_install do |installer|
    installer.pods_project.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end
end

不包括建筑加arm64

票数 1
EN

Stack Overflow用户

发布于 2022-07-02 15:00:27

试着清除DerivedData。cmd + k并使用

代码语言:javascript
复制
arch -x86_64 pod install

然后再建一次,希望它能解决问题。

(如果问题仍然存在的话)。终端的打开属性检查rosetta

然后再使用上面提到的命令重新安装。)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72838086

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档